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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009103/0.0009104, allocations: 190.1 kB / 7.804 MB, free: 2.441 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.091/1.091, allocations: 205.2 MB / 213.4 MB, free: 13.86 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.0008069/0.0008069, allocations: 92.56 kB / 261.4 MB, free: 13.55 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.16/0.16, allocations: 43.49 MB / 352.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 6.112e-06/6.132e-06, allocations: 0 / 417.7 MB, free: 40.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.236/0.236, allocations: 58.83 MB / 476.5 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09897/0.335, allocations: 90.71 MB / 0.554 GB, free: 8.242 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001602/0.3352, allocations: 71.95 kB / 0.554 GB, free: 8.172 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.03109/0.3663, allocations: 11.7 MB / 0.5655 GB, free: 12.43 MB / 410.7 MB Notification: Performance of Transformations before backend: time 2.519e-05/0.3663, allocations: 12 kB / 0.5655 GB, free: 12.42 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.001752/0.3681, allocations: 0.9584 MB / 0.5664 GB, free: 11.42 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.04e-05/0.3681, allocations: 12.03 kB / 0.5664 GB, free: 11.41 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000147/0.3683, allocations: 83.05 kB / 0.5665 GB, free: 11.32 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004888/0.3688, allocations: 404.6 kB / 0.5669 GB, free: 10.89 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.3688, allocations: 24 kB / 0.5669 GB, free: 10.87 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001052/0.3689, allocations: 39.91 kB / 0.5669 GB, free: 10.83 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009561/0.3699, allocations: 0.5766 MB / 0.5675 GB, free: 10.25 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009812/0.3709, allocations: 0.671 MB / 0.5682 GB, free: 9.543 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.682e-05/0.3709, allocations: 3.906 kB / 0.5682 GB, free: 9.539 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.631e-05/0.371, allocations: 4 kB / 0.5682 GB, free: 9.535 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.657e-05/0.371, allocations: 12 kB / 0.5682 GB, free: 9.523 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003898/0.3749, allocations: 2.512 MB / 0.5706 GB, free: 6.902 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007082/0.3757, allocations: 442.9 kB / 0.5711 GB, free: 6.445 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000427/0.3761, allocations: 315.2 kB / 0.5714 GB, free: 6.125 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.624e-05/0.3762, allocations: 12 kB / 0.5714 GB, free: 6.113 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.334e-05/0.3762, allocations: 42.91 kB / 0.5714 GB, free: 6.062 MB / 410.7 MB Notification: Performance of pre-optimization done (n=78): time 2.054e-06/0.3762, allocations: 0 / 0.5714 GB, free: 6.062 MB / 410.7 MB Notification: Performance of matching and sorting (n=82): time 0.003983/0.3802, allocations: 2.32 MB / 0.5737 GB, free: 3.551 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.024e-05/0.3803, allocations: 136.5 kB / 0.5738 GB, free: 3.387 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.3806, allocations: 309 kB / 0.5741 GB, free: 3.078 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 7.745e-05/0.3806, allocations: 41.7 kB / 0.5741 GB, free: 3.031 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.3807, allocations: 212.7 kB / 0.5743 GB, free: 2.816 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001904/0.3809, allocations: 272.3 kB / 0.5746 GB, free: 2.547 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.388e-05/0.381, allocations: 3.984 kB / 0.5746 GB, free: 2.543 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001169/0.3811, allocations: 362.8 kB / 0.575 GB, free: 2.18 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004635/0.3816, allocations: 298 kB / 0.5752 GB, free: 1.887 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005365/0.3821, allocations: 456.1 kB / 0.5757 GB, free: 1.395 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006031/0.3827, allocations: 265.8 kB / 0.5759 GB, free: 1.137 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.355e-06/0.3828, allocations: 4 kB / 0.5759 GB, free: 1.133 MB / 410.7 MB Notification: Performance of matching and sorting (n=116) (initialization): time 0.002182/0.3849, allocations: 1.051 MB / 0.577 GB, free: 72 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.385, allocations: 7.938 kB / 0.577 GB, free: 64 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.967e-05/0.385, allocations: 11.98 kB / 0.577 GB, free: 52 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001007/0.386, allocations: 0.5698 MB / 0.5775 GB, free: 15.47 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005513/0.3866, allocations: 151.8 kB / 0.5777 GB, free: 15.32 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002093/0.3887, allocations: 2.67 MB / 0.5803 GB, free: 12.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009365/0.3896, allocations: 199.8 kB / 0.5805 GB, free: 12.35 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.175e-05/0.3897, allocations: 47.97 kB / 0.5805 GB, free: 12.3 MB / 426.7 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.0002112/0.3899, allocations: 139.4 kB / 0.5807 GB, free: 12.16 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001644/0.3901, allocations: 63.25 kB / 0.5807 GB, free: 12.1 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00208/0.3922, allocations: 0.9845 MB / 0.5817 GB, free: 11.08 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.016e-05/0.3922, allocations: 8 kB / 0.5817 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.909e-06/0.3922, allocations: 0 / 0.5817 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.849e-06/0.3922, allocations: 7.984 kB / 0.5817 GB, free: 11.07 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00311/0.3954, allocations: 1.898 MB / 0.5835 GB, free: 9.102 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.017e-06/0.3954, allocations: 0 / 0.5835 GB, free: 9.102 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006073/0.396, allocations: 127.9 kB / 0.5837 GB, free: 8.977 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009282/0.3969, allocations: 0.5384 MB / 0.5842 GB, free: 8.426 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.059e-05/0.397, allocations: 23.95 kB / 0.5842 GB, free: 8.402 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00202/0.399, allocations: 2.615 MB / 0.5868 GB, free: 5.684 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.3991, allocations: 3.984 kB / 0.5868 GB, free: 5.68 MB / 426.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002351/0.4014, allocations: 1.594 MB / 0.5883 GB, free: 4.012 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002686/0.4017, allocations: 216.2 kB / 0.5885 GB, free: 3.781 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001402/0.4018, allocations: 16 kB / 0.5886 GB, free: 3.766 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009046/0.4027, allocations: 179.8 kB / 0.5887 GB, free: 3.59 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003036/0.4031, allocations: 175.5 kB / 0.5889 GB, free: 3.418 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-05/0.4031, allocations: 43.95 kB / 0.5889 GB, free: 3.375 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.0002151/0.4034, allocations: 239.2 kB / 0.5892 GB, free: 3.141 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006946/0.4041, allocations: 171.9 kB / 0.5893 GB, free: 2.973 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.0002401/0.4043, allocations: 147.2 kB / 0.5895 GB, free: 2.816 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001389/0.4057, allocations: 0.8707 MB / 0.5903 GB, free: 1.922 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.113e-06/0.4057, allocations: 4.125 kB / 0.5903 GB, free: 1.918 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000897/0.4066, allocations: 450.8 kB / 0.5907 GB, free: 1.48 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006319/0.4073, allocations: 70.89 kB / 0.5908 GB, free: 1.414 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002889/0.4102, allocations: 1.598 MB / 0.5924 GB, free: 15.77 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000552/0.4107, allocations: 0.9688 MB / 0.5933 GB, free: 14.77 MB / 442.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4107, allocations: 0 / 0.5933 GB, free: 14.77 MB / 442.7 MB Notification: Performance of Templates: time 0.01815/0.4289, allocations: 13.68 MB / 0.6067 GB, free: 1.105 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