Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 104.2 kB / 18.4 MB, free: 4.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 188.3 kB / 19.33 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.346/1.346, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 47.92 kB / 329.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08048/0.08162, allocations: 46.62 MB / 375.8 MB, free: 4.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.1715/0.2532, allocations: 14.61 MB / 390.4 MB, free: 4.324 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02298/0.2762, allocations: 19.8 MB / 410.2 MB, free: 6.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003072/0.2793, allocations: 90.41 kB / 410.3 MB, free: 5.973 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003792/0.2832, allocations: 1.233 MB / 411.5 MB, free: 5.305 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008659/0.2918, allocations: 2.303 MB / 413.8 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005194/0.2971, allocations: 1.387 MB / 415.2 MB, free: 2.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0112/0.3083, allocations: 6.465 MB / 421.7 MB, free: 15.96 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008794/0.3092, allocations: 473 kB / 422.2 MB, free: 15.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001869/0.3111, allocations: 1.036 MB / 423.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001687/0.3128, allocations: 1.124 MB / 424.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000277/0.3131, allocations: 74.25 kB / 424.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004403/0.3175, allocations: 1.162 MB / 425.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004708/0.318, allocations: 333.5 kB / 425.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001936/0.3199, allocations: 1.436 MB / 427.3 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006095/0.326, allocations: 4.008 MB / 431.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.326, allocations: 0 / 431.3 MB, free: 7.926 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.3261, allocations: 3.938 kB / 431.3 MB, free: 7.922 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.317e-05/0.3261, allocations: 4 kB / 431.3 MB, free: 7.918 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.005656/0.3318, allocations: 3.841 MB / 435.2 MB, free: 4 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.518e-05/0.3318, allocations: 15.97 kB / 435.2 MB, free: 3.984 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004494/0.3323, allocations: 414.9 kB / 435.6 MB, free: 3.574 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003449/0.3357, allocations: 2.479 MB / 438.1 MB, free: 1.023 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.718e-05/0.3358, allocations: 40.94 kB / 438.1 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001268/0.336, allocations: 59.89 kB / 438.2 MB, free: 0.9219 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001319/0.3373, allocations: 0.7265 MB / 438.9 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.3373, allocations: 0 / 438.9 MB, free: 192 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.07e-05/0.3374, allocations: 20 kB / 438.9 MB, free: 172 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.245e-05/0.3374, allocations: 19.98 kB / 438.9 MB, free: 152 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00158/0.339, allocations: 0.8241 MB / 439.8 MB, free: 15.33 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005087/0.3441, allocations: 3.119 MB / 442.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001189/0.3453, allocations: 0.5752 MB / 443.4 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009682/0.3463, allocations: 0.6501 MB / 444.1 MB, free: 10.89 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02912/0.3754, allocations: 30.18 MB / 474.3 MB, free: 8.605 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007161/0.3762, allocations: 365.4 kB / 474.6 MB, free: 8.234 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.635e-06/0.3762, allocations: 4 kB / 474.6 MB, free: 8.23 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002244/0.3785, allocations: 1.112 MB / 475.8 MB, free: 7.109 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.848e-05/0.3785, allocations: 55.41 kB / 475.8 MB, free: 7.043 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003476/0.382, allocations: 3.111 MB / 478.9 MB, free: 3.934 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.107e-05/0.3821, allocations: 37.7 kB / 479 MB, free: 3.891 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001313/0.3834, allocations: 1.573 MB / 480.5 MB, free: 2.305 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000137/0.3835, allocations: 161.7 kB / 480.7 MB, free: 2.145 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002805/0.3838, allocations: 234.1 kB / 480.9 MB, free: 1.91 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.3839, allocations: 338 kB / 481.2 MB, free: 1.574 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005653/0.3845, allocations: 245.8 kB / 481.5 MB, free: 1.332 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007684/0.3853, allocations: 0.5981 MB / 482.1 MB, free: 0.5586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001352/0.3866, allocations: 0.9013 MB / 483 MB, free: 15.48 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.767e-06/0.3867, allocations: 4 kB / 483 MB, free: 15.48 MB / 414.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002067/0.3887, allocations: 1.248 MB / 484.2 MB, free: 14.22 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.053e-05/0.3888, allocations: 13 kB / 484.2 MB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001052/0.3889, allocations: 80 kB / 484.3 MB, free: 14.13 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.225e-05/0.3889, allocations: 24 kB / 484.4 MB, free: 14.11 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007379/0.3897, allocations: 199.6 kB / 484.5 MB, free: 13.91 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.293e-05/0.3897, allocations: 27.92 kB / 484.6 MB, free: 13.89 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009653/0.3907, allocations: 110.9 kB / 484.7 MB, free: 13.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.551e-05/0.3908, allocations: 64 kB / 484.7 MB, free: 13.71 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007114/0.3915, allocations: 465.4 kB / 485.2 MB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003488/0.3918, allocations: 399.1 kB / 485.6 MB, free: 12.86 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002584/0.3944, allocations: 1.227 MB / 486.8 MB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.977e-06/0.3945, allocations: 4 kB / 486.8 MB, free: 11.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.3945, allocations: 3.938 kB / 486.8 MB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.3945, allocations: 0 / 486.8 MB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003443/0.3979, allocations: 2.155 MB / 489 MB, free: 9.391 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.331e-05/0.398, allocations: 68.88 kB / 489 MB, free: 9.324 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004963/0.3985, allocations: 95.92 kB / 489.1 MB, free: 9.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.212e-06/0.3986, allocations: 4 kB / 489.1 MB, free: 9.227 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.068e-05/0.3986, allocations: 35.98 kB / 489.2 MB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.3986, allocations: 0 / 489.2 MB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.3986, allocations: 4 kB / 489.2 MB, free: 9.188 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002245/0.4009, allocations: 1.321 MB / 490.5 MB, free: 7.836 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008686/0.4018, allocations: 0.4946 MB / 491 MB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002836/0.4021, allocations: 11.98 kB / 491 MB, free: 7.309 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007508/0.4028, allocations: 27.97 kB / 491 MB, free: 7.281 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.403, allocations: 63.89 kB / 491.1 MB, free: 7.219 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001058/0.4031, allocations: 43.92 kB / 491.1 MB, free: 7.176 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002472/0.4056, allocations: 2.015 MB / 493.2 MB, free: 5.168 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.5e-07/0.4056, allocations: 0 / 493.2 MB, free: 5.168 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001423/0.407, allocations: 0.5973 MB / 493.8 MB, free: 4.57 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001087/0.4081, allocations: 0.7775 MB / 494.5 MB, free: 3.785 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001652/0.4098, allocations: 0.8177 MB / 495.3 MB, free: 2.941 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.196e-06/0.4098, allocations: 256 / 495.3 MB, free: 2.941 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00077/0.4106, allocations: 459.2 kB / 495.8 MB, free: 2.469 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001952/0.4125, allocations: 0.5304 MB / 496.3 MB, free: 1.938 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006308/0.4189, allocations: 4.598 MB / 0.4892 GB, free: 13.29 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00108/0.42, allocations: 1.714 MB / 0.4909 GB, free: 11.55 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003135/0.4203, allocations: 155.4 kB / 0.491 GB, free: 11.4 MB / 430.1 MB Notification: Performance of SimCode: time 6.82e-07/0.4203, allocations: 0 / 0.491 GB, free: 11.4 MB / 430.1 MB Notification: Performance of Templates: time 0.05117/0.4715, allocations: 38.89 MB / 0.529 GB, free: 4.445 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches