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.001426/0.001426, allocations: 109.9 kB / 18.25 MB, free: 4.898 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.001752/0.001752, allocations: 191.6 kB / 19.18 MB, free: 3.977 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.503/1.503, allocations: 205.1 MB / 225.1 MB, free: 12.29 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.001238/0.001238, allocations: 48.16 kB / 281.3 MB, free: 3.176 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0787/0.07995, allocations: 46.63 MB / 327.9 MB, free: 4.48 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01327/0.09327, allocations: 14.03 MB / 342 MB, free: 6.383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02177/0.1151, allocations: 19.72 MB / 361.7 MB, free: 2.582 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002637/0.1178, allocations: 31.81 kB / 361.7 MB, free: 2.551 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003514/0.1214, allocations: 1.205 MB / 362.9 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007939/0.1293, allocations: 2.262 MB / 365.2 MB, free: 15.05 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004603/0.134, allocations: 1.385 MB / 366.6 MB, free: 13.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01026/0.1443, allocations: 6.314 MB / 372.9 MB, free: 7.332 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001117/0.1454, allocations: 469.1 kB / 373.3 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00165/0.1471, allocations: 0.964 MB / 374.3 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001282/0.1484, allocations: 1.087 MB / 375.4 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002233/0.1486, allocations: 83.94 kB / 375.5 MB, free: 4.699 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004051/0.1527, allocations: 1.152 MB / 376.6 MB, free: 3.547 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004468/0.1532, allocations: 333.6 kB / 377 MB, free: 3.219 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001643/0.1548, allocations: 1.393 MB / 378.4 MB, free: 1.816 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1685/0.3234, allocations: 3.758 MB / 382.1 MB, free: 24.63 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/0.3234, allocations: 0 / 382.1 MB, free: 24.63 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3234, allocations: 0 / 382.1 MB, free: 24.63 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000106/0.3235, allocations: 1.375 kB / 382.1 MB, free: 24.63 MB / 318.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.006955/0.3305, allocations: 3.704 MB / 385.8 MB, free: 22.54 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.517e-05/0.3306, allocations: 10.09 kB / 385.8 MB, free: 22.54 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006443/0.3312, allocations: 394 kB / 386.2 MB, free: 22.34 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003959/0.3352, allocations: 2.457 MB / 388.7 MB, free: 21.52 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.555e-05/0.3352, allocations: 38.41 kB / 388.7 MB, free: 21.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001322/0.3354, allocations: 56.97 kB / 388.8 MB, free: 21.52 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.3369, allocations: 0.7258 MB / 389.5 MB, free: 21.48 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.3369, allocations: 0 / 389.5 MB, free: 21.48 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.25e-05/0.337, allocations: 19.75 kB / 389.5 MB, free: 21.48 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.823e-05/0.3371, allocations: 20.27 kB / 389.5 MB, free: 21.48 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001655/0.3387, allocations: 0.8233 MB / 390.3 MB, free: 21.47 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005745/0.3445, allocations: 3.061 MB / 393.4 MB, free: 20.94 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.3457, allocations: 0.5803 MB / 394 MB, free: 20.91 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009143/0.3466, allocations: 0.6491 MB / 394.6 MB, free: 20.9 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02434/0.371, allocations: 30.18 MB / 424.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007647/0.3718, allocations: 361.5 kB / 425.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 4.248e-06/0.3718, allocations: 3.281 kB / 425.2 MB, free: 10.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002521/0.3743, allocations: 1.107 MB / 426.3 MB, free: 9.477 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.341e-05/0.3744, allocations: 59.41 kB / 426.3 MB, free: 9.406 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003777/0.3782, allocations: 2.952 MB / 429.3 MB, free: 6.445 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 8.794e-05/0.3783, allocations: 37.7 kB / 429.3 MB, free: 6.402 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001251/0.3795, allocations: 1.485 MB / 430.8 MB, free: 4.91 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001857/0.3797, allocations: 178.1 kB / 431 MB, free: 4.742 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002961/0.38, allocations: 226.1 kB / 431.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.3802, allocations: 337.9 kB / 431.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006034/0.3808, allocations: 245.9 kB / 431.8 MB, free: 3.941 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008609/0.3817, allocations: 0.6043 MB / 432.4 MB, free: 3.172 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001465/0.3831, allocations: 0.8883 MB / 433.3 MB, free: 2.164 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.083e-06/0.3832, allocations: 8 kB / 433.3 MB, free: 2.156 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002524/0.3857, allocations: 1.224 MB / 434.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.806e-05/0.3857, allocations: 12.03 kB / 434.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001191/0.3859, allocations: 85.95 kB / 434.6 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.839e-05/0.3859, allocations: 23.94 kB / 434.6 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007332/0.3866, allocations: 203.4 kB / 434.8 MB, free: 0.6953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.078e-05/0.3867, allocations: 21.53 kB / 434.8 MB, free: 0.6797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001604/0.3883, allocations: 115.9 kB / 435 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001162/0.3884, allocations: 64 kB / 435 MB, free: 0.5039 MB / 334.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.0009154/0.3893, allocations: 436 kB / 435.4 MB, free: 84 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006777/0.39, allocations: 383.5 kB / 435.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003071/0.3931, allocations: 1.207 MB / 437 MB, free: 14.51 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.028e-05/0.3931, allocations: 4 kB / 437 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.3931, allocations: 5.75 kB / 437 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.294e-06/0.3932, allocations: 3.984 kB / 437 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004279/0.3974, allocations: 2.096 MB / 439.1 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001223/0.3976, allocations: 71.98 kB / 439.2 MB, free: 12.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004933/0.3981, allocations: 101.2 kB / 439.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.853e-06/0.3981, allocations: 0 / 439.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.664e-05/0.3982, allocations: 35.27 kB / 439.3 MB, free: 12.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.77e-06/0.3982, allocations: 4 kB / 439.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3982, allocations: 0 / 439.3 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/0.4008, allocations: 1.305 MB / 440.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001091/0.4019, allocations: 480.2 kB / 441.1 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003756/0.4023, allocations: 12 kB / 441.1 MB, free: 10.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006808/0.403, allocations: 23.97 kB / 441.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001525/0.4032, allocations: 67.12 kB / 441.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.65e-05/0.4033, allocations: 36 kB / 441.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.002677/0.4059, allocations: 1.92 MB / 443.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.062e-06/0.406, allocations: 0 / 443.2 MB, free: 8.273 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001676/0.4076, allocations: 0.591 MB / 443.8 MB, free: 7.684 MB / 350.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.001111/0.4088, allocations: 0.7737 MB / 444.5 MB, free: 7.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001847/0.4106, allocations: 0.8367 MB / 445.4 MB, free: 6.234 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.4106, allocations: 4 kB / 445.4 MB, free: 6.23 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007945/0.4114, allocations: 446.3 kB / 445.8 MB, free: 5.777 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002346/0.4138, allocations: 0.5209 MB / 446.3 MB, free: 5.258 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006901/0.4207, allocations: 4.462 MB / 450.8 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001239/0.422, allocations: 1.673 MB / 452.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004536/0.4225, allocations: 159.4 kB / 452.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4225, allocations: 1.203 kB / 452.6 MB, free: 14.93 MB / 366.1 MB Notification: Performance of Templates: time 0.06194/0.4844, allocations: 37.53 MB / 490.2 MB, free: 9.418 MB / 398.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