Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009991/0.0009992, allocations: 197 kB / 17.43 MB, free: 4.273 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 229.5 MB / 247.7 MB, free: 6.301 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006521/0.0006521, allocations: 97.06 kB / 299.8 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001947/0.0001948, allocations: 4 kB / 360.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1762/0.1764, allocations: 51.42 MB / 412 MB, free: 25.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.007786/0.1842, allocations: 13.04 MB / 425.1 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01848/0.2027, allocations: 21.28 MB / 446.4 MB, free: 7.051 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001475/0.2042, allocations: 31.81 kB / 446.4 MB, free: 7.02 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002761/0.207, allocations: 1.101 MB / 447.5 MB, free: 5.914 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005874/0.2129, allocations: 1.923 MB / 449.4 MB, free: 3.98 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003665/0.2166, allocations: 1.207 MB / 450.6 MB, free: 2.766 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.009135/0.2257, allocations: 6.242 MB / 456.9 MB, free: 12.5 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000724/0.2265, allocations: 441.5 kB / 457.3 MB, free: 12.04 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001364/0.2278, allocations: 1.014 MB / 458.3 MB, free: 11.02 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001074/0.2289, allocations: 1.067 MB / 459.4 MB, free: 9.941 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001586/0.2291, allocations: 51.88 kB / 459.4 MB, free: 9.891 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00347/0.2326, allocations: 1.349 MB / 460.8 MB, free: 8.539 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002865/0.2329, allocations: 293.6 kB / 461.1 MB, free: 8.25 MB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001203/0.2341, allocations: 1.356 MB / 462.4 MB, free: 6.879 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003873/0.238, allocations: 3.614 MB / 466 MB, free: 3.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.238, allocations: 0 / 466 MB, free: 3.25 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.238, allocations: 4 kB / 466 MB, free: 3.246 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.159e-05/0.238, allocations: 0 / 466 MB, free: 3.246 MB / 330.7 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.004208/0.2422, allocations: 3.221 MB / 469.3 MB, free: 15.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.59e-05/0.2423, allocations: 8.031 kB / 469.3 MB, free: 15.94 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000351/0.2426, allocations: 399.1 kB / 469.7 MB, free: 15.55 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003088/0.2457, allocations: 2.433 MB / 472.1 MB, free: 13.04 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.522e-05/0.2458, allocations: 40.98 kB / 472.1 MB, free: 13 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001206/0.2459, allocations: 55.91 kB / 472.2 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001284/0.2472, allocations: 0.746 MB / 472.9 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.272e-05/0.2472, allocations: 0 / 472.9 MB, free: 12.19 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.065e-05/0.2473, allocations: 16 kB / 473 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.2473, allocations: 19.98 kB / 473 MB, free: 12.16 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001551/0.2489, allocations: 0.8593 MB / 473.8 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004692/0.2536, allocations: 3.086 MB / 476.9 MB, free: 8.121 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001156/0.2548, allocations: 0.6181 MB / 477.5 MB, free: 7.492 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009613/0.2557, allocations: 0.6633 MB / 478.2 MB, free: 6.828 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02733/0.2831, allocations: 30.78 MB / 0.497 GB, free: 3.809 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007621/0.2839, allocations: 389.5 kB / 0.4974 GB, free: 3.414 MB / 378.7 MB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.2839, allocations: 0 / 0.4974 GB, free: 3.414 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.002142/0.286, allocations: 1.148 MB / 0.4985 GB, free: 2.258 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.084e-05/0.2861, allocations: 71.17 kB / 0.4986 GB, free: 2.176 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1501/0.4362, allocations: 2.884 MB / 0.5014 GB, free: 94.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001024/0.4363, allocations: 36.84 kB / 0.5015 GB, free: 94.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001008/0.4374, allocations: 1.485 MB / 0.5029 GB, free: 93.9 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.4375, allocations: 169.5 kB / 0.5031 GB, free: 93.86 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.13e-05/0.4375, allocations: 18.5 kB / 0.5031 GB, free: 93.84 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.185e-05/0.4376, allocations: 336.6 kB / 0.5034 GB, free: 93.52 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006303/0.4383, allocations: 262.5 kB / 0.5037 GB, free: 93.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006224/0.4389, allocations: 0.6177 MB / 0.5043 GB, free: 92.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001227/0.4401, allocations: 0.9418 MB / 0.5052 GB, free: 92.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.4401, allocations: 7.656 kB / 0.5052 GB, free: 92.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001924/0.4421, allocations: 1.26 MB / 0.5064 GB, free: 91.8 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.034e-05/0.4421, allocations: 10.38 kB / 0.5064 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.597e-05/0.4422, allocations: 83.03 kB / 0.5065 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.839e-05/0.4422, allocations: 17.42 kB / 0.5065 GB, free: 91.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006962/0.4429, allocations: 218.6 kB / 0.5067 GB, free: 91.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.026e-05/0.443, allocations: 23.88 kB / 0.5068 GB, free: 91.77 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008934/0.4439, allocations: 122.8 kB / 0.5069 GB, free: 91.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.764e-05/0.444, allocations: 66.45 kB / 0.5069 GB, free: 91.7 MB / 378.7 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 ($PRE.vin.counter,vin.counter,$PRE.v.counter,v.counter,$whenCondition2,$whenCondition1,$PRE.vin.T0,vin.T0,$PRE.vin.counter2,vin.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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.0005663/0.4445, allocations: 435.2 kB / 0.5073 GB, free: 91.4 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002579/0.4448, allocations: 378.2 kB / 0.5077 GB, free: 91.21 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002607/0.4474, allocations: 1.246 MB / 0.5089 GB, free: 90.84 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.525e-06/0.4474, allocations: 10.05 kB / 0.5089 GB, free: 90.84 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.4475, allocations: 0 / 0.5089 GB, free: 90.84 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4475, allocations: 2.016 kB / 0.5089 GB, free: 90.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002899/0.4504, allocations: 2.126 MB / 0.511 GB, free: 89.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.04e-05/0.4505, allocations: 74.56 kB / 0.5111 GB, free: 89.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004288/0.4509, allocations: 108.1 kB / 0.5112 GB, free: 89.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.897e-06/0.4509, allocations: 3.938 kB / 0.5112 GB, free: 89.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.964e-05/0.451, allocations: 35.69 kB / 0.5112 GB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.451, allocations: 3.969 kB / 0.5112 GB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.451, allocations: 0 / 0.5112 GB, free: 89.87 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001833/0.4528, allocations: 1.347 MB / 0.5125 GB, free: 89.26 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004839/0.4533, allocations: 477.7 kB / 0.513 GB, free: 88.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002713/0.4536, allocations: 13.92 kB / 0.513 GB, free: 88.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006578/0.4543, allocations: 36.75 kB / 0.513 GB, free: 88.92 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001396/0.4544, allocations: 64.94 kB / 0.5131 GB, free: 88.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.825e-05/0.4545, allocations: 36.81 kB / 0.5131 GB, free: 88.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001889/0.4564, allocations: 1.872 MB / 0.515 GB, free: 88.02 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.072e-06/0.4564, allocations: 0 / 0.515 GB, free: 88.02 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001075/0.4575, allocations: 0.5868 MB / 0.5155 GB, free: 87.96 MB / 378.7 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.0008766/0.4583, allocations: 0.7835 MB / 0.5163 GB, free: 87.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001302/0.4596, allocations: 0.8513 MB / 0.5171 GB, free: 87.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.4597, allocations: 0 / 0.5171 GB, free: 87.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00061/0.4603, allocations: 459.2 kB / 0.5176 GB, free: 86.62 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002216/0.4625, allocations: 0.5933 MB / 0.5182 GB, free: 86.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004507/0.467, allocations: 5.248 MB / 0.5233 GB, free: 80.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006707/0.4677, allocations: 1.657 MB / 0.5249 GB, free: 79.07 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001066/0.4688, allocations: 361.1 kB / 0.5253 GB, free: 78.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001692/0.469, allocations: 147.4 kB / 0.5254 GB, free: 78.57 MB / 378.7 MB Notification: Performance of SimCode: time 1.172e-06/0.469, allocations: 4 kB / 0.5254 GB, free: 78.57 MB / 378.7 MB Notification: Performance of Templates: time 0.04099/0.51, allocations: 30.1 MB / 0.5548 GB, free: 48.72 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches