Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.InvertersExtendedModel,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.InvertersExtendedModel") translateModel(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,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.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 97.77 kB / 16.95 MB, free: 6.453 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.00115/0.00115, allocations: 183.7 kB / 17.84 MB, free: 6.004 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.602/1.602, allocations: 205.4 MB / 224 MB, free: 13.16 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.0006405/0.0006406, allocations: 20 kB / 280.8 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1205/0.1212, allocations: 47.58 MB / 328.3 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.01653/0.1377, allocations: 12.92 MB / 341.3 MB, free: 7.137 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.02777/0.1656, allocations: 18 MB / 359.3 MB, free: 5.086 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003578/0.1692, allocations: 31.81 kB / 359.3 MB, free: 5.055 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003854/0.1731, allocations: 0.9563 MB / 360.3 MB, free: 4.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009054/0.1822, allocations: 1.851 MB / 362.1 MB, free: 2.227 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004895/0.1871, allocations: 1.065 MB / 363.2 MB, free: 1.156 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01151/0.1987, allocations: 6.046 MB / 369.2 MB, free: 11.09 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001303/0.2, allocations: 433 kB / 369.6 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001697/0.2017, allocations: 0.8745 MB / 370.5 MB, free: 9.754 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001783/0.2035, allocations: 1.025 MB / 371.5 MB, free: 8.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003847/0.2039, allocations: 40 kB / 371.6 MB, free: 8.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004606/0.2086, allocations: 1.074 MB / 372.7 MB, free: 7.609 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004653/0.209, allocations: 285.8 kB / 372.9 MB, free: 7.328 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001199/0.2103, allocations: 0.6559 MB / 373.6 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00315/0.2134, allocations: 2.882 MB / 376.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.711e-06/0.2134, allocations: 0 / 376.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.2134, allocations: 0 / 376.5 MB, free: 3.773 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.801e-05/0.2135, allocations: 0 / 376.5 MB, free: 3.773 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.004496/0.218, allocations: 3.405 MB / 379.9 MB, free: 300 kB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.218, allocations: 8.031 kB / 379.9 MB, free: 292 kB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.1781/0.3961, allocations: 411.7 kB / 380.3 MB, free: 27.17 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005693/0.4019, allocations: 2.324 MB / 382.6 MB, free: 26.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.834e-05/0.402, allocations: 36.52 kB / 382.6 MB, free: 26.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001421/0.4022, allocations: 54.47 kB / 382.7 MB, free: 26.73 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001731/0.4039, allocations: 0.7501 MB / 383.5 MB, free: 26.69 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.669e-05/0.4039, allocations: 3.5 kB / 383.5 MB, free: 26.69 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.727e-05/0.404, allocations: 21.25 kB / 383.5 MB, free: 26.69 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.562e-05/0.404, allocations: 20.5 kB / 383.5 MB, free: 26.69 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001671/0.4057, allocations: 0.8582 MB / 384.4 MB, free: 26.68 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006108/0.4118, allocations: 3.129 MB / 387.5 MB, free: 26.16 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001179/0.413, allocations: 0.6183 MB / 388.1 MB, free: 26.13 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009293/0.414, allocations: 0.6694 MB / 388.8 MB, free: 26.11 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02422/0.4382, allocations: 30.23 MB / 419 MB, free: 3.273 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007161/0.439, allocations: 391 kB / 419.4 MB, free: 3.121 MB / 318.1 MB Notification: Performance of pre-optimization done (n=49): time 3.076e-06/0.439, allocations: 0 / 419.4 MB, free: 3.121 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.002139/0.4411, allocations: 1.178 MB / 420.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.804e-05/0.4412, allocations: 59.86 kB / 420.6 MB, free: 2.711 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002961/0.4442, allocations: 3.063 MB / 423.7 MB, free: 484 kB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.6e-05/0.4442, allocations: 39.52 kB / 423.7 MB, free: 444 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001065/0.4453, allocations: 1.579 MB / 425.3 MB, free: 15.86 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000141/0.4454, allocations: 166.6 kB / 425.5 MB, free: 15.73 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.338e-05/0.4455, allocations: 16.56 kB / 425.5 MB, free: 15.72 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.4457, allocations: 342.6 kB / 425.8 MB, free: 15.4 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005457/0.4462, allocations: 258.9 kB / 426.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007972/0.447, allocations: 0.6267 MB / 426.7 MB, free: 14.5 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006296/0.4477, allocations: 340.4 kB / 427 MB, free: 14.28 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.556e-06/0.4477, allocations: 4 kB / 427 MB, free: 14.27 MB / 334.1 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.002131/0.4498, allocations: 1.284 MB / 428.3 MB, free: 13.25 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.975e-05/0.4499, allocations: 12 kB / 428.3 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001291/0.45, allocations: 84.48 kB / 428.4 MB, free: 13.16 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.313e-05/0.45, allocations: 23.98 kB / 428.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007/0.4507, allocations: 213.5 kB / 428.6 MB, free: 12.95 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.471e-05/0.4508, allocations: 26.92 kB / 428.7 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001015/0.4518, allocations: 118.8 kB / 428.8 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001113/0.4519, allocations: 67.42 kB / 428.8 MB, free: 12.77 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 ($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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007761/0.4527, allocations: 448.6 kB / 429.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000392/0.4531, allocations: 400.4 kB / 429.7 MB, free: 12.12 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002901/0.456, allocations: 1.268 MB / 430.9 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.899e-06/0.456, allocations: 7.953 kB / 431 MB, free: 11.12 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.137e-06/0.456, allocations: 7.938 kB / 431 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.4561, allocations: 3.984 kB / 431 MB, free: 11.11 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003399/0.4595, allocations: 2.187 MB / 433.2 MB, free: 9.434 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001059/0.4596, allocations: 70.89 kB / 433.2 MB, free: 9.367 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004637/0.4601, allocations: 110.1 kB / 433.3 MB, free: 9.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.063e-05/0.4601, allocations: 4 kB / 433.3 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.856e-05/0.4601, allocations: 30.44 kB / 433.4 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.767e-06/0.4601, allocations: 0 / 433.4 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.434e-06/0.4602, allocations: 0 / 433.4 MB, free: 9.238 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002275/0.4624, allocations: 1.388 MB / 434.7 MB, free: 7.945 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007584/0.4632, allocations: 499.9 kB / 435.2 MB, free: 7.434 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002719/0.4635, allocations: 12 kB / 435.2 MB, free: 7.422 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006083/0.4641, allocations: 40.03 kB / 435.3 MB, free: 7.383 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.4643, allocations: 59.94 kB / 435.3 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.883e-05/0.4644, allocations: 39.98 kB / 435.4 MB, free: 7.285 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.002792/0.4672, allocations: 1.98 MB / 437.4 MB, free: 5.312 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.044e-06/0.4672, allocations: 4 kB / 437.4 MB, free: 5.309 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001655/0.4688, allocations: 0.6033 MB / 438 MB, free: 4.73 MB / 334.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001226/0.4701, allocations: 0.7459 MB / 438.7 MB, free: 4.148 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001696/0.4718, allocations: 0.8418 MB / 439.6 MB, free: 3.316 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.779e-06/0.4718, allocations: 4 kB / 439.6 MB, free: 3.312 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007872/0.4726, allocations: 468.7 kB / 440 MB, free: 2.84 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001723/0.4743, allocations: 0.511 MB / 440.5 MB, free: 2.324 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007231/0.4815, allocations: 5.138 MB / 445.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001288/0.4829, allocations: 1.722 MB / 447.4 MB, free: 11.41 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.001321/0.4842, allocations: 365.4 kB / 447.7 MB, free: 11.05 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002343/0.4844, allocations: 147.4 kB / 447.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of SimCode: time 1.493e-06/0.4845, allocations: 0 / 447.9 MB, free: 10.9 MB / 350.1 MB Notification: Performance of Templates: time 0.05453/0.539, allocations: 29.95 MB / 477.8 MB, free: 13.04 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches