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.001311/0.001311, allocations: 112.4 kB / 18.45 MB, free: 4.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 208 kB / 19.4 MB, free: 3.633 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.312/1.312, allocations: 227.4 MB / 247.6 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00115/0.001151, allocations: 59.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2264/0.2276, allocations: 50.55 MB / 409.9 MB, free: 1.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.FourInverters): time 0.02141/0.249, allocations: 26.71 MB / 436.6 MB, free: 6.742 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02691/0.276, allocations: 22.37 MB / 459 MB, free: 288 kB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004769/0.2808, allocations: 174.6 kB / 459.2 MB, free: 112 kB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004856/0.2857, allocations: 1.774 MB / 461 MB, free: 14.32 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01104/0.2968, allocations: 3.219 MB / 464.2 MB, free: 11.08 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005499/0.3023, allocations: 1.623 MB / 465.8 MB, free: 9.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.01809/0.3205, allocations: 12.82 MB / 478.6 MB, free: 12.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001614/0.3221, allocations: 0.8552 MB / 479.5 MB, free: 11.7 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003227/0.3254, allocations: 2.115 MB / 481.6 MB, free: 9.574 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003308/0.3287, allocations: 2.103 MB / 483.7 MB, free: 7.457 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006343/0.3294, allocations: 136 kB / 483.8 MB, free: 7.324 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004819/0.3342, allocations: 1.541 MB / 485.4 MB, free: 5.781 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007411/0.335, allocations: 0.5971 MB / 486 MB, free: 5.18 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003137/0.3381, allocations: 2.624 MB / 488.6 MB, free: 2.539 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008854/0.347, allocations: 6.634 MB / 495.2 MB, free: 11.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.563e-06/0.3471, allocations: 0 / 495.2 MB, free: 11.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3471, allocations: 0 / 495.2 MB, free: 11.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 0.0001817/0.3473, allocations: 4 kB / 495.2 MB, free: 11.88 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.009314/0.3566, allocations: 6.674 MB / 0.4901 GB, free: 5.102 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.271e-05/0.3566, allocations: 8.031 kB / 0.4901 GB, free: 5.094 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009286/0.3576, allocations: 0.7448 MB / 0.4909 GB, free: 4.34 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006503/0.3641, allocations: 4.59 MB / 0.4953 GB, free: 15.66 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.491e-05/0.3642, allocations: 69.98 kB / 0.4954 GB, free: 15.59 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002271/0.3644, allocations: 95.91 kB / 0.4955 GB, free: 15.49 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002182/0.3666, allocations: 1.309 MB / 0.4968 GB, free: 14.17 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.3666, allocations: 0 / 0.4968 GB, free: 14.17 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001144/0.3668, allocations: 36 kB / 0.4968 GB, free: 14.13 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.454e-05/0.3668, allocations: 39.97 kB / 0.4969 GB, free: 14.09 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002362/0.3692, allocations: 1.48 MB / 0.4983 GB, free: 12.61 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009134/0.3783, allocations: 5.62 MB / 0.5038 GB, free: 6.902 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001631/0.38, allocations: 0.9929 MB / 0.5048 GB, free: 5.898 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001533/0.3815, allocations: 1.216 MB / 0.5059 GB, free: 4.688 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2328/0.6144, allocations: 61.05 MB / 0.5656 GB, free: 103.2 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009032/0.6153, allocations: 0.5547 MB / 0.5661 GB, free: 102.9 MB / 462.1 MB Notification: Performance of pre-optimization done (n=85): time 3.075e-06/0.6153, allocations: 0 / 0.5661 GB, free: 102.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=85): time 0.00304/0.6184, allocations: 1.877 MB / 0.5679 GB, free: 102.4 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.6184, allocations: 64.58 kB / 0.568 GB, free: 102.4 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005271/0.6237, allocations: 5.592 MB / 0.5735 GB, free: 97.91 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001418/0.6239, allocations: 37.7 kB / 0.5735 GB, free: 97.87 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001671/0.6256, allocations: 2.945 MB / 0.5764 GB, free: 94.94 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002393/0.6258, allocations: 298.1 kB / 0.5767 GB, free: 94.65 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003891/0.6262, allocations: 422.5 kB / 0.5771 GB, free: 94.23 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.915e-05/0.6262, allocations: 301.1 kB / 0.5774 GB, free: 93.93 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007199/0.627, allocations: 406.8 kB / 0.5777 GB, free: 93.54 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008818/0.6279, allocations: 1.091 MB / 0.5788 GB, free: 92.14 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001706/0.6296, allocations: 1.605 MB / 0.5804 GB, free: 90.27 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.347e-06/0.6296, allocations: 8 kB / 0.5804 GB, free: 90.26 MB / 462.1 MB Notification: Performance of matching and sorting (n=200) (initialization): time 0.003199/0.6328, allocations: 2.212 MB / 0.5825 GB, free: 88.06 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.748e-05/0.6329, allocations: 19.94 kB / 0.5826 GB, free: 88.04 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001705/0.633, allocations: 160 kB / 0.5827 GB, free: 87.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.578e-05/0.6331, allocations: 36 kB / 0.5827 GB, free: 87.85 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001039/0.6341, allocations: 359.3 kB / 0.5831 GB, free: 87.5 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.821e-05/0.6342, allocations: 47.8 kB / 0.5831 GB, free: 87.46 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001825/0.636, allocations: 189 kB / 0.5833 GB, free: 87.28 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001682/0.6362, allocations: 128 kB / 0.5834 GB, free: 87.15 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.001231/0.6374, allocations: 0.712 MB / 0.5841 GB, free: 86.43 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000799/0.6382, allocations: 0.7151 MB / 0.5848 GB, free: 85.71 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00385/0.6421, allocations: 2.148 MB / 0.5869 GB, free: 83.64 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/0.6421, allocations: 11.98 kB / 0.5869 GB, free: 83.62 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.6421, allocations: 0 / 0.5869 GB, free: 83.62 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.6421, allocations: 7.5 kB / 0.5869 GB, free: 83.62 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004924/0.6471, allocations: 3.601 MB / 0.5905 GB, free: 79.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001551/0.6473, allocations: 140 kB / 0.5906 GB, free: 79.83 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007201/0.648, allocations: 155.8 kB / 0.5907 GB, free: 79.68 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.648, allocations: 4 kB / 0.5908 GB, free: 79.67 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.938e-05/0.6481, allocations: 60 kB / 0.5908 GB, free: 79.61 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.6481, allocations: 7.938 kB / 0.5908 GB, free: 79.61 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.6481, allocations: 5.375 kB / 0.5908 GB, free: 79.6 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003044/0.6512, allocations: 2.157 MB / 0.5929 GB, free: 77.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001233/0.6524, allocations: 0.8201 MB / 0.5937 GB, free: 76.56 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005903/0.653, allocations: 16 kB / 0.5937 GB, free: 76.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001112/0.6541, allocations: 31.95 kB / 0.5938 GB, free: 76.52 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002025/0.6543, allocations: 100.5 kB / 0.5939 GB, free: 76.42 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001068/0.6545, allocations: 68 kB / 0.5939 GB, free: 76.35 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.004528/0.659, allocations: 3.608 MB / 0.5975 GB, free: 72.77 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.51e-07/0.659, allocations: 0 / 0.5975 GB, free: 72.77 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.002445/0.6615, allocations: 1.076 MB / 0.5985 GB, free: 71.74 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.001451/0.6629, allocations: 1.178 MB / 0.5997 GB, free: 70.6 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002059/0.665, allocations: 1.431 MB / 0.6011 GB, free: 69.13 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 4.479e-06/0.665, allocations: 4 kB / 0.6011 GB, free: 69.12 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009118/0.6659, allocations: 0.7785 MB / 0.6018 GB, free: 68.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005003/0.671, allocations: 1.203 MB / 0.603 GB, free: 67.1 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00997/0.681, allocations: 8.185 MB / 0.611 GB, free: 58.88 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001281/0.6823, allocations: 2.592 MB / 0.6135 GB, free: 56.26 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000623/0.6829, allocations: 291.4 kB / 0.6138 GB, free: 55.97 MB / 462.1 MB Notification: Performance of SimCode: time 1.623e-06/0.6829, allocations: 0 / 0.6138 GB, free: 55.97 MB / 462.1 MB Notification: Performance of Templates: time 0.08159/0.7645, allocations: 70.75 MB / 0.6829 GB, free: 1.293 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