Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_ModelicaTest.Rotational.TestFriction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002076/0.002076, allocations: 179.4 kB / 8.364 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.207/2.207, allocations: 205.3 MB / 214.1 MB, free: 14.14 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.001085/0.001085, allocations: 93.33 kB / 262.1 MB, free: 13.88 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.2937/0.2937, allocations: 43.49 MB / 353.6 MB, free: 2.281 MB / 299.1 MB Notification: Performance of FrontEnd - loaded program: time 2.075e-05/2.073e-05, allocations: 4.219 kB / 418.2 MB, free: 41.06 MB / 299.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.446/0.4461, allocations: 58.86 MB / 477.1 MB, free: 5.273 MB / 315.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1729/0.6191, allocations: 90.79 MB / 0.5546 GB, free: 8.52 MB / 395.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002632/0.6194, allocations: 63.97 kB / 0.5546 GB, free: 8.457 MB / 395.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05717/0.6766, allocations: 11.85 MB / 0.5662 GB, free: 12.57 MB / 411.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.6766, allocations: 0 / 0.5662 GB, free: 12.57 MB / 411.1 MB Notification: Performance of Transformations before backend: time 4.866e-05/0.6767, allocations: 16 kB / 0.5662 GB, free: 12.56 MB / 411.1 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.003348/0.68, allocations: 0.9311 MB / 0.5671 GB, free: 11.58 MB / 411.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.036e-05/0.6801, allocations: 16.03 kB / 0.5671 GB, free: 11.57 MB / 411.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002922/0.6804, allocations: 79.06 kB / 0.5672 GB, free: 11.49 MB / 411.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009018/0.6813, allocations: 402.9 kB / 0.5676 GB, free: 11.05 MB / 411.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.89e-05/0.6814, allocations: 20 kB / 0.5676 GB, free: 11.04 MB / 411.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001842/0.6816, allocations: 39.91 kB / 0.5676 GB, free: 11 MB / 411.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001738/0.6833, allocations: 0.5727 MB / 0.5682 GB, free: 10.42 MB / 411.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001771/0.6851, allocations: 0.6671 MB / 0.5689 GB, free: 9.719 MB / 411.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.526e-05/0.6852, allocations: 7.906 kB / 0.5689 GB, free: 9.711 MB / 411.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001037/0.6853, allocations: 3.953 kB / 0.5689 GB, free: 9.707 MB / 411.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.496e-05/0.6854, allocations: 19.94 kB / 0.5689 GB, free: 9.688 MB / 411.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007118/0.6925, allocations: 2.473 MB / 0.5713 GB, free: 7.105 MB / 411.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001658/0.6942, allocations: 0.534 MB / 0.5718 GB, free: 6.535 MB / 411.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009266/0.6952, allocations: 316.7 kB / 0.5721 GB, free: 6.215 MB / 411.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001402/0.6953, allocations: 15.98 kB / 0.5721 GB, free: 6.199 MB / 411.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.08e-05/0.6954, allocations: 46.56 kB / 0.5722 GB, free: 6.145 MB / 411.1 MB Notification: Performance of pre-optimization done (n=78): time 4.729e-06/0.6954, allocations: 0 / 0.5722 GB, free: 6.145 MB / 411.1 MB Notification: Performance of matching and sorting (n=82): time 0.007617/0.703, allocations: 2.316 MB / 0.5744 GB, free: 3.633 MB / 411.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.899e-05/0.7032, allocations: 136.5 kB / 0.5746 GB, free: 3.469 MB / 411.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005602/0.7038, allocations: 313 kB / 0.5749 GB, free: 3.16 MB / 411.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002579/0.704, allocations: 37.7 kB / 0.5749 GB, free: 3.117 MB / 411.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002611/0.7043, allocations: 307.1 kB / 0.5752 GB, free: 2.812 MB / 411.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004023/0.7047, allocations: 272.1 kB / 0.5755 GB, free: 2.543 MB / 411.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.317e-05/0.7048, allocations: 7.938 kB / 0.5755 GB, free: 2.535 MB / 411.1 MB Notification: Performance of setup shared object (initialization): time 0.0002074/0.705, allocations: 354.8 kB / 0.5758 GB, free: 2.18 MB / 411.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008683/0.7059, allocations: 294.6 kB / 0.5761 GB, free: 1.891 MB / 411.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001021/0.707, allocations: 451.2 kB / 0.5765 GB, free: 1.395 MB / 411.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.708, allocations: 268.1 kB / 0.5768 GB, free: 1.137 MB / 411.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.599e-06/0.7081, allocations: 4 kB / 0.5768 GB, free: 1.133 MB / 411.1 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.004/0.7121, allocations: 1.021 MB / 0.5778 GB, free: 100 kB / 411.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.338e-05/0.7122, allocations: 8 kB / 0.5778 GB, free: 92 kB / 411.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.434e-05/0.7122, allocations: 11.98 kB / 0.5778 GB, free: 80 kB / 411.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001956/0.7142, allocations: 0.5773 MB / 0.5784 GB, free: 15.48 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001107/0.7153, allocations: 147.8 kB / 0.5785 GB, free: 15.34 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003699/0.719, allocations: 2.658 MB / 0.5811 GB, free: 12.58 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001832/0.7209, allocations: 175.9 kB / 0.5813 GB, free: 12.41 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002708/0.7213, allocations: 47.97 kB / 0.5813 GB, free: 12.36 MB / 427.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: oneWayClutch.sa:VARIABLE(unit = "1" protected = true ) "Path parameter of tau = f(a_rel) Friction characteristic" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0004666/0.7217, allocations: 144 kB / 0.5814 GB, free: 12.22 MB / 427.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003276/0.7221, allocations: 63.25 kB / 0.5815 GB, free: 12.16 MB / 427.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003796/0.7259, allocations: 0.9776 MB / 0.5825 GB, free: 11.14 MB / 427.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.985e-05/0.726, allocations: 8 kB / 0.5825 GB, free: 11.14 MB / 427.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.164e-05/0.726, allocations: 0 / 0.5825 GB, free: 11.14 MB / 427.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.631e-05/0.726, allocations: 3.984 kB / 0.5825 GB, free: 11.13 MB / 427.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00586/0.7319, allocations: 1.907 MB / 0.5843 GB, free: 9.16 MB / 427.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.512e-05/0.732, allocations: 4 kB / 0.5843 GB, free: 9.156 MB / 427.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001262/0.7332, allocations: 123.9 kB / 0.5845 GB, free: 9.035 MB / 427.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00183/0.7351, allocations: 0.5459 MB / 0.585 GB, free: 8.477 MB / 427.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001918/0.7353, allocations: 23.95 kB / 0.585 GB, free: 8.453 MB / 427.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003518/0.7389, allocations: 2.58 MB / 0.5875 GB, free: 5.77 MB / 427.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.138e-05/0.7389, allocations: 7.984 kB / 0.5875 GB, free: 5.762 MB / 427.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004613/0.7435, allocations: 1.59 MB / 0.5891 GB, free: 4.102 MB / 427.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005933/0.7442, allocations: 212.2 kB / 0.5893 GB, free: 3.875 MB / 427.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002046/0.7444, allocations: 16 kB / 0.5893 GB, free: 3.859 MB / 427.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00169/0.7461, allocations: 167.8 kB / 0.5895 GB, free: 3.695 MB / 427.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000587/0.7467, allocations: 175.5 kB / 0.5896 GB, free: 3.523 MB / 427.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001489/0.7469, allocations: 48.08 kB / 0.5897 GB, free: 3.477 MB / 427.1 MB Notification: Performance of sorting global known variables: time 0.0004179/0.7473, allocations: 243 kB / 0.5899 GB, free: 3.242 MB / 427.1 MB Notification: Performance of sort global known variables: time 6.41e-07/0.7473, allocations: 3.938 kB / 0.5899 GB, free: 3.238 MB / 427.1 MB Notification: Performance of remove unused functions: time 0.001225/0.7486, allocations: 167.9 kB / 0.5901 GB, free: 3.074 MB / 427.1 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.0004331/0.749, allocations: 143.3 kB / 0.5902 GB, free: 2.922 MB / 427.1 MB Notification: Performance of simCode: created initialization part: time 0.002641/0.7517, allocations: 0.8676 MB / 0.5911 GB, free: 2.031 MB / 427.1 MB Notification: Performance of simCode: created event and clocks part: time 9.087e-06/0.7517, allocations: 112 / 0.5911 GB, free: 2.031 MB / 427.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001631/0.7534, allocations: 447.5 kB / 0.5915 GB, free: 1.594 MB / 427.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001217/0.7546, allocations: 101.6 kB / 0.5916 GB, free: 1.504 MB / 427.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00894/0.7636, allocations: 1.998 MB / 0.5935 GB, free: 15.45 MB / 443.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006988/0.7643, allocations: 0.9147 MB / 0.5944 GB, free: 14.51 MB / 443.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003317/0.7647, allocations: 51.41 kB / 0.5945 GB, free: 14.46 MB / 443.1 MB Notification: Performance of SimCode: time 1.253e-06/0.7647, allocations: 0 / 0.5945 GB, free: 14.46 MB / 443.1 MB Notification: Performance of Templates: time 0.03398/0.7987, allocations: 16.37 MB / 0.6105 GB, free: 14.08 MB / 459.1 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/TestFriction/TestFriction.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Rotational.TestFriction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches