Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.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.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction") translateModel(ModelicaTest.Rotational.TestFriction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia.phi|inertia.w|inertia1.phi|inertia1.w|inertia2.phi|inertia2.w|inertia5.phi|inertia5.w|oneWayClutch.phi_rel|oneWayClutch.w_rel|bearingFriction.mode|bearingFriction.startBackward|bearingFriction.startForward|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward|oneWayClutch.startForward|oneWayClutch.stuck",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001113/0.001113, allocations: 183 kB / 13.19 MB, free: 2.129 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.517/1.517, allocations: 205.2 MB / 218.9 MB, free: 9.137 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009543/0.0009543, allocations: 89.31 kB / 267.1 MB, free: 9.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3737/0.3737, allocations: 43.47 MB / 358.6 MB, free: 51.58 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 2.572e-05/2.582e-05, allocations: 4 kB / 425.3 MB, free: 8.215 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1101, allocations: 58.84 MB / 484.1 MB, free: 13.27 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.376/0.4862, allocations: 91.45 MB / 0.5621 GB, free: 13.68 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002245/0.4865, allocations: 62.73 kB / 0.5622 GB, free: 13.65 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02924/0.5157, allocations: 11.94 MB / 0.5738 GB, free: 4.023 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.294e-06/0.5158, allocations: 3.984 kB / 0.5738 GB, free: 4.02 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.555e-05/0.5158, allocations: 16 kB / 0.5738 GB, free: 4.004 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.001534/0.5173, allocations: 0.9322 MB / 0.5748 GB, free: 3.066 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.5174, allocations: 12.03 kB / 0.5748 GB, free: 3.055 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001206/0.5175, allocations: 75.06 kB / 0.5748 GB, free: 2.98 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004412/0.518, allocations: 405 kB / 0.5752 GB, free: 2.59 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.451e-05/0.518, allocations: 46.06 kB / 0.5753 GB, free: 2.566 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001029/0.5181, allocations: 65.84 kB / 0.5753 GB, free: 2.523 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009588/0.5191, allocations: 0.7428 MB / 0.5761 GB, free: 1.973 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.815e-05/0.5191, allocations: 11.89 kB / 0.5761 GB, free: 1.961 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.622e-05/0.5192, allocations: 23.81 kB / 0.5761 GB, free: 1.957 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.252e-05/0.5192, allocations: 19.95 kB / 0.5761 GB, free: 1.938 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000851/0.5201, allocations: 0.6232 MB / 0.5767 GB, free: 1.508 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003436/0.5235, allocations: 2.574 MB / 0.5792 GB, free: 15.21 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009124/0.5244, allocations: 0.5744 MB / 0.5798 GB, free: 14.78 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004634/0.5249, allocations: 334.9 kB / 0.5801 GB, free: 14.57 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.016e-05/0.525, allocations: 15.31 kB / 0.5801 GB, free: 14.56 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.703e-05/0.525, allocations: 39.75 kB / 0.5802 GB, free: 14.52 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 2.175e-06/0.5251, allocations: 0 / 0.5802 GB, free: 14.52 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.003841/0.5289, allocations: 2.416 MB / 0.5825 GB, free: 12.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.237e-05/0.529, allocations: 136.5 kB / 0.5827 GB, free: 12.14 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003362/0.5293, allocations: 324.8 kB / 0.583 GB, free: 11.87 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.966e-05/0.5294, allocations: 51.94 kB / 0.583 GB, free: 11.82 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.5296, allocations: 256.6 kB / 0.5833 GB, free: 11.62 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002057/0.5298, allocations: 293.7 kB / 0.5835 GB, free: 11.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.851e-05/0.5298, allocations: 17.31 kB / 0.5836 GB, free: 11.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001287/0.53, allocations: 365.9 kB / 0.5839 GB, free: 11.03 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004802/0.5305, allocations: 311 kB / 0.5842 GB, free: 10.85 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006304/0.5311, allocations: 472.9 kB / 0.5846 GB, free: 10.47 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004586/0.5316, allocations: 269.6 kB / 0.5849 GB, free: 10.29 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.5316, allocations: 0 / 0.5849 GB, free: 10.29 MB / 410.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002165/0.5338, allocations: 1.12 MB / 0.586 GB, free: 9.453 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.648e-05/0.5338, allocations: 9.406 kB / 0.586 GB, free: 9.445 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.339e-05/0.5338, allocations: 8 kB / 0.586 GB, free: 9.438 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001072/0.5349, allocations: 0.5826 MB / 0.5866 GB, free: 8.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005271/0.5354, allocations: 155 kB / 0.5867 GB, free: 8.832 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002151/0.5376, allocations: 2.569 MB / 0.5892 GB, free: 6.367 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000867/0.5385, allocations: 195.1 kB / 0.5894 GB, free: 6.191 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.804e-05/0.5386, allocations: 42.36 kB / 0.5895 GB, free: 6.156 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.bearingFriction.startForward,bearingFriction.startForward,$PRE.bearingFriction.startBackward,bearingFriction.startBackward,bearingFriction.locked,$PRE.bearingFriction.mode,bearingFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,bearingFriction.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (91): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 6,1 7,1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002388/0.5388, allocations: 166 kB / 0.5896 GB, free: 6.016 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001814/0.539, allocations: 67.2 kB / 0.5897 GB, free: 5.949 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002087/0.5411, allocations: 1.028 MB / 0.5907 GB, free: 5.195 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.098e-05/0.5411, allocations: 8 kB / 0.5907 GB, free: 5.188 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.5412, allocations: 0 / 0.5907 GB, free: 5.188 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.157e-05/0.5412, allocations: 11.94 kB / 0.5907 GB, free: 5.176 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003396/0.5446, allocations: 2.022 MB / 0.5927 GB, free: 3.531 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.352e-06/0.5446, allocations: 4.062 kB / 0.5927 GB, free: 3.527 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005512/0.5452, allocations: 123.8 kB / 0.5928 GB, free: 3.41 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009592/0.5461, allocations: 0.5583 MB / 0.5934 GB, free: 2.965 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.055e-05/0.5462, allocations: 34.58 kB / 0.5934 GB, free: 2.945 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001938/0.5482, allocations: 2.523 MB / 0.5959 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.5482, allocations: 4.031 kB / 0.5959 GB, free: 0.4922 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002382/0.5506, allocations: 1.644 MB / 0.5975 GB, free: 15.17 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003274/0.5509, allocations: 211.7 kB / 0.5977 GB, free: 14.98 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001161/0.551, allocations: 29.38 kB / 0.5977 GB, free: 14.96 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008684/0.5519, allocations: 174.3 kB / 0.5979 GB, free: 14.8 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003187/0.5522, allocations: 175.1 kB / 0.598 GB, free: 14.65 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.518e-05/0.5523, allocations: 46.39 kB / 0.5981 GB, free: 14.61 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0002645/0.5526, allocations: 263.5 kB / 0.5983 GB, free: 14.41 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5526, allocations: 0 / 0.5983 GB, free: 14.41 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0007836/0.5534, allocations: 196.1 kB / 0.5985 GB, free: 14.24 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 12 (inertia4.phi,inertia4.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,inertia2.phi,inertia2.w,clutch.phi_rel,clutch.w_rel,inertia1.w,brake.phi,inertia.w,bearingFriction.phi) * Number of discrete variables: 18 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 11 (bearingFriction.mode,bearingFriction.startForward,bearingFriction.startBackward,brake.mode,brake.startForward,brake.startBackward,clutch.mode,clutch.startForward,clutch.startBackward,oneWayClutch.stuck,oneWayClutch.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (55): * Single equations (assignments): 51 * 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: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 4 {1 6,1 7,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.000268/0.5537, allocations: 162.8 kB / 0.5987 GB, free: 14.09 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.5553, allocations: 0.9256 MB / 0.5996 GB, free: 13.39 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5553, allocations: 0 / 0.5996 GB, free: 13.39 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009262/0.5562, allocations: 471.6 kB / 0.6 GB, free: 13.07 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006648/0.5569, allocations: 94.81 kB / 0.6001 GB, free: 13.01 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00436/0.5612, allocations: 2.011 MB / 0.6021 GB, free: 11.1 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005537/0.5618, allocations: 0.9224 MB / 0.603 GB, free: 10.14 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0002911/0.5621, allocations: 56.83 kB / 0.603 GB, free: 10.09 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001337/0.5623, allocations: 42.73 kB / 0.6031 GB, free: 10.05 MB / 426.7 MB Notification: Performance of SimCode: time 2.374e-06/0.5623, allocations: 0 / 0.6031 GB, free: 10.05 MB / 426.7 MB Notification: Performance of Templates: time 0.01921/0.5815, allocations: 13.24 MB / 0.616 GB, free: 12.86 MB / 442.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches