Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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_cpp_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_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002514/0.002514, allocations: 187.1 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.594/3.594, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001938/0.001938, allocations: 98.83 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006409/0.0006406, allocations: 16 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1639/0.1646, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.03185/0.1965, allocations: 11.74 MB / 386.3 MB, free: 3.66 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.4533/0.6499, allocations: 17.06 MB / 403.3 MB, free: 6.996 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004777/0.6547, allocations: 30.41 kB / 403.4 MB, free: 6.984 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.007588/0.6624, allocations: 0.9885 MB / 404.4 MB, free: 6.727 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01821/0.6807, allocations: 2.111 MB / 406.5 MB, free: 5.371 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.01129/0.6921, allocations: 1.15 MB / 407.6 MB, free: 4.734 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.02723/0.7194, allocations: 6.172 MB / 413.8 MB, free: 1.938 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001952/0.7214, allocations: 435.3 kB / 414.2 MB, free: 1.723 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003801/0.7253, allocations: 0.8446 MB / 415.1 MB, free: 1.336 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003828/0.7292, allocations: 1.026 MB / 416.1 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009733/0.7302, allocations: 43.06 kB / 416.1 MB, free: 0.7812 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01242/0.7427, allocations: 1.216 MB / 417.3 MB, free: 0.5195 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001169/0.7439, allocations: 285 kB / 417.6 MB, free: 312 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.002329/0.7463, allocations: 0.6518 MB / 418.3 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.009096/0.7555, allocations: 2.792 MB / 421.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.783e-06/0.7556, allocations: 4 kB / 421.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.418e-06/0.7556, allocations: 0 / 421.1 MB, free: 13.93 MB / 298.7 MB Notification: Performance of Transformations before backend: time 0.0002052/0.7558, allocations: 0 / 421.1 MB, free: 13.93 MB / 298.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.01417/0.77, allocations: 3.384 MB / 424.5 MB, free: 10.97 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.755e-05/0.7701, allocations: 12.03 kB / 424.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001687/0.7718, allocations: 414.9 kB / 424.9 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0267/0.7986, allocations: 2.312 MB / 427.2 MB, free: 8.168 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001164/0.7988, allocations: 41 kB / 427.2 MB, free: 8.129 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004921/0.7993, allocations: 48 kB / 427.3 MB, free: 8.082 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004311/0.8036, allocations: 0.7499 MB / 428 MB, free: 7.328 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.996e-05/0.8038, allocations: 0 / 428 MB, free: 7.328 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002105/0.804, allocations: 20 kB / 428 MB, free: 7.309 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.57e-05/0.8041, allocations: 19.98 kB / 428.1 MB, free: 7.289 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01708/0.8212, allocations: 0.8593 MB / 428.9 MB, free: 6.426 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02798/0.8492, allocations: 3.126 MB / 432 MB, free: 3.219 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003617/0.8529, allocations: 0.6103 MB / 432.7 MB, free: 2.602 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.09088/0.9438, allocations: 30.37 MB / 463 MB, free: 132 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002302/0.9462, allocations: 377.7 kB / 463.4 MB, free: 15.75 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 6.261e-06/0.9463, allocations: 0 / 463.4 MB, free: 15.75 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.007987/0.9543, allocations: 1.501 MB / 464.9 MB, free: 14.16 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.9545, allocations: 59.41 kB / 465 MB, free: 14.09 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.02024/0.9747, allocations: 3.072 MB / 468 MB, free: 11.02 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003058/0.9751, allocations: 37.7 kB / 468.1 MB, free: 10.98 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.007077/0.9822, allocations: 1.287 MB / 469.4 MB, free: 9.688 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005379/0.9828, allocations: 169.6 kB / 469.5 MB, free: 9.52 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001251/0.983, allocations: 20 kB / 469.5 MB, free: 9.5 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.000263/0.9833, allocations: 346.8 kB / 469.9 MB, free: 9.152 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001916/0.9852, allocations: 257.9 kB / 470.1 MB, free: 8.902 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002454/0.9878, allocations: 0.6138 MB / 470.7 MB, free: 8.109 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006316/0.9942, allocations: 340.5 kB / 471.1 MB, free: 7.777 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.627e-05/0.9943, allocations: 7.938 kB / 471.1 MB, free: 7.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.01047/1.005, allocations: 0.9562 MB / 472 MB, free: 6.805 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.809e-05/1.005, allocations: 12 kB / 472 MB, free: 6.793 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0003205/1.005, allocations: 80 kB / 472.1 MB, free: 6.715 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.719e-05/1.005, allocations: 20 kB / 472.1 MB, free: 6.695 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.006184/1.012, allocations: 219.6 kB / 472.4 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.345e-05/1.012, allocations: 23.92 kB / 472.4 MB, free: 6.457 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007369/1.019, allocations: 111.1 kB / 472.5 MB, free: 6.348 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004234/1.02, allocations: 71.98 kB / 472.6 MB, free: 6.277 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.006515/1.026, allocations: 457.5 kB / 473 MB, free: 5.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001374/1.027, allocations: 399.1 kB / 473.4 MB, free: 5.426 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01695/1.044, allocations: 1.279 MB / 474.7 MB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.372e-05/1.045, allocations: 4 kB / 474.7 MB, free: 4.137 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.407e-05/1.045, allocations: 3.953 kB / 474.7 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.454e-05/1.045, allocations: 0 / 474.7 MB, free: 4.133 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01001/1.055, allocations: 2.186 MB / 476.9 MB, free: 1.875 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002678/1.055, allocations: 64.88 kB / 476.9 MB, free: 1.812 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001286/1.056, allocations: 108 kB / 477 MB, free: 1.707 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.644e-05/1.056, allocations: 7.953 kB / 477 MB, free: 1.699 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002341/1.057, allocations: 31.94 kB / 477.1 MB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.666e-06/1.057, allocations: 0 / 477.1 MB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.083e-06/1.057, allocations: 4 kB / 477.1 MB, free: 1.664 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006718/1.063, allocations: 1.447 MB / 478.5 MB, free: 176 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002291/1.066, allocations: 494.8 kB / 479 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001276/1.067, allocations: 8 kB / 479 MB, free: 15.66 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0028/1.07, allocations: 48.02 kB / 479.1 MB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005208/1.07, allocations: 55.94 kB / 479.1 MB, free: 15.55 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001908/1.071, allocations: 43.92 kB / 479.2 MB, free: 15.51 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00814/1.079, allocations: 1.984 MB / 481.2 MB, free: 13.54 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.42e-07/1.079, allocations: 0 / 481.2 MB, free: 13.54 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.004344/1.083, allocations: 0.5973 MB / 481.7 MB, free: 12.94 MB / 362.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 (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.002757/1.086, allocations: 0.7396 MB / 482.5 MB, free: 12.19 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.004469/1.091, allocations: 0.8452 MB / 483.3 MB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.065e-05/1.091, allocations: 0 / 483.3 MB, free: 11.33 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002233/1.093, allocations: 471.2 kB / 483.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004919/1.098, allocations: 0.503 MB / 484.3 MB, free: 10.34 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0184/1.116, allocations: 5.21 MB / 489.5 MB, free: 5.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003756/1.12, allocations: 1.788 MB / 491.3 MB, free: 3.273 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009037/1.121, allocations: 151.4 kB / 491.4 MB, free: 3.125 MB / 362.7 MB Notification: Performance of SimCode: time 1.764e-06/1.121, allocations: 0 / 491.4 MB, free: 3.125 MB / 362.7 MB Notification: Performance of Templates: time 0.1301/1.251, allocations: 37.2 MB / 0.5163 GB, free: 13.86 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins1/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_cpp_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches