Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 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.InvertersApartRecord,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.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_3.2.3_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.001429/0.001429, allocations: 101.5 kB / 18.39 MB, free: 4.648 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.001307/0.001307, allocations: 187 kB / 19.33 MB, free: 3.727 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.727/1.727, allocations: 205.1 MB / 225.2 MB, free: 12.21 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.001193/0.001193, allocations: 51.92 kB / 329.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09639/0.09759, allocations: 46.62 MB / 375.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.229/0.3266, allocations: 14.04 MB / 389.8 MB, free: 5.328 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02462/0.3513, allocations: 19.72 MB / 409.6 MB, free: 6.793 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003554/0.3549, allocations: 91.22 kB / 409.7 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004177/0.3591, allocations: 1.201 MB / 410.9 MB, free: 6.098 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009479/0.3687, allocations: 2.264 MB / 413.1 MB, free: 4.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005501/0.3742, allocations: 1.394 MB / 414.5 MB, free: 3.816 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01118/0.3854, allocations: 6.336 MB / 420.8 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008869/0.3863, allocations: 460.6 kB / 421.3 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001891/0.3882, allocations: 1.003 MB / 422.3 MB, free: 196 kB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001598/0.3899, allocations: 1.091 MB / 423.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002511/0.3901, allocations: 73.59 kB / 423.5 MB, free: 15.55 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004818/0.3949, allocations: 1.156 MB / 424.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004938/0.3955, allocations: 333.6 kB / 424.9 MB, free: 14.53 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002147/0.3976, allocations: 1.378 MB / 426.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006987/0.4046, allocations: 3.794 MB / 430.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.4047, allocations: 0 / 430.1 MB, free: 9.332 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.299e-05/0.4047, allocations: 3.938 kB / 430.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.19e-05/0.4048, allocations: 3.938 kB / 430.1 MB, free: 9.324 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.005664/0.4104, allocations: 3.701 MB / 433.8 MB, free: 5.547 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.451e-05/0.4105, allocations: 8.031 kB / 433.8 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005149/0.411, allocations: 399.1 kB / 434.2 MB, free: 5.145 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003438/0.4145, allocations: 2.43 MB / 436.7 MB, free: 2.641 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.921e-05/0.4145, allocations: 40.94 kB / 436.7 MB, free: 2.598 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.4146, allocations: 51.94 kB / 436.7 MB, free: 2.547 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001411/0.4161, allocations: 0.7304 MB / 437.5 MB, free: 1.809 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.858e-05/0.4161, allocations: 7.984 kB / 437.5 MB, free: 1.801 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.285e-05/0.4162, allocations: 16 kB / 437.5 MB, free: 1.785 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.392e-05/0.4162, allocations: 23.98 kB / 437.5 MB, free: 1.762 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.4177, allocations: 0.8124 MB / 438.3 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005318/0.423, allocations: 3.071 MB / 441.4 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001164/0.4242, allocations: 0.579 MB / 442 MB, free: 13.21 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009633/0.4252, allocations: 0.6447 MB / 442.6 MB, free: 12.56 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03008/0.4553, allocations: 30.17 MB / 472.8 MB, free: 10.29 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007649/0.4561, allocations: 365.5 kB / 473.1 MB, free: 9.918 MB / 398.1 MB Notification: Performance of pre-optimization done (n=49): time 2.735e-06/0.4561, allocations: 0 / 473.1 MB, free: 9.918 MB / 398.1 MB Notification: Performance of matching and sorting (n=49): time 0.002236/0.4584, allocations: 1.1 MB / 474.3 MB, free: 8.809 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.118e-05/0.4584, allocations: 63.41 kB / 474.3 MB, free: 8.734 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003551/0.462, allocations: 2.952 MB / 477.3 MB, free: 5.773 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.357e-05/0.4621, allocations: 29.7 kB / 477.3 MB, free: 5.738 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001245/0.4633, allocations: 1.497 MB / 478.8 MB, free: 4.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001519/0.4635, allocations: 169.7 kB / 479 MB, free: 4.062 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002951/0.4638, allocations: 234.1 kB / 479.2 MB, free: 3.828 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001327/0.4639, allocations: 341.9 kB / 479.5 MB, free: 3.488 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005705/0.4645, allocations: 237.9 kB / 479.8 MB, free: 3.254 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008283/0.4653, allocations: 0.6047 MB / 480.4 MB, free: 2.477 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00144/0.4668, allocations: 0.8974 MB / 481.3 MB, free: 1.406 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.965e-06/0.4668, allocations: 4 kB / 481.3 MB, free: 1.402 MB / 398.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002132/0.4689, allocations: 1.226 MB / 482.5 MB, free: 172 kB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.469, allocations: 15.98 kB / 482.5 MB, free: 156 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-05/0.4691, allocations: 80 kB / 482.6 MB, free: 76 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.907e-05/0.4691, allocations: 20 kB / 482.6 MB, free: 56 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000692/0.4698, allocations: 200 kB / 482.8 MB, free: 15.86 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.488e-05/0.4698, allocations: 35.86 kB / 482.8 MB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008747/0.4707, allocations: 103.1 kB / 482.9 MB, free: 15.72 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.854e-05/0.4708, allocations: 64 kB / 483 MB, free: 15.66 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.0006585/0.4715, allocations: 437.5 kB / 483.4 MB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003367/0.4718, allocations: 383.3 kB / 483.8 MB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002502/0.4744, allocations: 1.209 MB / 485 MB, free: 13.63 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.4744, allocations: 4 kB / 485 MB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.4744, allocations: 0 / 485 MB, free: 13.62 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.4744, allocations: 15.92 kB / 485 MB, free: 13.61 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003193/0.4776, allocations: 2.108 MB / 487.1 MB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.562e-05/0.4777, allocations: 68 kB / 487.2 MB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004657/0.4782, allocations: 87.86 kB / 487.3 MB, free: 11.28 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.001e-06/0.4782, allocations: 4 kB / 487.3 MB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.864e-05/0.4783, allocations: 35.98 kB / 487.3 MB, free: 11.24 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.012e-06/0.4783, allocations: 4 kB / 487.3 MB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.4783, allocations: 4.062 kB / 487.3 MB, free: 11.23 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002264/0.4806, allocations: 1.295 MB / 488.6 MB, free: 9.906 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007473/0.4813, allocations: 480.1 kB / 489.1 MB, free: 9.414 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002388/0.4816, allocations: 8 kB / 489.1 MB, free: 9.406 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006123/0.4822, allocations: 35.95 kB / 489.1 MB, free: 9.371 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001629/0.4824, allocations: 64.02 kB / 489.2 MB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.666e-05/0.4824, allocations: 43.92 kB / 489.2 MB, free: 9.266 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00251/0.485, allocations: 1.916 MB / 491.2 MB, free: 7.352 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.485, allocations: 0 / 491.2 MB, free: 7.352 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001526/0.4865, allocations: 0.5894 MB / 491.7 MB, free: 6.762 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.001186/0.4877, allocations: 0.782 MB / 492.5 MB, free: 5.973 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.4893, allocations: 0.8134 MB / 493.3 MB, free: 5.133 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.4894, allocations: 0 / 493.3 MB, free: 5.133 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00075/0.4901, allocations: 451.9 kB / 493.8 MB, free: 4.668 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001754/0.4919, allocations: 0.5145 MB / 494.3 MB, free: 4.152 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006437/0.4983, allocations: 4.385 MB / 498.7 MB, free: 15.72 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001164/0.4995, allocations: 1.669 MB / 0.4886 GB, free: 14.02 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003535/0.4999, allocations: 159.4 kB / 0.4888 GB, free: 13.87 MB / 430.1 MB Notification: Performance of SimCode: time 6.81e-07/0.4999, allocations: 0 / 0.4888 GB, free: 13.87 MB / 430.1 MB Notification: Performance of Templates: time 0.05729/0.5572, allocations: 38.3 MB / 0.5262 GB, free: 7.512 MB / 462.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches