Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) 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(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed") translateModel(ModelicaTest.Rotational.TestSpeed,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|speed1.phi|speed1.w|speed2.phi|speed3.s|speed3.v|speed4.s",fileNamePrefix="ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001303/0.001303, allocations: 200.7 kB / 18.1 MB, free: 3.719 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.422/1.422, allocations: 226.5 MB / 245.4 MB, free: 8.199 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000743/0.0007426, allocations: 99.34 kB / 297.5 MB, free: 6.859 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3174/0.3174, allocations: 44.82 MB / 394.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003003/0.0003004, allocations: 4 kB / 467.9 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4019/0.4022, allocations: 62.96 MB / 0.5184 GB, free: 37.36 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.117/0.5193, allocations: 89.7 MB / 0.606 GB, free: 15.57 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.5196, allocations: 67.95 kB / 0.6061 GB, free: 15.51 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01417/0.5337, allocations: 5.006 MB / 0.611 GB, free: 10.48 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.835e-06/0.5338, allocations: 4 kB / 0.611 GB, free: 10.48 MB / 426.7 MB Notification: Performance of Transformations before backend: time 1.997e-05/0.5338, allocations: 4 kB / 0.611 GB, free: 10.47 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008033/0.5346, allocations: 0.5536 MB / 0.6115 GB, free: 9.867 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.5347, allocations: 8.875 kB / 0.6115 GB, free: 9.859 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002222/0.5349, allocations: 52.55 kB / 0.6116 GB, free: 9.809 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002962/0.5352, allocations: 268.6 kB / 0.6118 GB, free: 9.508 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.609e-05/0.5352, allocations: 24.92 kB / 0.6118 GB, free: 9.484 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.789e-05/0.5353, allocations: 24.38 kB / 0.6119 GB, free: 9.461 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004609/0.5358, allocations: 290.4 kB / 0.6121 GB, free: 9.152 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.577e-05/0.5358, allocations: 12.08 kB / 0.6122 GB, free: 9.141 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.522e-05/0.5358, allocations: 11.94 kB / 0.6122 GB, free: 9.129 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.807e-06/0.5358, allocations: 8 kB / 0.6122 GB, free: 9.121 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004118/0.5363, allocations: 191.8 kB / 0.6124 GB, free: 8.934 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001507/0.5378, allocations: 1.306 MB / 0.6136 GB, free: 7.523 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003908/0.5382, allocations: 250.4 kB / 0.6139 GB, free: 7.242 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002015/0.5384, allocations: 115.7 kB / 0.614 GB, free: 7.117 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.778e-05/0.5384, allocations: 4 kB / 0.614 GB, free: 7.113 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.588e-05/0.5385, allocations: 34.56 kB / 0.614 GB, free: 7.07 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 2.264e-06/0.5385, allocations: 0 / 0.614 GB, free: 7.07 MB / 426.7 MB Notification: Performance of matching and sorting (n=32): time 0.002452/0.541, allocations: 1.637 MB / 0.6156 GB, free: 5.227 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.852e-05/0.5411, allocations: 136.5 kB / 0.6157 GB, free: 5.062 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002022/0.5413, allocations: 221 kB / 0.616 GB, free: 4.832 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.365e-05/0.5413, allocations: 33.7 kB / 0.616 GB, free: 4.793 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.792e-05/0.5414, allocations: 172.2 kB / 0.6162 GB, free: 4.621 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.02e-05/0.5415, allocations: 126.3 kB / 0.6163 GB, free: 4.496 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.537e-05/0.5415, allocations: 8 kB / 0.6163 GB, free: 4.488 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001264/0.5417, allocations: 338.8 kB / 0.6166 GB, free: 4.148 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002468/0.5419, allocations: 104.8 kB / 0.6167 GB, free: 4.047 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003179/0.5422, allocations: 245.5 kB / 0.6169 GB, free: 3.75 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006168/0.5429, allocations: 390.7 kB / 0.6173 GB, free: 3.309 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.5429, allocations: 0 / 0.6173 GB, free: 3.309 MB / 426.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007184/0.5436, allocations: 425.1 kB / 0.6177 GB, free: 2.887 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.5436, allocations: 8 kB / 0.6177 GB, free: 2.879 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.5437, allocations: 4 kB / 0.6177 GB, free: 2.875 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.845e-05/0.5437, allocations: 12.05 kB / 0.6177 GB, free: 2.863 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000379/0.5441, allocations: 116.2 kB / 0.6178 GB, free: 2.75 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.293e-05/0.5441, allocations: 8 kB / 0.6179 GB, free: 2.742 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001958/0.5443, allocations: 27.98 kB / 0.6179 GB, free: 2.715 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.797e-05/0.5443, allocations: 19.98 kB / 0.6179 GB, free: 2.695 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0001896/0.5445, allocations: 165.6 kB / 0.6181 GB, free: 2.523 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001112/0.5446, allocations: 31.56 kB / 0.6181 GB, free: 2.492 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.428e-05/0.5447, allocations: 33.72 kB / 0.6181 GB, free: 2.457 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.5447, allocations: 7.984 kB / 0.6181 GB, free: 2.449 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.5447, allocations: 0 / 0.6181 GB, free: 2.449 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.111e-06/0.5448, allocations: 0 / 0.6181 GB, free: 2.449 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00143/0.5462, allocations: 1.005 MB / 0.6191 GB, free: 1.379 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.959e-06/0.5462, allocations: 4.062 kB / 0.6191 GB, free: 1.375 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003835/0.5466, allocations: 87.81 kB / 0.6192 GB, free: 1.289 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.802e-06/0.5466, allocations: 4 kB / 0.6192 GB, free: 1.285 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.484e-05/0.5466, allocations: 8 kB / 0.6192 GB, free: 1.277 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.285e-06/0.5467, allocations: 7.938 kB / 0.6192 GB, free: 1.27 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5467, allocations: 0 / 0.6192 GB, free: 1.27 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/0.5478, allocations: 0.7693 MB / 0.62 GB, free: 488 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.829e-05/0.5479, allocations: 96.83 kB / 0.6201 GB, free: 372 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.833e-05/0.5479, allocations: 12.05 kB / 0.6201 GB, free: 360 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002639/0.5482, allocations: 31.86 kB / 0.6201 GB, free: 328 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.268e-05/0.5483, allocations: 27.97 kB / 0.6201 GB, free: 300 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.873e-05/0.5483, allocations: 12 kB / 0.6201 GB, free: 288 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001513/0.5485, allocations: 152.5 kB / 0.6203 GB, free: 136 kB / 426.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5485, allocations: 0 / 0.6203 GB, free: 136 kB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004706/0.5489, allocations: 68 kB / 0.6204 GB, free: 68 kB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (speed4.s,speed3.s,speed3.v,speed1.phi,speed1.w,speed2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 Backend phase and start with SimCode phase: time 0.0002082/0.5492, allocations: 119.2 kB / 0.6205 GB, free: 15.94 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0006156/0.5498, allocations: 296.4 kB / 0.6207 GB, free: 15.65 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.5498, allocations: 0 / 0.6207 GB, free: 15.65 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00028/0.5501, allocations: 148.1 kB / 0.6209 GB, free: 15.51 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006508/0.5507, allocations: 36.42 kB / 0.6209 GB, free: 15.47 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.5522, allocations: 1.078 MB / 0.622 GB, free: 14.35 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.5525, allocations: 0.7683 MB / 0.6227 GB, free: 13.55 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0001479/0.5527, allocations: 38.94 kB / 0.6228 GB, free: 13.51 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.269e-05/0.5527, allocations: 27.44 kB / 0.6228 GB, free: 13.48 MB / 442.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5528, allocations: 0 / 0.6228 GB, free: 13.48 MB / 442.7 MB Notification: Performance of Templates: time 0.005034/0.5578, allocations: 2.134 MB / 0.6249 GB, free: 11.37 MB / 442.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestSpeed/TestSpeed.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches