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.001713/0.001713, allocations: 183.4 kB / 15.76 MB, free: 6.367 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.712/1.712, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0009063/0.0009063, allocations: 90.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2262/0.2262, allocations: 43.56 MB / 362.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003125/0.0003125, allocations: 8 kB / 431.4 MB, free: 19.6 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1455/0.1458, allocations: 58.85 MB / 490.2 MB, free: 8.688 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5431/0.6889, allocations: 91.54 MB / 0.5681 GB, free: 8.332 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002822/0.6893, allocations: 71.72 kB / 0.5682 GB, free: 8.297 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03521/0.7245, allocations: 11.96 MB / 0.5799 GB, free: 14 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.7246, allocations: 0 / 0.5799 GB, free: 14 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.452e-05/0.7246, allocations: 12 kB / 0.5799 GB, free: 13.99 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.00226/0.7269, allocations: 1.007 MB / 0.5809 GB, free: 12.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.09e-05/0.7269, allocations: 8.031 kB / 0.5809 GB, free: 12.97 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001822/0.7271, allocations: 83.06 kB / 0.581 GB, free: 12.89 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006468/0.7278, allocations: 402.6 kB / 0.5813 GB, free: 12.5 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.275e-05/0.7279, allocations: 48.56 kB / 0.5814 GB, free: 12.47 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001213/0.728, allocations: 59.19 kB / 0.5814 GB, free: 12.43 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001428/0.7294, allocations: 0.796 MB / 0.5822 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.972e-05/0.7295, allocations: 3.906 kB / 0.5822 GB, free: 11.82 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.191e-05/0.7295, allocations: 27 kB / 0.5823 GB, free: 11.81 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.015e-05/0.7296, allocations: 23.95 kB / 0.5823 GB, free: 11.79 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001499/0.7311, allocations: 0.7228 MB / 0.583 GB, free: 11.27 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004563/0.7356, allocations: 2.582 MB / 0.5855 GB, free: 8.961 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001224/0.7369, allocations: 0.6299 MB / 0.5861 GB, free: 8.469 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.823e-05/0.737, allocations: 14.62 kB / 0.5861 GB, free: 8.457 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.486e-05/0.737, allocations: 42.17 kB / 0.5862 GB, free: 8.41 MB / 394.7 MB Notification: Performance of pre-optimization done (n=78): time 3.897e-06/0.737, allocations: 0 / 0.5862 GB, free: 8.41 MB / 394.7 MB Notification: Performance of matching and sorting (n=82): time 0.008377/0.7454, allocations: 3.696 MB / 0.5898 GB, free: 4.988 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.386e-05/0.7456, allocations: 139.5 kB / 0.5899 GB, free: 4.824 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004097/0.746, allocations: 323.3 kB / 0.5902 GB, free: 4.559 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001042/0.7461, allocations: 52.77 kB / 0.5903 GB, free: 4.52 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001931/0.7463, allocations: 260.2 kB / 0.5905 GB, free: 4.312 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002361/0.7465, allocations: 282.7 kB / 0.5908 GB, free: 4.078 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.49e-05/0.7466, allocations: 17.44 kB / 0.5908 GB, free: 4.074 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0002091/0.7468, allocations: 373.7 kB / 0.5912 GB, free: 3.727 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007221/0.7475, allocations: 363.4 kB / 0.5915 GB, free: 3.488 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007946/0.7483, allocations: 0.5114 MB / 0.592 GB, free: 3.059 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006356/0.749, allocations: 310 kB / 0.5923 GB, free: 2.863 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.831e-06/0.749, allocations: 4 kB / 0.5923 GB, free: 2.859 MB / 394.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002793/0.7518, allocations: 1.229 MB / 0.5935 GB, free: 1.938 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.258e-05/0.7519, allocations: 4 kB / 0.5935 GB, free: 1.934 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.551e-05/0.7519, allocations: 8 kB / 0.5935 GB, free: 1.926 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00128/0.7532, allocations: 0.6138 MB / 0.5941 GB, free: 1.441 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005616/0.7538, allocations: 158.7 kB / 0.5943 GB, free: 1.293 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00231/0.7561, allocations: 2.574 MB / 0.5968 GB, free: 14.83 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009561/0.7571, allocations: 194.2 kB / 0.597 GB, free: 14.65 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001181/0.7572, allocations: 46.78 kB / 0.597 GB, free: 14.61 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 () * Number of clocked 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.0004992/0.7577, allocations: 216.6 kB / 0.5972 GB, free: 14.44 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002241/0.7579, allocations: 59.25 kB / 0.5973 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002602/0.7605, allocations: 1.134 MB / 0.5984 GB, free: 13.54 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/0.7606, allocations: 11.98 kB / 0.5984 GB, free: 13.53 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.7606, allocations: 3.984 kB / 0.5984 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.699e-06/0.7606, allocations: 3.953 kB / 0.5984 GB, free: 13.52 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003885/0.7645, allocations: 2.128 MB / 0.6005 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.432e-06/0.7645, allocations: 0 / 0.6005 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005807/0.7651, allocations: 127.5 kB / 0.6006 GB, free: 11.67 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001107/0.7662, allocations: 0.5718 MB / 0.6012 GB, free: 11.21 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.544e-05/0.7663, allocations: 32.39 kB / 0.6012 GB, free: 11.19 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002147/0.7685, allocations: 2.53 MB / 0.6037 GB, free: 8.742 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.7685, allocations: 0 / 0.6037 GB, free: 8.742 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003258/0.7718, allocations: 1.777 MB / 0.6054 GB, free: 7.309 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004631/0.7722, allocations: 211.6 kB / 0.6056 GB, free: 7.113 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.7724, allocations: 33.88 kB / 0.6056 GB, free: 7.098 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008798/0.7733, allocations: 171.5 kB / 0.6058 GB, free: 6.938 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000356/0.7736, allocations: 172.5 kB / 0.606 GB, free: 6.789 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.945e-05/0.7737, allocations: 38.89 kB / 0.606 GB, free: 6.758 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0003693/0.7741, allocations: 267.8 kB / 0.6063 GB, free: 6.547 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7741, allocations: 4 kB / 0.6063 GB, free: 6.543 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0009969/0.7751, allocations: 201.7 kB / 0.6065 GB, free: 6.371 MB / 410.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) * Number of clocked states: 0 () * 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.0003336/0.7755, allocations: 172.9 kB / 0.6066 GB, free: 6.211 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002269/0.7777, allocations: 1.016 MB / 0.6076 GB, free: 5.422 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 7.224e-06/0.7778, allocations: 3.438 kB / 0.6076 GB, free: 5.422 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001401/0.7792, allocations: 0.5122 MB / 0.6081 GB, free: 5.047 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008037/0.78, allocations: 106.7 kB / 0.6082 GB, free: 4.973 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005338/0.7853, allocations: 2.573 MB / 0.6107 GB, free: 2.488 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005834/0.7859, allocations: 0.9263 MB / 0.6116 GB, free: 1.531 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003454/0.7863, allocations: 52.83 kB / 0.6117 GB, free: 1.477 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001335/0.7864, allocations: 42.67 kB / 0.6117 GB, free: 1.438 MB / 410.7 MB Notification: Performance of SimCode: time 2.184e-06/0.7865, allocations: 0 / 0.6117 GB, free: 1.438 MB / 410.7 MB Notification: Performance of Templates: time 0.02359/0.81, allocations: 13.25 MB / 0.6247 GB, free: 4.227 MB / 426.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