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.002128/0.002128, allocations: 178.1 kB / 17.41 MB, free: 4.293 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.607/2.607, allocations: 205.4 MB / 223.6 MB, free: 9.016 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.0008224/0.0008217, allocations: 81.44 kB / 271.9 MB, free: 8.262 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.5998/0.5998, allocations: 43.55 MB / 363.7 MB, free: 52.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005801/0.0005802, allocations: 16 kB / 432.6 MB, free: 5.895 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2073/0.208, allocations: 58.85 MB / 491.4 MB, free: 10.96 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5921/0.8001, allocations: 91.59 MB / 0.5694 GB, free: 10.81 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004137/0.8006, allocations: 63.97 kB / 0.5694 GB, free: 10.75 MB / 394.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.062/0.8627, allocations: 11.97 MB / 0.5811 GB, free: 14.81 MB / 410.7 MB Notification: Performance of FrontEnd: time 3.466e-06/0.8627, allocations: 0 / 0.5811 GB, free: 14.81 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.676e-05/0.8628, allocations: 12 kB / 0.5811 GB, free: 14.8 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: 151 * Number of variables: 151 Notification: Performance of Generate backend data structure: time 0.004466/0.8673, allocations: 1 MB / 0.5821 GB, free: 13.75 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.657e-05/0.8674, allocations: 11.97 kB / 0.5821 GB, free: 13.74 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004813/0.8679, allocations: 84 kB / 0.5822 GB, free: 13.66 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001202/0.8691, allocations: 417.6 kB / 0.5826 GB, free: 13.21 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.833e-05/0.8693, allocations: 49.69 kB / 0.5826 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003381/0.8696, allocations: 68.36 kB / 0.5827 GB, free: 13.1 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003141/0.8728, allocations: 0.7959 MB / 0.5835 GB, free: 12.27 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.407e-05/0.8729, allocations: 11.83 kB / 0.5835 GB, free: 12.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001504/0.8731, allocations: 28 kB / 0.5835 GB, free: 12.23 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.288e-05/0.8731, allocations: 16 kB / 0.5835 GB, free: 12.21 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003087/0.8762, allocations: 0.7177 MB / 0.5842 GB, free: 11.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008481/0.8847, allocations: 2.579 MB / 0.5868 GB, free: 8.797 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002503/0.8873, allocations: 0.628 MB / 0.5874 GB, free: 8.133 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001573/0.8889, allocations: 391.2 kB / 0.5877 GB, free: 7.738 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001435/0.8891, allocations: 15.98 kB / 0.5878 GB, free: 7.723 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.658e-05/0.8891, allocations: 38.56 kB / 0.5878 GB, free: 7.676 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 8.776e-06/0.8892, allocations: 0 / 0.5878 GB, free: 7.676 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.01541/0.9046, allocations: 3.699 MB / 0.5914 GB, free: 3.707 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/0.9048, allocations: 140.5 kB / 0.5915 GB, free: 3.539 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008383/0.9056, allocations: 373.9 kB / 0.5919 GB, free: 3.172 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000201/0.9058, allocations: 49.7 kB / 0.5919 GB, free: 3.117 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003506/0.9062, allocations: 264.6 kB / 0.5922 GB, free: 2.852 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004778/0.9067, allocations: 280.2 kB / 0.5925 GB, free: 2.574 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001294/0.9069, allocations: 23.94 kB / 0.5925 GB, free: 2.551 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0003278/0.9072, allocations: 366.8 kB / 0.5928 GB, free: 2.184 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00152/0.9087, allocations: 361.8 kB / 0.5932 GB, free: 1.828 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001726/0.9105, allocations: 0.5218 MB / 0.5937 GB, free: 1.25 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002712/0.9132, allocations: 0.707 MB / 0.5944 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.328e-06/0.9133, allocations: 0 / 0.5944 GB, free: 0.4961 MB / 410.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.005515/0.9188, allocations: 1.226 MB / 0.5956 GB, free: 15.26 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.9189, allocations: 4 kB / 0.5956 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.291e-05/0.919, allocations: 8 kB / 0.5956 GB, free: 15.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00231/0.9213, allocations: 0.6165 MB / 0.5962 GB, free: 14.62 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.9223, allocations: 155.7 kB / 0.5963 GB, free: 14.46 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003974/0.9263, allocations: 2.573 MB / 0.5989 GB, free: 11.79 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001727/0.9281, allocations: 199.6 kB / 0.599 GB, free: 11.59 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002469/0.9284, allocations: 47.97 kB / 0.5991 GB, free: 11.55 MB / 426.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.0007417/0.9291, allocations: 220.2 kB / 0.5993 GB, free: 11.32 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003953/0.9295, allocations: 55.34 kB / 0.5994 GB, free: 11.27 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005173/0.9347, allocations: 1.136 MB / 0.6005 GB, free: 10.1 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.7e-05/0.9348, allocations: 11.98 kB / 0.6005 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.9348, allocations: 3.938 kB / 0.6005 GB, free: 10.09 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.853e-05/0.9348, allocations: 3.984 kB / 0.6005 GB, free: 10.08 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007731/0.9426, allocations: 2.126 MB / 0.6026 GB, free: 7.879 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-05/0.9427, allocations: 4 kB / 0.6026 GB, free: 7.875 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001172/0.9438, allocations: 127.9 kB / 0.6027 GB, free: 7.75 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002163/0.946, allocations: 0.5696 MB / 0.6032 GB, free: 7.168 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001621/0.9462, allocations: 39.95 kB / 0.6033 GB, free: 7.129 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00385/0.9501, allocations: 2.529 MB / 0.6057 GB, free: 4.496 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.551e-06/0.9501, allocations: 0 / 0.6057 GB, free: 4.496 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006297/0.9564, allocations: 1.72 MB / 0.6074 GB, free: 2.738 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000666/0.9571, allocations: 216.2 kB / 0.6076 GB, free: 2.508 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002897/0.9575, allocations: 32 kB / 0.6077 GB, free: 2.477 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001712/0.9592, allocations: 175.8 kB / 0.6078 GB, free: 2.305 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006175/0.9598, allocations: 179.5 kB / 0.608 GB, free: 2.129 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001712/0.96, allocations: 40.06 kB / 0.608 GB, free: 2.09 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0006583/0.9607, allocations: 267.1 kB / 0.6083 GB, free: 1.832 MB / 426.7 MB Notification: Performance of sort global known variables: time 4.61e-07/0.9607, allocations: 0 / 0.6083 GB, free: 1.832 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001615/0.9623, allocations: 196 kB / 0.6085 GB, free: 1.641 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) * 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.0005079/0.9629, allocations: 167 kB / 0.6086 GB, free: 1.465 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004164/0.9671, allocations: 1.026 MB / 0.6096 GB, free: 428 kB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.9671, allocations: 128 / 0.6096 GB, free: 428 kB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002424/0.9695, allocations: 0.5079 MB / 0.6101 GB, free: 15.91 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00217/0.9717, allocations: 112.4 kB / 0.6102 GB, free: 15.8 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009728/0.9815, allocations: 2.613 MB / 0.6128 GB, free: 13.14 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008721/0.9824, allocations: 0.9107 MB / 0.6137 GB, free: 12.2 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000378/0.9828, allocations: 47.42 kB / 0.6137 GB, free: 12.15 MB / 442.7 MB Notification: Performance of SimCode: time 2.054e-06/0.9829, allocations: 0 / 0.6137 GB, free: 12.15 MB / 442.7 MB Notification: Performance of Templates: time 0.03789/1.021, allocations: 17.14 MB / 0.6305 GB, free: 11.02 MB / 458.7 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