Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008829/0.0008831, allocations: 175.9 kB / 17.36 MB, free: 4.32 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.314/1.314, allocations: 205.6 MB / 223.7 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007321/0.0007322, allocations: 88.94 kB / 272.1 MB, free: 8.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002339/0.000234, allocations: 8 kB / 329 MB, free: 15.08 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2078/0.208, allocations: 47.59 MB / 376.6 MB, free: 45.58 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.009184/0.2173, allocations: 12.42 MB / 389 MB, free: 35.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01701/0.2343, allocations: 20.1 MB / 409.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001974/0.2363, allocations: 31.81 kB / 409.1 MB, free: 15.51 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002826/0.2392, allocations: 1.077 MB / 410.2 MB, free: 14.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00778/0.247, allocations: 1.891 MB / 412.1 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004006/0.251, allocations: 1.149 MB / 413.3 MB, free: 11.37 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.007971/0.259, allocations: 6.035 MB / 419.3 MB, free: 5.316 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007186/0.2598, allocations: 437.6 kB / 419.7 MB, free: 4.863 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001138/0.2609, allocations: 0.9053 MB / 420.6 MB, free: 3.953 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001221/0.2621, allocations: 1.044 MB / 421.7 MB, free: 2.902 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001755/0.2623, allocations: 44 kB / 421.7 MB, free: 2.859 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00376/0.2661, allocations: 1.077 MB / 422.8 MB, free: 1.781 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002481/0.2664, allocations: 301.5 kB / 423.1 MB, free: 1.484 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001004/0.2674, allocations: 1.376 MB / 424.5 MB, free: 96 kB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004483/0.2719, allocations: 3.633 MB / 428.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.2719, allocations: 0 / 428.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2719, allocations: 0 / 428.1 MB, free: 12.45 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.359e-05/0.272, allocations: 0 / 428.1 MB, free: 12.45 MB / 314.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.004706/0.2767, allocations: 3.237 MB / 431.3 MB, free: 9.133 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.2767, allocations: 11.97 kB / 431.3 MB, free: 9.121 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003754/0.2771, allocations: 399.1 kB / 431.7 MB, free: 8.727 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003257/0.2804, allocations: 2.453 MB / 434.2 MB, free: 6.199 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.643e-05/0.2804, allocations: 44.88 kB / 434.2 MB, free: 6.156 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001234/0.2805, allocations: 55.91 kB / 434.3 MB, free: 6.102 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.2818, allocations: 0.7499 MB / 435 MB, free: 5.348 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.256e-05/0.2819, allocations: 0 / 435 MB, free: 5.348 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.075e-05/0.2819, allocations: 20 kB / 435.1 MB, free: 5.328 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.282, allocations: 19.98 kB / 435.1 MB, free: 5.309 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001501/0.2835, allocations: 0.8593 MB / 435.9 MB, free: 4.445 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004647/0.2881, allocations: 3.09 MB / 439 MB, free: 1.273 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.2893, allocations: 0.622 MB / 439.7 MB, free: 0.6445 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009577/0.2903, allocations: 0.6694 MB / 440.3 MB, free: 15.96 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02986/0.3202, allocations: 30.22 MB / 470.5 MB, free: 13.63 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00077/0.321, allocations: 377.7 kB / 470.9 MB, free: 13.25 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.555e-06/0.321, allocations: 0 / 470.9 MB, free: 13.25 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.002394/0.3234, allocations: 1.159 MB / 472.1 MB, free: 12.08 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.45e-05/0.3235, allocations: 63.39 kB / 472.1 MB, free: 12.01 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00438/0.3279, allocations: 2.909 MB / 475 MB, free: 9.09 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 8.985e-05/0.328, allocations: 33.7 kB / 475.1 MB, free: 9.051 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001484/0.3295, allocations: 1.497 MB / 476.6 MB, free: 7.543 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002034/0.3297, allocations: 165.7 kB / 476.7 MB, free: 7.379 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.578e-05/0.3297, allocations: 16 kB / 476.7 MB, free: 7.363 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.3299, allocations: 341.9 kB / 477.1 MB, free: 7.023 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006321/0.3306, allocations: 261.9 kB / 477.3 MB, free: 6.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008175/0.3314, allocations: 0.6215 MB / 478 MB, free: 5.973 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001459/0.3329, allocations: 0.9404 MB / 478.9 MB, free: 4.863 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.971e-06/0.3329, allocations: 0 / 478.9 MB, free: 4.863 MB / 362.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002208/0.3351, allocations: 1.28 MB / 480.2 MB, free: 3.57 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.632e-05/0.3351, allocations: 12.06 kB / 480.2 MB, free: 3.559 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001149/0.3353, allocations: 87.98 kB / 480.3 MB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.268e-05/0.3353, allocations: 19.94 kB / 480.3 MB, free: 3.453 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007138/0.336, allocations: 211.6 kB / 480.5 MB, free: 3.246 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.831e-05/0.3361, allocations: 35.86 kB / 480.5 MB, free: 3.211 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/0.3372, allocations: 111.1 kB / 480.6 MB, free: 3.102 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001318/0.3373, allocations: 64 kB / 480.7 MB, free: 3.039 MB / 362.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.0008255/0.3381, allocations: 433.5 kB / 481.1 MB, free: 2.605 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003721/0.3385, allocations: 383.4 kB / 481.5 MB, free: 2.227 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002854/0.3414, allocations: 1.256 MB / 482.8 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.3414, allocations: 4 kB / 482.8 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.3414, allocations: 0 / 482.8 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3414, allocations: 0 / 482.8 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003197/0.3446, allocations: 2.136 MB / 484.9 MB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.701e-05/0.3447, allocations: 72 kB / 485 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004897/0.3452, allocations: 103.9 kB / 485.1 MB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.123e-06/0.3453, allocations: 4 kB / 485.1 MB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-05/0.3453, allocations: 35.98 kB / 485.1 MB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.829e-06/0.3453, allocations: 7.938 kB / 485.1 MB, free: 14.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3453, allocations: 4 kB / 485.1 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002205/0.3476, allocations: 1.36 MB / 486.5 MB, free: 13.13 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006955/0.3483, allocations: 484.2 kB / 487 MB, free: 12.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002796/0.3486, allocations: 8 kB / 487 MB, free: 12.63 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006922/0.3492, allocations: 44.02 kB / 487 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001634/0.3494, allocations: 55.95 kB / 487.1 MB, free: 12.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-05/0.3495, allocations: 47.92 kB / 487.1 MB, free: 12.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002386/0.3519, allocations: 1.881 MB / 489 MB, free: 10.61 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.3519, allocations: 0 / 489 MB, free: 10.61 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001259/0.3532, allocations: 0.5855 MB / 489.6 MB, free: 10.02 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.001097/0.3543, allocations: 0.7811 MB / 490.4 MB, free: 9.234 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00162/0.3559, allocations: 0.8455 MB / 491.2 MB, free: 8.367 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.148e-06/0.3559, allocations: 4.125 kB / 491.2 MB, free: 8.363 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007536/0.3567, allocations: 467.4 kB / 491.7 MB, free: 7.883 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002013/0.3587, allocations: 490.4 kB / 492.1 MB, free: 7.398 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00659/0.3653, allocations: 5.282 MB / 497.4 MB, free: 2.082 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001082/0.3664, allocations: 1.673 MB / 499.1 MB, free: 392 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.001353/0.3678, allocations: 357.3 kB / 499.4 MB, free: 28 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.368, allocations: 151.4 kB / 499.6 MB, free: 15.88 MB / 394.7 MB Notification: Performance of SimCode: time 1.062e-06/0.368, allocations: 0 / 499.6 MB, free: 15.88 MB / 394.7 MB Notification: Performance of Templates: time 0.2041/0.5721, allocations: 30.12 MB / 0.5173 GB, free: 121.5 MB / 394.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersApartRecord/InvertersApartRecord.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersApartRecord.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches