Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Electrical.Spice3.Examples.FourInverters") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001697/0.001697, allocations: 112.4 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002101/0.002101, allocations: 213.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.524/2.524, allocations: 227.4 MB / 247.6 MB, free: 10.51 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002365/0.002365, allocations: 63.89 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.392/0.3944, allocations: 50.53 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.04614/0.4406, allocations: 26.72 MB / 436.6 MB, free: 6.762 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.05721/0.4978, allocations: 22.38 MB / 459 MB, free: 304 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009964/0.5078, allocations: 170.6 kB / 459.2 MB, free: 132 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009339/0.5173, allocations: 1.77 MB / 460.9 MB, free: 14.35 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0215/0.5388, allocations: 3.219 MB / 464.2 MB, free: 11.11 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01125/0.5501, allocations: 1.623 MB / 465.8 MB, free: 9.48 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.05213/0.6023, allocations: 12.82 MB / 478.6 MB, free: 12.62 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003254/0.6056, allocations: 0.863 MB / 479.5 MB, free: 11.72 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006451/0.6121, allocations: 2.107 MB / 481.6 MB, free: 9.602 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006555/0.6187, allocations: 2.103 MB / 483.7 MB, free: 7.484 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001229/0.62, allocations: 140 kB / 483.8 MB, free: 7.348 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01046/0.6305, allocations: 1.541 MB / 485.4 MB, free: 5.805 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001583/0.6322, allocations: 0.5971 MB / 486 MB, free: 5.203 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0063/0.6385, allocations: 2.624 MB / 488.6 MB, free: 2.562 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01718/0.6557, allocations: 6.634 MB / 495.2 MB, free: 11.9 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.674e-06/0.6558, allocations: 0 / 495.2 MB, free: 11.9 MB / 414.1 MB Notification: Performance of FrontEnd: time 2.145e-06/0.6558, allocations: 0 / 495.2 MB, free: 11.9 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0002529/0.6561, allocations: 0 / 495.2 MB, free: 11.9 MB / 414.1 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.02102/0.6771, allocations: 6.678 MB / 0.4901 GB, free: 5.125 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.177e-05/0.6772, allocations: 8.031 kB / 0.4901 GB, free: 5.117 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002027/0.6793, allocations: 0.7409 MB / 0.4909 GB, free: 4.367 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01454/0.6938, allocations: 4.594 MB / 0.4953 GB, free: 15.68 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001158/0.694, allocations: 70 kB / 0.4954 GB, free: 15.61 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007072/0.6947, allocations: 99.89 kB / 0.4955 GB, free: 15.51 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005182/0.6999, allocations: 1.297 MB / 0.4968 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.59e-05/0.7, allocations: 0 / 0.4968 GB, free: 14.2 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003538/0.7004, allocations: 36 kB / 0.4968 GB, free: 14.16 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.334e-05/0.7005, allocations: 39.97 kB / 0.4968 GB, free: 14.12 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005406/0.706, allocations: 1.484 MB / 0.4983 GB, free: 12.64 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02183/0.7278, allocations: 5.62 MB / 0.5038 GB, free: 6.93 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003805/0.7317, allocations: 0.9967 MB / 0.5048 GB, free: 5.922 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003584/0.7353, allocations: 1.223 MB / 0.506 GB, free: 4.703 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.4181/1.154, allocations: 61.05 MB / 0.5656 GB, free: 103.7 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001339/1.155, allocations: 0.5544 MB / 0.5661 GB, free: 103.4 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 7.224e-06/1.155, allocations: 0 / 0.5661 GB, free: 103.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.005806/1.161, allocations: 1.882 MB / 0.568 GB, free: 102.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.335e-05/1.161, allocations: 62.78 kB / 0.568 GB, free: 102.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01387/1.175, allocations: 5.593 MB / 0.5735 GB, free: 98.35 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003664/1.175, allocations: 37.7 kB / 0.5735 GB, free: 98.31 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.003766/1.179, allocations: 2.943 MB / 0.5764 GB, free: 95.38 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007025/1.18, allocations: 294.5 kB / 0.5767 GB, free: 95.09 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001362/1.181, allocations: 422.5 kB / 0.5771 GB, free: 94.67 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.369e-05/1.181, allocations: 301.1 kB / 0.5774 GB, free: 94.38 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001488/1.183, allocations: 407.3 kB / 0.5777 GB, free: 93.98 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001743/1.185, allocations: 1.091 MB / 0.5788 GB, free: 92.58 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003283/1.188, allocations: 1.603 MB / 0.5804 GB, free: 90.71 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.503e-05/1.188, allocations: 8 kB / 0.5804 GB, free: 90.7 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.006398/1.194, allocations: 2.215 MB / 0.5826 GB, free: 88.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.388e-05/1.194, allocations: 22.59 kB / 0.5826 GB, free: 88.48 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002827/1.195, allocations: 156 kB / 0.5827 GB, free: 88.33 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.201e-05/1.195, allocations: 36 kB / 0.5828 GB, free: 88.29 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002105/1.197, allocations: 355.4 kB / 0.5831 GB, free: 87.95 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.667e-05/1.197, allocations: 51.47 kB / 0.5831 GB, free: 87.9 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00369/1.201, allocations: 182 kB / 0.5833 GB, free: 87.72 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003693/1.201, allocations: 128 kB / 0.5834 GB, free: 87.6 MB / 462.1 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 (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 (184): * Single equations (assignments): 176 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 8 * 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.002297/1.203, allocations: 0.7159 MB / 0.5841 GB, free: 86.87 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001446/1.205, allocations: 0.714 MB / 0.5848 GB, free: 86.15 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006861/1.212, allocations: 2.154 MB / 0.5869 GB, free: 84.05 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.866e-05/1.212, allocations: 8 kB / 0.5869 GB, free: 84.04 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/1.212, allocations: 0 / 0.5869 GB, free: 84.04 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.448e-05/1.212, allocations: 3.984 kB / 0.587 GB, free: 84.04 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01061/1.223, allocations: 3.608 MB / 0.5905 GB, free: 80.38 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002535/1.223, allocations: 139 kB / 0.5906 GB, free: 80.25 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001108/1.224, allocations: 151.8 kB / 0.5908 GB, free: 80.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.636e-05/1.224, allocations: 4 kB / 0.5908 GB, free: 80.1 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001572/1.224, allocations: 71.98 kB / 0.5908 GB, free: 80.03 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.707e-06/1.224, allocations: 0 / 0.5908 GB, free: 80.03 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/1.224, allocations: 4 kB / 0.5908 GB, free: 80.02 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005893/1.23, allocations: 2.145 MB / 0.5929 GB, free: 77.85 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003679/1.234, allocations: 0.8278 MB / 0.5937 GB, free: 76.99 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001682/1.236, allocations: 16 kB / 0.5937 GB, free: 76.98 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002865/1.239, allocations: 33.97 kB / 0.5938 GB, free: 76.95 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004525/1.239, allocations: 100.5 kB / 0.5939 GB, free: 76.85 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002523/1.239, allocations: 71.98 kB / 0.5939 GB, free: 76.78 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.01865/1.258, allocations: 3.604 MB / 0.5975 GB, free: 73.2 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.583e-06/1.258, allocations: 0 / 0.5975 GB, free: 73.2 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004782/1.263, allocations: 1.076 MB / 0.5985 GB, free: 72.17 MB / 462.1 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 (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.002811/1.27, allocations: 1.177 MB / 0.5997 GB, free: 71.03 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.00392/1.274, allocations: 1.431 MB / 0.6011 GB, free: 69.56 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.836e-06/1.274, allocations: 7.938 kB / 0.6011 GB, free: 69.55 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005071/1.279, allocations: 0.7705 MB / 0.6018 GB, free: 68.73 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008537/1.287, allocations: 1.202 MB / 0.603 GB, free: 67.53 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01722/1.305, allocations: 8.192 MB / 0.611 GB, free: 59.3 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002497/1.307, allocations: 2.588 MB / 0.6135 GB, free: 56.69 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008639/1.308, allocations: 291.4 kB / 0.6138 GB, free: 56.4 MB / 462.1 MB Notification: Performance of SimCode: time 8.31e-07/1.308, allocations: 3.938 kB / 0.6138 GB, free: 56.4 MB / 462.1 MB Notification: Performance of Templates: time 0.1423/1.45, allocations: 71.61 MB / 0.6837 GB, free: 0.8555 MB / 478.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/FourInverters/FourInverters.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.FourInverters.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches