Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.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.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [: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.0008785/0.0008788, allocations: 191.5 kB / 7.807 MB, free: 2.488 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.093/1.093, 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.0007799/0.0007798, allocations: 84.89 kB / 261.4 MB, free: 13.56 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.1623/0.1623, allocations: 43.49 MB / 352.9 MB, free: 1.969 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.841e-06/5.871e-06, allocations: 4 kB / 417.7 MB, free: 40.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2467, allocations: 58.83 MB / 476.6 MB, free: 5.215 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.105/0.3517, allocations: 87.48 MB / 0.5508 GB, free: 11.47 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001566/0.3519, allocations: 71.91 kB / 0.5509 GB, free: 11.4 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01158/0.3635, allocations: 4.23 MB / 0.555 GB, free: 7.156 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.3636, allocations: 4 kB / 0.555 GB, free: 7.152 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0006998/0.3643, allocations: 0.5177 MB / 0.5555 GB, free: 6.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.3643, allocations: 8.031 kB / 0.5555 GB, free: 6.582 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.017e-05/0.3644, allocations: 23.72 kB / 0.5556 GB, free: 6.559 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.3646, allocations: 241.4 kB / 0.5558 GB, free: 6.285 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.25e-05/0.3647, allocations: 11.06 kB / 0.5558 GB, free: 6.277 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.762e-05/0.3647, allocations: 19.98 kB / 0.5558 GB, free: 6.258 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003535/0.3651, allocations: 192.8 kB / 0.556 GB, free: 6.07 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000353/0.3654, allocations: 214.4 kB / 0.5562 GB, free: 5.855 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.323e-05/0.3655, allocations: 4 kB / 0.5562 GB, free: 5.852 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.596e-05/0.3655, allocations: 3.906 kB / 0.5562 GB, free: 5.848 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.3655, allocations: 8 kB / 0.5562 GB, free: 5.84 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001191/0.3667, allocations: 0.6543 MB / 0.5569 GB, free: 5.145 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002185/0.3669, allocations: 150.2 kB / 0.557 GB, free: 4.992 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002147/0.3672, allocations: 130.7 kB / 0.5571 GB, free: 4.863 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.862e-05/0.3672, allocations: 4.375 kB / 0.5571 GB, free: 4.859 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.251e-05/0.3672, allocations: 34.8 kB / 0.5572 GB, free: 4.816 MB / 394.7 MB Notification: Performance of pre-optimization done (n=27): time 1.733e-06/0.3673, allocations: 3.938 kB / 0.5572 GB, free: 4.812 MB / 394.7 MB Notification: Performance of matching and sorting (n=35): time 0.002164/0.3694, allocations: 1.098 MB / 0.5582 GB, free: 3.617 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.436e-05/0.3695, allocations: 51.41 kB / 0.5583 GB, free: 3.555 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001166/0.3696, allocations: 132.8 kB / 0.5584 GB, free: 3.418 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 3.876e-05/0.3696, allocations: 33.7 kB / 0.5584 GB, free: 3.379 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.7e-05/0.3697, allocations: 124.6 kB / 0.5586 GB, free: 3.254 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.495e-05/0.3698, allocations: 118.3 kB / 0.5587 GB, free: 3.137 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.622e-05/0.3698, allocations: 0 / 0.5587 GB, free: 3.137 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.3699, allocations: 330.8 kB / 0.559 GB, free: 2.805 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001685/0.3701, allocations: 103.8 kB / 0.5591 GB, free: 2.703 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.3703, allocations: 147.2 kB / 0.5592 GB, free: 2.547 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002128/0.3705, allocations: 95.75 kB / 0.5593 GB, free: 2.453 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.163e-06/0.3705, allocations: 4 kB / 0.5593 GB, free: 2.449 MB / 394.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0006634/0.3712, allocations: 362.1 kB / 0.5597 GB, free: 2.086 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.117e-05/0.3712, allocations: 6.812 kB / 0.5597 GB, free: 2.082 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.3712, allocations: 4 kB / 0.5597 GB, free: 2.078 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003744/0.3716, allocations: 180.8 kB / 0.5599 GB, free: 1.898 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002283/0.3719, allocations: 51.91 kB / 0.5599 GB, free: 1.848 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007118/0.3726, allocations: 0.7475 MB / 0.5606 GB, free: 1.074 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002504/0.3728, allocations: 52.02 kB / 0.5607 GB, free: 1.023 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.893e-05/0.3729, allocations: 16 kB / 0.5607 GB, free: 1.008 MB / 394.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: bearingFriction1.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: 4 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.bearingFriction1.startForward,bearingFriction1.startForward,$PRE.bearingFriction1.startBackward,bearingFriction1.startBackward,bearingFriction1.locked,$PRE.bearingFriction1.mode,bearingFriction1.mode,bearingFriction1.free) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 12} Notification: Performance of prepare postOptimizeDAE: time 0.0001433/0.373, allocations: 116.9 kB / 0.5608 GB, free: 0.8867 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.151e-05/0.3731, allocations: 19.72 kB / 0.5608 GB, free: 0.8672 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008027/0.3739, allocations: 404.8 kB / 0.5612 GB, free: 472 kB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.599e-06/0.3739, allocations: 4 kB / 0.5612 GB, free: 468 kB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.3739, allocations: 0 / 0.5612 GB, free: 468 kB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.262e-06/0.3739, allocations: 3.984 kB / 0.5612 GB, free: 464 kB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/0.3753, allocations: 0.8515 MB / 0.5621 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.3753, allocations: 4.062 kB / 0.5621 GB, free: 15.54 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002294/0.3755, allocations: 55.91 kB / 0.5621 GB, free: 15.48 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003109/0.3758, allocations: 164.7 kB / 0.5623 GB, free: 15.32 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.445e-05/0.3759, allocations: 7.984 kB / 0.5623 GB, free: 15.31 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005931/0.3765, allocations: 0.6928 MB / 0.563 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.3765, allocations: 3.938 kB / 0.563 GB, free: 14.59 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0009/0.3774, allocations: 0.6029 MB / 0.5635 GB, free: 13.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001168/0.3775, allocations: 120.9 kB / 0.5637 GB, free: 13.81 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.702e-05/0.3776, allocations: 7.984 kB / 0.5637 GB, free: 13.8 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002682/0.3778, allocations: 52.03 kB / 0.5637 GB, free: 13.75 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.378, allocations: 63.81 kB / 0.5638 GB, free: 13.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.913e-05/0.378, allocations: 15.98 kB / 0.5638 GB, free: 13.67 MB / 410.7 MB Notification: Performance of sort global known variables: time 7.362e-05/0.3781, allocations: 107.3 kB / 0.5639 GB, free: 13.57 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0003272/0.3784, allocations: 72.12 kB / 0.564 GB, free: 13.5 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (inertia3.phi,inertia3.w) * Number of discrete variables: 4 (bearingFriction1.startForward,bearingFriction1.startBackward,bearingFriction1.locked,bearingFriction1.mode) * Number of discrete states: 3 (bearingFriction1.mode,bearingFriction1.startBackward,bearingFriction1.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 24 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001764/0.3786, allocations: 119.2 kB / 0.5641 GB, free: 13.37 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000515/0.3791, allocations: 301.6 kB / 0.5644 GB, free: 13.07 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.3791, allocations: 0 / 0.5644 GB, free: 13.07 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.3794, allocations: 147.8 kB / 0.5645 GB, free: 12.93 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002562/0.3797, allocations: 19.42 kB / 0.5645 GB, free: 12.91 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008883/0.3806, allocations: 447.4 kB / 0.565 GB, free: 12.45 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003413/0.3809, allocations: 0.7832 MB / 0.5657 GB, free: 11.64 MB / 410.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3809, allocations: 0 / 0.5657 GB, free: 11.64 MB / 410.7 MB Notification: Performance of Templates: time 0.006885/0.3878, allocations: 4.414 MB / 0.57 GB, free: 7.23 MB / 410.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches