Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001716/0.001716, allocations: 194.1 kB / 17.05 MB, free: 5.074 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.43/1.43, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008389/0.0008389, allocations: 105.3 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002745/0.0002747, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2408/0.2411, allocations: 51.3 MB / 407.5 MB, free: 27.83 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.01382/0.255, allocations: 23.75 MB / 431.2 MB, free: 4.016 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.02432/0.2794, allocations: 20.53 MB / 451.8 MB, free: 15.44 MB / 330.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004728/0.2841, allocations: 59.62 kB / 451.8 MB, free: 15.38 MB / 330.7 MB Notification: Performance of NFTyping.typeComponents: time 0.004425/0.2886, allocations: 1.29 MB / 453.1 MB, free: 14.08 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.01064/0.2993, allocations: 2.62 MB / 455.7 MB, free: 11.44 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004056/0.3033, allocations: 1.245 MB / 457 MB, free: 10.19 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.01793/0.3213, allocations: 11.98 MB / 469 MB, free: 14.18 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001869/0.3232, allocations: 0.7872 MB / 469.7 MB, free: 13.36 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003036/0.3263, allocations: 1.815 MB / 471.6 MB, free: 11.53 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002173/0.3284, allocations: 1.926 MB / 473.5 MB, free: 9.594 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002861/0.3287, allocations: 76 kB / 473.6 MB, free: 9.52 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003618/0.3324, allocations: 1.361 MB / 474.9 MB, free: 8.156 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0004342/0.3328, allocations: 0.5078 MB / 475.4 MB, free: 7.645 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001306/0.3341, allocations: 1.174 MB / 476.6 MB, free: 6.461 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004152/0.3383, allocations: 4.778 MB / 481.4 MB, free: 1.668 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.3383, allocations: 0 / 481.4 MB, free: 1.668 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3383, allocations: 0 / 481.4 MB, free: 1.668 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.137e-05/0.3384, allocations: 0 / 481.4 MB, free: 1.668 MB / 346.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.007623/0.346, allocations: 5.87 MB / 487.3 MB, free: 11.71 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.3461, allocations: 8.031 kB / 487.3 MB, free: 11.7 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007194/0.3468, allocations: 0.7371 MB / 488 MB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00614/0.353, allocations: 4.312 MB / 492.3 MB, free: 6.559 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.012e-05/0.353, allocations: 69.94 kB / 492.4 MB, free: 6.488 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001926/0.3532, allocations: 99.89 kB / 492.5 MB, free: 6.391 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002132/0.3554, allocations: 1.309 MB / 493.8 MB, free: 5.066 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.3554, allocations: 4 kB / 493.8 MB, free: 5.062 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.3555, allocations: 32 kB / 493.8 MB, free: 5.031 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.478e-05/0.3556, allocations: 39.97 kB / 493.9 MB, free: 4.992 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00234/0.3579, allocations: 1.523 MB / 495.4 MB, free: 3.465 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009374/0.3673, allocations: 5.652 MB / 0.4893 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001777/0.3691, allocations: 1.032 MB / 0.4903 GB, free: 12.68 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0016/0.3707, allocations: 1.239 MB / 0.4915 GB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2199/0.5906, allocations: 61.11 MB / 0.5512 GB, free: 44.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008229/0.5915, allocations: 0.5751 MB / 0.5517 GB, free: 43.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=85): time 2.695e-06/0.5915, allocations: 0 / 0.5517 GB, free: 43.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=85): time 0.002584/0.5941, allocations: 1.934 MB / 0.5536 GB, free: 41.95 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.156e-05/0.5941, allocations: 63.95 kB / 0.5537 GB, free: 41.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004509/0.5987, allocations: 5.522 MB / 0.5591 GB, free: 36.39 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.049e-05/0.5987, allocations: 41.52 kB / 0.5591 GB, free: 36.35 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001536/0.6003, allocations: 2.942 MB / 0.562 GB, free: 33.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001557/0.6004, allocations: 294.5 kB / 0.5623 GB, free: 33.13 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.333e-05/0.6005, allocations: 32 kB / 0.5623 GB, free: 33.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.437e-05/0.6006, allocations: 361.9 kB / 0.5627 GB, free: 32.74 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007078/0.6013, allocations: 423 kB / 0.5631 GB, free: 32.33 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008781/0.6022, allocations: 1.102 MB / 0.5641 GB, free: 30.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008311/0.603, allocations: 0.5711 MB / 0.5647 GB, free: 30.39 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.316e-06/0.603, allocations: 8 kB / 0.5647 GB, free: 30.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.002559/0.6056, allocations: 2.242 MB / 0.5669 GB, free: 28.15 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.6056, allocations: 16 kB / 0.5669 GB, free: 28.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.00013/0.6058, allocations: 167.8 kB / 0.5671 GB, free: 27.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.995e-05/0.6058, allocations: 36 kB / 0.5671 GB, free: 27.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001016/0.6068, allocations: 371.2 kB / 0.5675 GB, free: 27.58 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.421e-05/0.6069, allocations: 47.86 kB / 0.5675 GB, free: 27.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.6083, allocations: 190.2 kB / 0.5677 GB, free: 27.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000139/0.6084, allocations: 125.9 kB / 0.5678 GB, free: 27.23 MB / 378.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.0009582/0.6094, allocations: 0.7169 MB / 0.5685 GB, free: 26.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004105/0.6098, allocations: 0.714 MB / 0.5692 GB, free: 25.78 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003988/0.6138, allocations: 2.197 MB / 0.5713 GB, free: 23.6 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.646e-06/0.6138, allocations: 11.98 kB / 0.5714 GB, free: 23.59 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.6138, allocations: 0 / 0.5714 GB, free: 23.59 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.473e-06/0.6138, allocations: 7.984 kB / 0.5714 GB, free: 23.58 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003883/0.6177, allocations: 3.645 MB / 0.5749 GB, free: 19.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001145/0.6178, allocations: 144 kB / 0.5751 GB, free: 19.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006696/0.6185, allocations: 159.8 kB / 0.5752 GB, free: 19.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/0.6185, allocations: 8 kB / 0.5752 GB, free: 19.58 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.217e-05/0.6186, allocations: 63.94 kB / 0.5753 GB, free: 19.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.6186, allocations: 4 kB / 0.5753 GB, free: 19.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.6186, allocations: 0 / 0.5753 GB, free: 19.52 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002498/0.6211, allocations: 2.21 MB / 0.5774 GB, free: 17.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008847/0.622, allocations: 0.8201 MB / 0.5782 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004292/0.6225, allocations: 12 kB / 0.5783 GB, free: 16.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.6235, allocations: 47.95 kB / 0.5783 GB, free: 16.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001527/0.6237, allocations: 104.4 kB / 0.5784 GB, free: 16.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.383e-05/0.6238, allocations: 67.98 kB / 0.5785 GB, free: 16.21 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00327/0.6271, allocations: 3.538 MB / 0.5819 GB, free: 12.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6271, allocations: 0 / 0.5819 GB, free: 12.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001764/0.6288, allocations: 1.076 MB / 0.583 GB, free: 11.66 MB / 378.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.001172/0.63, allocations: 1.116 MB / 0.5841 GB, free: 10.8 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001834/0.6319, allocations: 1.467 MB / 0.5855 GB, free: 9.293 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6319, allocations: 0 / 0.5855 GB, free: 9.293 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008588/0.6327, allocations: 0.7864 MB / 0.5863 GB, free: 8.457 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00364/0.6364, allocations: 1.149 MB / 0.5874 GB, free: 7.309 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00948/0.6459, allocations: 9.291 MB / 0.5965 GB, free: 13.98 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00194/0.6479, allocations: 2.588 MB / 0.599 GB, free: 11.36 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005117/0.6484, allocations: 287.4 kB / 0.5993 GB, free: 11.08 MB / 394.7 MB Notification: Performance of SimCode: time 1.032e-06/0.6484, allocations: 0 / 0.5993 GB, free: 11.08 MB / 394.7 MB Notification: Performance of Templates: time 0.09487/0.7433, allocations: 69.71 MB / 0.6673 GB, free: 5.48 MB / 458.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches