Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.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.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") translateModel(Modelica.Electrical.Spice3.Examples.FourInverters,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp1.S.v|mp2.S.v|mp3.S.v|mp4.S.v|v.p.v",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002004/0.002004, allocations: 179.2 kB / 16.41 MB, free: 5.727 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.575/1.575, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.0007169/0.0007169, allocations: 88.97 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003346/0.0003346, allocations: 8 kB / 327 MB, free: 200 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1982/0.1986, allocations: 47.57 MB / 374.5 MB, free: 45.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.0131/0.2117, allocations: 22.49 MB / 397 MB, free: 26.31 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01709/0.2288, allocations: 19.51 MB / 416.5 MB, free: 6.742 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002621/0.2315, allocations: 59.62 kB / 416.6 MB, free: 6.684 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002406/0.2339, allocations: 1.235 MB / 417.8 MB, free: 5.441 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005832/0.2397, allocations: 2.588 MB / 420.4 MB, free: 2.836 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002873/0.2426, allocations: 1.198 MB / 421.6 MB, free: 1.633 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.01438/0.257, allocations: 11.55 MB / 433.2 MB, free: 6.051 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001301/0.2583, allocations: 0.7988 MB / 434 MB, free: 5.211 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001911/0.2603, allocations: 1.605 MB / 435.6 MB, free: 3.598 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001775/0.262, allocations: 1.875 MB / 437.5 MB, free: 1.711 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000294/0.2624, allocations: 76 kB / 437.5 MB, free: 1.637 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003138/0.2655, allocations: 1.101 MB / 438.6 MB, free: 0.5352 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004216/0.2659, allocations: 0.5155 MB / 439.1 MB, free: 16 kB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009959/0.2669, allocations: 1.178 MB / 440.3 MB, free: 14.82 MB / 330.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003957/0.2709, allocations: 4.806 MB / 445.1 MB, free: 10 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.2709, allocations: 0 / 445.1 MB, free: 10 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.2709, allocations: 0 / 445.1 MB, free: 10 MB / 330.7 MB Notification: Performance of Transformations before backend: time 8.182e-05/0.271, allocations: 0 / 445.1 MB, free: 10 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: 288 * Number of variables: 288 Notification: Performance of Generate backend data structure: time 0.00769/0.2787, allocations: 5.898 MB / 451 MB, free: 4.016 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.302e-05/0.2788, allocations: 12.03 kB / 451 MB, free: 4.004 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006761/0.2794, allocations: 0.7448 MB / 451.8 MB, free: 3.25 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00606/0.2855, allocations: 4.34 MB / 456.1 MB, free: 14.83 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.858e-05/0.2856, allocations: 70 kB / 456.2 MB, free: 14.76 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001943/0.2858, allocations: 99.89 kB / 456.3 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002107/0.2879, allocations: 1.32 MB / 457.6 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.772e-05/0.2879, allocations: 0 / 457.6 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001187/0.288, allocations: 36 kB / 457.6 MB, free: 13.29 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.333e-05/0.2881, allocations: 39.97 kB / 457.7 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002454/0.2905, allocations: 1.519 MB / 459.2 MB, free: 11.73 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008225/0.2988, allocations: 5.687 MB / 464.9 MB, free: 5.949 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00163/0.3004, allocations: 1.036 MB / 465.9 MB, free: 4.902 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001563/0.302, allocations: 1.243 MB / 467.2 MB, free: 3.664 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.186/0.488, allocations: 59.96 MB / 0.5148 GB, free: 115.9 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000969/0.489, allocations: 0.5778 MB / 0.5153 GB, free: 115.6 MB / 394.7 MB Notification: Performance of pre-optimization done (n=85): time 2.605e-06/0.489, allocations: 0 / 0.5153 GB, free: 115.6 MB / 394.7 MB Notification: Performance of matching and sorting (n=85): time 0.002997/0.492, allocations: 1.944 MB / 0.5172 GB, free: 114.8 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.321e-05/0.4921, allocations: 68.23 kB / 0.5173 GB, free: 114.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005124/0.4972, allocations: 5.554 MB / 0.5227 GB, free: 111.9 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.112e-05/0.4973, allocations: 41.36 kB / 0.5228 GB, free: 111.8 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001571/0.4989, allocations: 2.934 MB / 0.5256 GB, free: 109.2 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001599/0.499, allocations: 296.7 kB / 0.5259 GB, free: 109 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.735e-05/0.4991, allocations: 30.59 kB / 0.5259 GB, free: 109 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 6.89e-05/0.4992, allocations: 366.9 kB / 0.5263 GB, free: 108.6 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007399/0.4999, allocations: 422.2 kB / 0.5267 GB, free: 108.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008821/0.5008, allocations: 1.104 MB / 0.5278 GB, free: 107 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008433/0.5017, allocations: 0.568 MB / 0.5283 GB, free: 106.5 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.218e-06/0.5017, allocations: 8 kB / 0.5283 GB, free: 106.5 MB / 394.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002581/0.5043, allocations: 2.245 MB / 0.5305 GB, free: 104.3 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.5043, allocations: 16 kB / 0.5305 GB, free: 104.2 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001332/0.5044, allocations: 164 kB / 0.5307 GB, free: 104.1 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.624e-05/0.5045, allocations: 40 kB / 0.5307 GB, free: 104 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001052/0.5055, allocations: 367.8 kB / 0.5311 GB, free: 103.7 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.698e-05/0.5056, allocations: 51.8 kB / 0.5311 GB, free: 103.6 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.507, allocations: 201.7 kB / 0.5313 GB, free: 103.4 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001364/0.5072, allocations: 120 kB / 0.5314 GB, free: 103.3 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 108 * 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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.0009434/0.5081, allocations: 0.7184 MB / 0.5321 GB, free: 102.6 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004197/0.5086, allocations: 0.7179 MB / 0.5328 GB, free: 101.9 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004097/0.5127, allocations: 2.212 MB / 0.535 GB, free: 99.76 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.346e-06/0.5127, allocations: 11.94 kB / 0.535 GB, free: 99.75 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.5127, allocations: 0 / 0.535 GB, free: 99.75 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.5127, allocations: 11.92 kB / 0.535 GB, free: 99.74 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003994/0.5167, allocations: 3.656 MB / 0.5386 GB, free: 96.04 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001149/0.5168, allocations: 140 kB / 0.5387 GB, free: 95.9 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006763/0.5175, allocations: 163.9 kB / 0.5389 GB, free: 95.74 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.5175, allocations: 4 kB / 0.5389 GB, free: 95.74 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.26e-05/0.5176, allocations: 59.98 kB / 0.5389 GB, free: 95.68 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.517e-06/0.5176, allocations: 4 kB / 0.5389 GB, free: 95.68 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.5176, allocations: 4 kB / 0.539 GB, free: 95.67 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/0.5203, allocations: 2.226 MB / 0.5411 GB, free: 93.42 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009579/0.5212, allocations: 0.8161 MB / 0.5419 GB, free: 92.57 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005034/0.5217, allocations: 19.98 kB / 0.5419 GB, free: 92.55 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001171/0.5229, allocations: 47.97 kB / 0.542 GB, free: 92.51 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.5231, allocations: 96.47 kB / 0.5421 GB, free: 92.41 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.654e-05/0.5232, allocations: 71.95 kB / 0.5421 GB, free: 92.34 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.00329/0.5265, allocations: 3.563 MB / 0.5456 GB, free: 88.81 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5265, allocations: 0 / 0.5456 GB, free: 88.81 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001742/0.5283, allocations: 1.083 MB / 0.5467 GB, free: 87.77 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (c1.vinternal,c2.vinternal,c3.vinternal,c4.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 (70): * Single equations (assignments): 56 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.001182/0.5294, allocations: 1.137 MB / 0.5478 GB, free: 86.9 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.5313, allocations: 1.471 MB / 0.5492 GB, free: 85.39 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.175e-06/0.5314, allocations: 0 / 0.5492 GB, free: 85.39 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008796/0.5322, allocations: 0.7864 MB / 0.55 GB, free: 84.55 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002526/0.5348, allocations: 0.9412 MB / 0.5509 GB, free: 83.61 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007984/0.5428, allocations: 9.335 MB / 0.56 GB, free: 74.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001214/0.544, allocations: 2.604 MB / 0.5626 GB, free: 71.59 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003769/0.5444, allocations: 291.4 kB / 0.5629 GB, free: 71.31 MB / 394.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5444, allocations: 0 / 0.5629 GB, free: 71.31 MB / 394.7 MB Notification: Performance of Templates: time 0.06991/0.6143, allocations: 70.04 MB / 0.6313 GB, free: 1.191 MB / 394.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches