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.0009863/0.0009865, allocations: 108.4 kB / 18.34 MB, free: 4.809 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.0009922/0.0009922, allocations: 186.9 kB / 19.28 MB, free: 3.879 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.386/1.386, allocations: 205.1 MB / 225.2 MB, free: 12.26 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.001208/0.001208, allocations: 52.34 kB / 282.1 MB, free: 2.465 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08924/0.09046, allocations: 46.63 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersApartRecord): time 0.01436/0.1049, allocations: 14.04 MB / 342.7 MB, free: 5.652 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02331/0.1282, allocations: 19.72 MB / 362.5 MB, free: 1.855 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004096/0.1324, allocations: 91.25 kB / 362.6 MB, free: 1.766 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004037/0.1365, allocations: 1.205 MB / 363.8 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008808/0.1453, allocations: 2.258 MB / 366 MB, free: 14.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004906/0.1503, allocations: 1.392 MB / 367.4 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.01033/0.1606, allocations: 6.337 MB / 373.7 MB, free: 6.52 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001032/0.1617, allocations: 469.1 kB / 374.2 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00166/0.1634, allocations: 0.9873 MB / 375.2 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001348/0.1647, allocations: 1.083 MB / 376.3 MB, free: 3.949 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001605/0.1649, allocations: 76 kB / 376.4 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004698/0.1696, allocations: 1.163 MB / 377.5 MB, free: 2.711 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005/0.1701, allocations: 329.6 kB / 377.8 MB, free: 2.387 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001803/0.1719, allocations: 1.378 MB / 379.2 MB, free: 1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1941/0.3661, allocations: 3.792 MB / 383 MB, free: 22.86 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.833e-06/0.3661, allocations: 0.5312 kB / 383 MB, free: 22.86 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3661, allocations: 0 / 383 MB, free: 22.86 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.321e-05/0.3662, allocations: 4.094 kB / 383 MB, free: 22.86 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.007759/0.374, allocations: 3.693 MB / 386.7 MB, free: 20.77 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.962e-05/0.3741, allocations: 10.28 kB / 386.7 MB, free: 20.77 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007508/0.3748, allocations: 395.5 kB / 387.1 MB, free: 20.57 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005052/0.3799, allocations: 2.431 MB / 389.5 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.607e-05/0.38, allocations: 38.39 kB / 389.6 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002004/0.3802, allocations: 57.83 kB / 389.6 MB, free: 19.76 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001665/0.3819, allocations: 0.7283 MB / 390.4 MB, free: 19.71 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.712e-05/0.3819, allocations: 1.156 kB / 390.4 MB, free: 19.71 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.451e-05/0.382, allocations: 25.27 kB / 390.4 MB, free: 19.71 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.548e-05/0.382, allocations: 19.34 kB / 390.4 MB, free: 19.71 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001651/0.3837, allocations: 0.8168 MB / 391.2 MB, free: 19.71 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006722/0.3904, allocations: 3.063 MB / 394.3 MB, free: 19.17 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001193/0.3916, allocations: 0.5702 MB / 394.8 MB, free: 19.14 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009069/0.3925, allocations: 0.6446 MB / 395.5 MB, free: 19.13 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02634/0.4189, allocations: 30.19 MB / 425.7 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007333/0.4197, allocations: 367.3 kB / 426 MB, free: 8.723 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.565e-06/0.4197, allocations: 0 / 426 MB, free: 8.723 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.002314/0.422, allocations: 1.096 MB / 427.1 MB, free: 7.621 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.071e-05/0.422, allocations: 63.39 kB / 427.2 MB, free: 7.547 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003843/0.4259, allocations: 2.948 MB / 430.1 MB, free: 4.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.715e-05/0.426, allocations: 33.7 kB / 430.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001317/0.4273, allocations: 1.496 MB / 431.7 MB, free: 3.047 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.4275, allocations: 169.8 kB / 431.8 MB, free: 2.887 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003043/0.4278, allocations: 234.1 kB / 432.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000118/0.4279, allocations: 339.1 kB / 432.4 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000565/0.4285, allocations: 241.8 kB / 432.6 MB, free: 2.082 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007591/0.4293, allocations: 0.6006 MB / 433.2 MB, free: 1.312 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001316/0.4306, allocations: 0.8981 MB / 434.1 MB, free: 300 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.484e-06/0.4306, allocations: 4 kB / 434.1 MB, free: 296 kB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002398/0.433, allocations: 1.231 MB / 435.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.202e-05/0.433, allocations: 12 kB / 435.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000107/0.4332, allocations: 80 kB / 435.5 MB, free: 15.04 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.512e-05/0.4332, allocations: 16.78 kB / 435.5 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006589/0.4339, allocations: 208.3 kB / 435.7 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.693e-05/0.4339, allocations: 25.14 kB / 435.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001422/0.4354, allocations: 108.6 kB / 435.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.4355, allocations: 71.84 kB / 435.9 MB, free: 14.64 MB / 350.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.0008235/0.4363, allocations: 436.6 kB / 436.3 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000516/0.4368, allocations: 387.2 kB / 436.7 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002479/0.4393, allocations: 1.204 MB / 437.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.305e-06/0.4393, allocations: 4 kB / 437.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.4394, allocations: 0 / 437.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.076e-06/0.4394, allocations: 3.984 kB / 437.9 MB, free: 12.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004063/0.4434, allocations: 2.094 MB / 440 MB, free: 10.49 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001006/0.4436, allocations: 68 kB / 440.1 MB, free: 10.42 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004511/0.444, allocations: 95.59 kB / 440.1 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.277e-06/0.444, allocations: 10.27 kB / 440.2 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.237e-05/0.4441, allocations: 32 kB / 440.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.691e-06/0.4441, allocations: 6.906 kB / 440.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4441, allocations: 1.438 kB / 440.2 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00209/0.4462, allocations: 1.296 MB / 441.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001179/0.4474, allocations: 487.2 kB / 442 MB, free: 8.469 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002844/0.4477, allocations: 12.05 kB / 442 MB, free: 8.457 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006601/0.4484, allocations: 31.97 kB / 442 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001475/0.4485, allocations: 59.94 kB / 442.1 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.031e-05/0.4486, allocations: 37.75 kB / 442.1 MB, free: 8.332 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00233/0.4509, allocations: 1.923 MB / 444 MB, free: 6.41 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.51e-07/0.451, allocations: 1.406 kB / 444 MB, free: 6.41 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00142/0.4524, allocations: 0.5894 MB / 444.6 MB, free: 5.82 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.001147/0.4535, allocations: 0.7798 MB / 445.4 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001495/0.455, allocations: 0.8238 MB / 446.2 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4551, allocations: 0 / 446.2 MB, free: 4.371 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007295/0.4558, allocations: 452.1 kB / 446.7 MB, free: 3.918 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00169/0.4575, allocations: 0.5107 MB / 447.2 MB, free: 3.402 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006168/0.4637, allocations: 4.314 MB / 451.5 MB, free: 15.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001264/0.465, allocations: 1.674 MB / 453.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001104/0.4661, allocations: 357.3 kB / 453.5 MB, free: 13.02 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002736/0.4664, allocations: 154.3 kB / 453.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of SimCode: time 8.91e-07/0.4664, allocations: 0 / 453.7 MB, free: 12.88 MB / 366.1 MB Notification: Performance of Templates: time 0.0541/0.5205, allocations: 31.26 MB / 484.9 MB, free: 13.74 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 -s cvode -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