Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.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.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") translateModel(ModelicaTest.Rotational.TestBraking,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia3.phi|inertia3.w|inertia4.phi|inertia4.w|inertia5.phi|inertia5.w",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 179.5 kB / 14.15 MB, free: 1.176 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.226/1.226, allocations: 221.4 MB / 236 MB, free: 2.941 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008982/0.0008984, allocations: 95.8 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1755/0.1755, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.67e-05/3.673e-05, allocations: 4.219 kB / 451.8 MB, free: 9.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.111, allocations: 61.91 MB / 0.5017 GB, free: 11.48 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3318/0.4428, allocations: 90.48 MB / 0.5901 GB, free: 14.86 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001862/0.443, allocations: 67.97 kB / 0.5901 GB, free: 14.8 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01605/0.4591, allocations: 6.209 MB / 0.5962 GB, free: 8.594 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.4591, allocations: 0 / 0.5962 GB, free: 8.594 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.989e-05/0.4591, allocations: 8 kB / 0.5962 GB, free: 8.586 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0006584/0.4598, allocations: 0.5182 MB / 0.5967 GB, free: 8.023 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.415e-05/0.4599, allocations: 8.031 kB / 0.5967 GB, free: 8.016 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001865/0.4601, allocations: 47.61 kB / 0.5967 GB, free: 7.969 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002657/0.4603, allocations: 266.4 kB / 0.597 GB, free: 7.668 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.151e-05/0.4604, allocations: 20.78 kB / 0.597 GB, free: 7.648 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.111e-05/0.4604, allocations: 39.95 kB / 0.5971 GB, free: 7.609 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004292/0.4609, allocations: 284.4 kB / 0.5973 GB, free: 7.309 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.251e-05/0.4609, allocations: 7.906 kB / 0.5973 GB, free: 7.301 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.559e-05/0.4609, allocations: 12 kB / 0.5973 GB, free: 7.289 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.778e-06/0.4609, allocations: 8 kB / 0.5974 GB, free: 7.281 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002845/0.4612, allocations: 177.8 kB / 0.5975 GB, free: 7.109 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001708/0.4629, allocations: 1.341 MB / 0.5988 GB, free: 5.664 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003636/0.4633, allocations: 237.3 kB / 0.5991 GB, free: 5.387 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.94e-05/0.4634, allocations: 80.33 kB / 0.5991 GB, free: 5.293 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.4635, allocations: 7.938 kB / 0.5991 GB, free: 5.285 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.4635, allocations: 38.56 kB / 0.5992 GB, free: 5.238 MB / 410.7 MB Notification: Performance of pre-optimization done (n=22): time 1.453e-06/0.4635, allocations: 0 / 0.5992 GB, free: 5.238 MB / 410.7 MB Notification: Performance of matching and sorting (n=22): time 0.0003606/0.4639, allocations: 173.4 kB / 0.5993 GB, free: 5.062 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.602e-05/0.4639, allocations: 158.2 kB / 0.5995 GB, free: 4.871 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001666/0.4641, allocations: 187.1 kB / 0.5997 GB, free: 4.672 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.897e-05/0.4641, allocations: 29.7 kB / 0.5997 GB, free: 4.637 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.67e-05/0.4642, allocations: 183.8 kB / 0.5999 GB, free: 4.453 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.052e-05/0.4643, allocations: 94.7 kB / 0.6 GB, free: 4.359 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.069e-05/0.4643, allocations: 4 kB / 0.6 GB, free: 4.355 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.4644, allocations: 342.8 kB / 0.6003 GB, free: 4.012 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.899e-05/0.4646, allocations: 56.22 kB / 0.6004 GB, free: 3.957 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001763/0.4647, allocations: 210.5 kB / 0.6006 GB, free: 3.688 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001464/0.4649, allocations: 95.78 kB / 0.6006 GB, free: 3.594 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.997e-06/0.4649, allocations: 4 kB / 0.6007 GB, free: 3.59 MB / 410.7 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0004126/0.4653, allocations: 308.8 kB / 0.6009 GB, free: 3.281 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.4653, allocations: 9.094 kB / 0.601 GB, free: 3.273 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.494e-06/0.4654, allocations: 4 kB / 0.601 GB, free: 3.27 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.745e-05/0.4654, allocations: 8 kB / 0.601 GB, free: 3.262 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002639/0.4656, allocations: 88.61 kB / 0.6011 GB, free: 3.176 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.4657, allocations: 15.94 kB / 0.6011 GB, free: 3.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001674/0.4658, allocations: 39.67 kB / 0.6011 GB, free: 3.121 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.283e-05/0.4659, allocations: 16 kB / 0.6011 GB, free: 3.105 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 44 * 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 8.222e-05/0.466, allocations: 124.8 kB / 0.6012 GB, free: 2.977 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001046/0.4661, allocations: 23.86 kB / 0.6013 GB, free: 2.953 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001692/0.4663, allocations: 95.12 kB / 0.6014 GB, free: 2.852 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.4663, allocations: 4 kB / 0.6014 GB, free: 2.848 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.4663, allocations: 0 / 0.6014 GB, free: 2.848 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.549e-06/0.4663, allocations: 4 kB / 0.6014 GB, free: 2.844 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005223/0.4668, allocations: 317.3 kB / 0.6017 GB, free: 2.484 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.4668, allocations: 4 kB / 0.6017 GB, free: 2.48 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003065/0.4671, allocations: 67.91 kB / 0.6017 GB, free: 2.414 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.4672, allocations: 0 / 0.6017 GB, free: 2.414 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.994e-05/0.4672, allocations: 8 kB / 0.6017 GB, free: 2.406 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.4672, allocations: 4 kB / 0.6017 GB, free: 2.402 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4672, allocations: 0 / 0.6017 GB, free: 2.402 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004899/0.4677, allocations: 0.6823 MB / 0.6024 GB, free: 1.676 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.334e-05/0.4678, allocations: 92.86 kB / 0.6025 GB, free: 1.566 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.159e-05/0.4678, allocations: 8 kB / 0.6025 GB, free: 1.559 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002332/0.468, allocations: 23.84 kB / 0.6025 GB, free: 1.535 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.599e-05/0.4681, allocations: 11.98 kB / 0.6025 GB, free: 1.523 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.635e-05/0.4681, allocations: 8 kB / 0.6025 GB, free: 1.516 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.000104/0.4682, allocations: 141.9 kB / 0.6027 GB, free: 1.379 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.413e-06/0.4682, allocations: 4.109 kB / 0.6027 GB, free: 1.375 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000443/0.4687, allocations: 79.88 kB / 0.6028 GB, free: 1.297 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 11 (inertia1.w,linearSpeedDependentTorque.phi,inertia2.w,quadraticSpeedDependentTorque.phi,inertia3.w,constantTorque.phi,inertia4.w,signTorque.phi,eddyCurrentTorque.phi,inertia5.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 23 * 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.0001213/0.4688, allocations: 115.6 kB / 0.6029 GB, free: 1.172 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0002864/0.4691, allocations: 183.6 kB / 0.603 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.4691, allocations: 0 / 0.603 GB, free: 0.9922 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 9.315e-05/0.4692, allocations: 76.98 kB / 0.6031 GB, free: 0.918 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005/0.4697, allocations: 51.27 kB / 0.6032 GB, free: 0.8672 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001469/0.4712, allocations: 1.018 MB / 0.6042 GB, free: 15.82 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003188/0.4715, allocations: 0.7836 MB / 0.6049 GB, free: 15.02 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0001232/0.4716, allocations: 26.97 kB / 0.605 GB, free: 14.99 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.115e-05/0.4717, allocations: 23.44 kB / 0.605 GB, free: 14.96 MB / 426.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4717, allocations: 0 / 0.605 GB, free: 14.96 MB / 426.7 MB Notification: Performance of Templates: time 0.004862/0.4766, allocations: 2.292 MB / 0.6072 GB, free: 12.71 MB / 426.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches