Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/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_4.0.0_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_4.0.0_ModelicaTest.Rotational.TestSpeed") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001389/0.00139, allocations: 183 kB / 18.09 MB, free: 3.633 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.342/1.342, allocations: 223.3 MB / 242.1 MB, free: 11.68 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008713/0.0008714, allocations: 107.7 kB / 293.3 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3609/0.3609, allocations: 44.15 MB / 388.5 MB, free: 38.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003924/0.0003924, allocations: 15.98 kB / 461.1 MB, free: 1.297 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.3578, allocations: 61.88 MB / 0.5107 GB, free: 38.37 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1024/0.4602, allocations: 88.78 MB / 0.5974 GB, free: 6.285 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001928/0.4605, allocations: 71.94 kB / 0.5975 GB, free: 6.219 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0139/0.4744, allocations: 4.935 MB / 0.6023 GB, free: 1.27 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.844e-06/0.4744, allocations: 0 / 0.6023 GB, free: 1.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.946e-05/0.4745, allocations: 8 kB / 0.6023 GB, free: 1.262 MB / 410.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.0008037/0.4753, allocations: 0.5504 MB / 0.6028 GB, free: 0.6562 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.508e-05/0.4753, allocations: 12.03 kB / 0.6029 GB, free: 0.6445 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.846e-05/0.4754, allocations: 36.5 kB / 0.6029 GB, free: 0.6094 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002889/0.4757, allocations: 263.4 kB / 0.6031 GB, free: 324 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.019e-05/0.4757, allocations: 20.94 kB / 0.6032 GB, free: 304 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.101e-05/0.4758, allocations: 28.36 kB / 0.6032 GB, free: 276 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004812/0.4763, allocations: 286.5 kB / 0.6035 GB, free: 15.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.634e-05/0.4763, allocations: 12.09 kB / 0.6035 GB, free: 15.95 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.484e-05/0.4763, allocations: 7.938 kB / 0.6035 GB, free: 15.94 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.467e-06/0.4763, allocations: 8 kB / 0.6035 GB, free: 15.93 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004095/0.4768, allocations: 199.8 kB / 0.6037 GB, free: 15.74 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001719/0.4785, allocations: 1.312 MB / 0.605 GB, free: 14.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004052/0.4789, allocations: 250.4 kB / 0.6052 GB, free: 14.04 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001983/0.4791, allocations: 111.8 kB / 0.6053 GB, free: 13.92 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.451e-05/0.4792, allocations: 11.97 kB / 0.6053 GB, free: 13.91 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.612e-05/0.4792, allocations: 42.56 kB / 0.6054 GB, free: 13.86 MB / 426.7 MB Notification: Performance of pre-optimization done (n=26): time 2.064e-06/0.4792, allocations: 0 / 0.6054 GB, free: 13.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=32): time 0.002482/0.4817, allocations: 1.62 MB / 0.6069 GB, free: 12.03 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.292e-05/0.4818, allocations: 140.4 kB / 0.6071 GB, free: 11.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002348/0.4821, allocations: 225 kB / 0.6073 GB, free: 11.64 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.753e-05/0.4821, allocations: 29.7 kB / 0.6073 GB, free: 11.61 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.4822, allocations: 180.5 kB / 0.6075 GB, free: 11.43 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.809e-05/0.4823, allocations: 110.3 kB / 0.6076 GB, free: 11.32 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.384e-05/0.4823, allocations: 15.94 kB / 0.6076 GB, free: 11.3 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.4825, allocations: 330.8 kB / 0.6079 GB, free: 10.97 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002481/0.4827, allocations: 116.8 kB / 0.608 GB, free: 10.85 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003165/0.483, allocations: 245.5 kB / 0.6083 GB, free: 10.55 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006052/0.4837, allocations: 384.8 kB / 0.6086 GB, free: 10.11 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.4837, allocations: 0 / 0.6086 GB, free: 10.11 MB / 426.7 MB Notification: Performance of matching and sorting (n=48) (initialization): time 0.0007446/0.4844, allocations: 429.1 kB / 0.609 GB, free: 9.688 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.4845, allocations: 8 kB / 0.6091 GB, free: 9.68 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.724e-06/0.4845, allocations: 4 kB / 0.6091 GB, free: 9.676 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.4845, allocations: 4.375 kB / 0.6091 GB, free: 9.672 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003582/0.4849, allocations: 115.8 kB / 0.6092 GB, free: 9.559 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.4849, allocations: 4 kB / 0.6092 GB, free: 9.555 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002057/0.4851, allocations: 39.91 kB / 0.6092 GB, free: 9.516 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.431e-05/0.4851, allocations: 16 kB / 0.6092 GB, free: 9.5 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.0001439/0.4853, allocations: 150.2 kB / 0.6094 GB, free: 9.344 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.985e-05/0.4854, allocations: 39.56 kB / 0.6094 GB, free: 9.305 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.434e-05/0.4854, allocations: 29.7 kB / 0.6094 GB, free: 9.277 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.4855, allocations: 4 kB / 0.6094 GB, free: 9.273 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.304e-06/0.4855, allocations: 4 kB / 0.6094 GB, free: 9.27 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.879e-06/0.4855, allocations: 0 / 0.6094 GB, free: 9.27 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001562/0.487, allocations: 1.021 MB / 0.6104 GB, free: 8.184 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.631e-06/0.4871, allocations: 0 / 0.6104 GB, free: 8.184 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004245/0.4875, allocations: 83.89 kB / 0.6105 GB, free: 8.102 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.175e-06/0.4875, allocations: 4 kB / 0.6105 GB, free: 8.098 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.58e-05/0.4876, allocations: 11.98 kB / 0.6105 GB, free: 8.086 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.4876, allocations: 3.938 kB / 0.6105 GB, free: 8.082 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.4876, allocations: 4 kB / 0.6105 GB, free: 8.078 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001279/0.4889, allocations: 0.7647 MB / 0.6113 GB, free: 7.289 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.489, allocations: 96.83 kB / 0.6114 GB, free: 7.176 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.804e-05/0.4891, allocations: 8.062 kB / 0.6114 GB, free: 7.168 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003258/0.4894, allocations: 36.17 kB / 0.6114 GB, free: 7.133 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.953e-05/0.4895, allocations: 27.95 kB / 0.6115 GB, free: 7.105 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.791e-05/0.4895, allocations: 4 kB / 0.6115 GB, free: 7.102 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001782/0.4897, allocations: 160.5 kB / 0.6116 GB, free: 6.945 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4897, allocations: 0 / 0.6116 GB, free: 6.945 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.000635/0.4904, allocations: 68 kB / 0.6117 GB, free: 6.879 MB / 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.0002028/0.4906, allocations: 110.9 kB / 0.6118 GB, free: 6.762 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0008225/0.4914, allocations: 304.9 kB / 0.6121 GB, free: 6.465 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/0.4914, allocations: 0 / 0.6121 GB, free: 6.465 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003414/0.4918, allocations: 144.1 kB / 0.6122 GB, free: 6.324 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008954/0.4927, allocations: 37.17 kB / 0.6122 GB, free: 6.285 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.4947, allocations: 1.074 MB / 0.6133 GB, free: 5.164 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005919/0.4953, allocations: 0.7722 MB / 0.6141 GB, free: 4.359 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001982/0.4955, allocations: 34.95 kB / 0.6141 GB, free: 4.328 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.136e-05/0.4956, allocations: 23.44 kB / 0.6141 GB, free: 4.309 MB / 426.7 MB Notification: Performance of SimCode: time 8.82e-07/0.4956, allocations: 0 / 0.6141 GB, free: 4.309 MB / 426.7 MB Notification: Performance of Templates: time 0.005632/0.5012, allocations: 2.131 MB / 0.6162 GB, free: 2.195 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestSpeed.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_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_4.0.0_ModelicaTest.Rotational.TestSpeed.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches