Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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",fileNamePrefix="ModelicaTest_3.2.3_cpp_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",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001482/0.001482, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.086/2.086, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 99.81 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2998/0.2998, allocations: 43.49 MB / 353.6 MB, free: 2.258 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.245e-05/2.271e-05, allocations: 4.219 kB / 418.2 MB, free: 41.06 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4323/0.4323, allocations: 58.85 MB / 477.1 MB, free: 5.266 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1854/0.6178, allocations: 88.85 MB / 0.5527 GB, free: 10.44 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003617/0.6182, allocations: 71.95 kB / 0.5527 GB, free: 10.37 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04003/0.6583, allocations: 6.05 MB / 0.5586 GB, free: 4.32 MB / 395.1 MB Notification: Performance of FrontEnd: time 2.515e-06/0.6584, allocations: 0 / 0.5586 GB, free: 4.32 MB / 395.1 MB Notification: Performance of Transformations before backend: time 4.241e-05/0.6584, allocations: 8 kB / 0.5586 GB, free: 4.312 MB / 395.1 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.001603/0.66, allocations: 0.5184 MB / 0.5592 GB, free: 3.75 MB / 395.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.158e-05/0.6601, allocations: 8.031 kB / 0.5592 GB, free: 3.742 MB / 395.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004722/0.6606, allocations: 47.61 kB / 0.5592 GB, free: 3.695 MB / 395.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006547/0.6613, allocations: 262.4 kB / 0.5595 GB, free: 3.398 MB / 395.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.544e-05/0.6614, allocations: 16 kB / 0.5595 GB, free: 3.383 MB / 395.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001622/0.6616, allocations: 16 kB / 0.5595 GB, free: 3.367 MB / 395.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007141/0.6623, allocations: 149.5 kB / 0.5596 GB, free: 3.223 MB / 395.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009144/0.6633, allocations: 250.8 kB / 0.5599 GB, free: 2.949 MB / 395.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.899e-05/0.6634, allocations: 15.83 kB / 0.5599 GB, free: 2.934 MB / 395.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.355e-05/0.6634, allocations: 0 / 0.5599 GB, free: 2.934 MB / 395.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.073e-05/0.6635, allocations: 15.94 kB / 0.5599 GB, free: 2.918 MB / 395.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004138/0.6676, allocations: 1.275 MB / 0.5611 GB, free: 1.551 MB / 395.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008467/0.6685, allocations: 229.4 kB / 0.5614 GB, free: 1.281 MB / 395.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002236/0.6688, allocations: 72.3 kB / 0.5614 GB, free: 1.195 MB / 395.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.335e-05/0.6689, allocations: 160 / 0.5614 GB, free: 1.195 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.411e-05/0.6689, allocations: 42.69 kB / 0.5615 GB, free: 1.145 MB / 395.1 MB Notification: Performance of pre-optimization done (n=22): time 3.757e-06/0.6689, allocations: 0 / 0.5615 GB, free: 1.145 MB / 395.1 MB Notification: Performance of matching and sorting (n=22): time 0.0008584/0.6698, allocations: 153.4 kB / 0.5616 GB, free: 0.9883 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.67, allocations: 162.2 kB / 0.5618 GB, free: 0.793 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000357/0.6704, allocations: 174 kB / 0.5619 GB, free: 0.6172 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 4.848e-05/0.6704, allocations: 25.7 kB / 0.562 GB, free: 0.5859 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002293/0.6707, allocations: 250.2 kB / 0.5622 GB, free: 348 kB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.6708, allocations: 90.66 kB / 0.5623 GB, free: 256 kB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-05/0.6709, allocations: 0 / 0.5623 GB, free: 256 kB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0002209/0.6711, allocations: 322.8 kB / 0.5626 GB, free: 15.93 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002499/0.6714, allocations: 59.89 kB / 0.5627 GB, free: 15.87 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004142/0.6718, allocations: 194.6 kB / 0.5628 GB, free: 15.61 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003874/0.6722, allocations: 87.89 kB / 0.5629 GB, free: 15.53 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.436e-06/0.6723, allocations: 0 / 0.5629 GB, free: 15.53 MB / 411.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.00106/0.6733, allocations: 257.2 kB / 0.5632 GB, free: 15.27 MB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.168e-05/0.6734, allocations: 11.98 kB / 0.5632 GB, free: 15.26 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.846e-05/0.6735, allocations: 4 kB / 0.5632 GB, free: 15.25 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.659e-05/0.6735, allocations: 8 kB / 0.5632 GB, free: 15.25 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000812/0.6743, allocations: 83.84 kB / 0.5633 GB, free: 15.16 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.652e-05/0.6744, allocations: 8 kB / 0.5633 GB, free: 15.16 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005062/0.6749, allocations: 40.12 kB / 0.5633 GB, free: 15.12 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.332e-05/0.675, allocations: 20 kB / 0.5633 GB, free: 15.1 MB / 411.1 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 0.0001919/0.6752, allocations: 120.8 kB / 0.5635 GB, free: 14.97 MB / 411.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002473/0.6755, allocations: 23.81 kB / 0.5635 GB, free: 14.95 MB / 411.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003838/0.6759, allocations: 71.52 kB / 0.5635 GB, free: 14.88 MB / 411.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.27e-05/0.6759, allocations: 4.094 kB / 0.5635 GB, free: 14.87 MB / 411.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.419e-05/0.6759, allocations: 11.88 kB / 0.5636 GB, free: 14.86 MB / 411.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.092e-05/0.676, allocations: 0 / 0.5636 GB, free: 14.86 MB / 411.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001334/0.6773, allocations: 269.9 kB / 0.5638 GB, free: 14.56 MB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.044e-06/0.6774, allocations: 4 kB / 0.5638 GB, free: 14.55 MB / 411.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009745/0.6784, allocations: 59.97 kB / 0.5639 GB, free: 14.5 MB / 411.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.769e-05/0.6784, allocations: 4 kB / 0.5639 GB, free: 14.49 MB / 411.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.825e-05/0.6785, allocations: 11.98 kB / 0.5639 GB, free: 14.48 MB / 411.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.803e-06/0.6785, allocations: 0 / 0.5639 GB, free: 14.48 MB / 411.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.203e-05/0.6786, allocations: 7.938 kB / 0.5639 GB, free: 14.47 MB / 411.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.6797, allocations: 0.6517 MB / 0.5645 GB, free: 13.77 MB / 411.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001749/0.68, allocations: 108.8 kB / 0.5646 GB, free: 13.65 MB / 411.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.248e-05/0.6801, allocations: 7.953 kB / 0.5646 GB, free: 13.64 MB / 411.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006723/0.6808, allocations: 0 / 0.5646 GB, free: 13.64 MB / 411.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.429e-05/0.6809, allocations: 19.92 kB / 0.5647 GB, free: 13.62 MB / 411.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.202e-05/0.6809, allocations: 15.98 kB / 0.5647 GB, free: 13.61 MB / 411.1 MB Notification: Performance of sorting global known variables: time 0.0003086/0.6812, allocations: 125.4 kB / 0.5648 GB, free: 13.48 MB / 411.1 MB Notification: Performance of sort global known variables: time 5.11e-07/0.6813, allocations: 0 / 0.5648 GB, free: 13.48 MB / 411.1 MB Notification: Performance of remove unused functions: time 0.001354/0.6826, allocations: 67.84 kB / 0.5649 GB, free: 13.42 MB / 411.1 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.0002404/0.6829, allocations: 102 kB / 0.565 GB, free: 13.31 MB / 411.1 MB Notification: Performance of simCode: created initialization part: time 0.0007022/0.6836, allocations: 172.3 kB / 0.5651 GB, free: 13.14 MB / 411.1 MB Notification: Performance of simCode: created event and clocks part: time 7.875e-06/0.6837, allocations: 4 kB / 0.5651 GB, free: 13.14 MB / 411.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000232/0.6839, allocations: 60.17 kB / 0.5652 GB, free: 13.08 MB / 411.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.6852, allocations: 48.03 kB / 0.5652 GB, free: 13.04 MB / 411.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003736/0.689, allocations: 1.04 MB / 0.5663 GB, free: 11.95 MB / 411.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007155/0.6898, allocations: 0.7797 MB / 0.567 GB, free: 11.14 MB / 411.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.69, allocations: 23.44 kB / 0.567 GB, free: 11.12 MB / 411.1 MB Notification: Performance of SimCode: time 1.673e-06/0.6901, allocations: 0 / 0.567 GB, free: 11.12 MB / 411.1 MB Notification: Performance of Templates: time 0.01192/0.702, allocations: 3.229 MB / 0.5702 GB, free: 7.891 MB / 411.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestBraking/TestBraking.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestBraking.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches