Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") translateModel(Modelica.Electrical.Spice3.Examples.InvertersApartRecord,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|v.p.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.001029, allocations: 107.9 kB / 17.06 MB, free: 6.125 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.001046/0.001046, allocations: 191 kB / 18 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009978/0.0009978, allocations: 47.94 kB / 351.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2876/0.2886, allocations: 49.43 MB / 400.7 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01318/0.3018, allocations: 14.72 MB / 415.4 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.02395/0.3258, allocations: 20.68 MB / 436.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002844/0.3287, allocations: 91.25 kB / 436.2 MB, free: 5.254 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004204/0.3329, allocations: 1.241 MB / 437.4 MB, free: 4.012 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008194/0.3412, allocations: 2.321 MB / 439.8 MB, free: 1.676 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004646/0.3458, allocations: 1.443 MB / 441.2 MB, free: 228 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01042/0.3563, allocations: 6.481 MB / 447.7 MB, free: 9.719 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008066/0.3571, allocations: 453.1 kB / 448.1 MB, free: 9.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001576/0.3587, allocations: 1.108 MB / 449.2 MB, free: 8.137 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00116/0.3599, allocations: 1.114 MB / 450.3 MB, free: 7.016 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001572/0.36, allocations: 72 kB / 450.4 MB, free: 6.945 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004015/0.3641, allocations: 1.479 MB / 451.9 MB, free: 5.465 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003512/0.3644, allocations: 329.6 kB / 452.2 MB, free: 5.141 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001432/0.3659, allocations: 1.37 MB / 453.6 MB, free: 3.762 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005722/0.3716, allocations: 3.759 MB / 457.3 MB, free: 15.99 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.593e-06/0.3716, allocations: 4 kB / 457.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.3716, allocations: 0 / 457.3 MB, free: 15.98 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.062e-05/0.3717, allocations: 0 / 457.3 MB, free: 15.98 MB / 382.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.005186/0.3769, allocations: 3.681 MB / 461 MB, free: 12.22 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.237e-05/0.377, allocations: 8.031 kB / 461 MB, free: 12.21 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003961/0.3774, allocations: 395.2 kB / 461.4 MB, free: 11.82 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003102/0.3805, allocations: 2.41 MB / 463.8 MB, free: 9.34 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.038e-05/0.3805, allocations: 37 kB / 463.9 MB, free: 9.305 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001212/0.3806, allocations: 55.89 kB / 463.9 MB, free: 9.25 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001342/0.382, allocations: 0.7382 MB / 464.7 MB, free: 8.504 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.382, allocations: 3.938 kB / 464.7 MB, free: 8.5 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.762e-05/0.3821, allocations: 16 kB / 464.7 MB, free: 8.484 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.174e-05/0.3821, allocations: 19.98 kB / 464.7 MB, free: 8.465 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001564/0.3837, allocations: 0.8163 MB / 465.5 MB, free: 7.648 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005106/0.3888, allocations: 3.051 MB / 468.6 MB, free: 4.508 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.39, allocations: 0.5829 MB / 469.2 MB, free: 3.918 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009936/0.391, allocations: 0.6438 MB / 469.8 MB, free: 3.273 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0283/0.4193, allocations: 30.12 MB / 499.9 MB, free: 1.047 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000765/0.4201, allocations: 357.7 kB / 0.4885 GB, free: 0.6875 MB / 414.1 MB Notification: Performance of pre-optimization done (n=49): time 2.474e-06/0.4201, allocations: 3.938 kB / 0.4885 GB, free: 0.6836 MB / 414.1 MB Notification: Performance of matching and sorting (n=49): time 0.002266/0.4224, allocations: 1.097 MB / 0.4896 GB, free: 15.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.515e-05/0.4225, allocations: 59.39 kB / 0.4897 GB, free: 15.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003533/0.426, allocations: 2.935 MB / 0.4925 GB, free: 12.55 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 6.208e-05/0.4261, allocations: 41.69 kB / 0.4926 GB, free: 12.51 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001239/0.4273, allocations: 1.478 MB / 0.494 GB, free: 11.02 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001354/0.4275, allocations: 165.6 kB / 0.4942 GB, free: 10.86 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002814/0.4278, allocations: 230.2 kB / 0.4944 GB, free: 10.62 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001214/0.4279, allocations: 334 kB / 0.4947 GB, free: 10.29 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005729/0.4285, allocations: 249.8 kB / 0.495 GB, free: 10.05 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008056/0.4293, allocations: 0.5981 MB / 0.4955 GB, free: 9.277 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001433/0.4307, allocations: 0.9013 MB / 0.4964 GB, free: 8.203 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.744e-06/0.4308, allocations: 3.938 kB / 0.4964 GB, free: 8.199 MB / 430.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002101/0.4329, allocations: 1.222 MB / 0.4976 GB, free: 6.973 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/0.4329, allocations: 16.03 kB / 0.4976 GB, free: 6.957 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001097/0.433, allocations: 84 kB / 0.4977 GB, free: 6.875 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.72e-05/0.4331, allocations: 16 kB / 0.4977 GB, free: 6.859 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007218/0.4338, allocations: 199.6 kB / 0.4979 GB, free: 6.664 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.46e-05/0.4338, allocations: 23.92 kB / 0.4979 GB, free: 6.641 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009131/0.4347, allocations: 122.9 kB / 0.4981 GB, free: 6.52 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001126/0.4349, allocations: 67.94 kB / 0.4981 GB, free: 6.453 MB / 430.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.0007584/0.4356, allocations: 434.2 kB / 0.4985 GB, free: 6.02 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00033/0.436, allocations: 379.4 kB / 0.4989 GB, free: 5.645 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002509/0.4385, allocations: 1.194 MB / 0.5001 GB, free: 4.434 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.4385, allocations: 4 kB / 0.5001 GB, free: 4.43 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.4385, allocations: 0 / 0.5001 GB, free: 4.43 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.448e-06/0.4385, allocations: 7.984 kB / 0.5001 GB, free: 4.422 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003132/0.4417, allocations: 2.1 MB / 0.5021 GB, free: 2.25 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.473e-05/0.4418, allocations: 68 kB / 0.5022 GB, free: 2.184 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000488/0.4423, allocations: 95.92 kB / 0.5023 GB, free: 2.09 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.402e-06/0.4423, allocations: 4 kB / 0.5023 GB, free: 2.086 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.493e-05/0.4423, allocations: 35.98 kB / 0.5023 GB, free: 2.051 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.799e-06/0.4423, allocations: 4 kB / 0.5023 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.4424, allocations: 0 / 0.5023 GB, free: 2.047 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/0.4446, allocations: 1.297 MB / 0.5036 GB, free: 0.7188 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006374/0.4452, allocations: 468.3 kB / 0.504 GB, free: 244 kB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002887/0.4455, allocations: 16.06 kB / 0.5041 GB, free: 228 kB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006823/0.4462, allocations: 31.95 kB / 0.5041 GB, free: 196 kB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001522/0.4464, allocations: 63.83 kB / 0.5041 GB, free: 132 kB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.787e-05/0.4464, allocations: 36 kB / 0.5042 GB, free: 96 kB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002405/0.4489, allocations: 1.911 MB / 0.506 GB, free: 14.18 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4489, allocations: 0 / 0.506 GB, free: 14.18 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.001299/0.4502, allocations: 0.5816 MB / 0.5066 GB, free: 13.6 MB / 446.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.001082/0.4513, allocations: 0.7726 MB / 0.5074 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.001602/0.4529, allocations: 0.8135 MB / 0.5082 GB, free: 11.98 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.4529, allocations: 0 / 0.5082 GB, free: 11.98 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007671/0.4537, allocations: 447.1 kB / 0.5086 GB, free: 11.52 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002375/0.4561, allocations: 0.5998 MB / 0.5092 GB, free: 10.92 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005865/0.4619, allocations: 4.304 MB / 0.5134 GB, free: 6.574 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001121/0.4631, allocations: 1.661 MB / 0.515 GB, free: 4.887 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001012/0.4641, allocations: 357.1 kB / 0.5153 GB, free: 4.531 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002206/0.4643, allocations: 151.4 kB / 0.5155 GB, free: 4.383 MB / 446.1 MB Notification: Performance of SimCode: time 6.12e-07/0.4643, allocations: 0 / 0.5155 GB, free: 4.383 MB / 446.1 MB Notification: Performance of Templates: time 0.2356/0.7, allocations: 31.21 MB / 0.546 GB, free: 130.4 MB / 462.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches