Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009427/0.000943, allocations: 176.6 kB / 17.06 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.251/1.251, allocations: 223.2 MB / 241 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009471/0.000947, allocations: 95.86 kB / 292.2 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3311/0.3311, allocations: 44.22 MB / 387.5 MB, free: 38.83 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003187/0.0003187, allocations: 12 kB / 459.9 MB, free: 1.543 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3121/0.3124, allocations: 61.89 MB / 0.5096 GB, free: 38.04 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1144/0.4268, allocations: 89.45 MB / 0.5969 GB, free: 5.691 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002316/0.4271, allocations: 71.95 kB / 0.597 GB, free: 5.621 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01259/0.4397, allocations: 4.625 MB / 0.6015 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4397, allocations: 0 / 0.6015 GB, free: 0.9883 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.544e-05/0.4398, allocations: 4 kB / 0.6015 GB, free: 0.9844 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: 54 * Number of variables: 54 Notification: Performance of Generate backend data structure: time 0.0007903/0.4406, allocations: 0.53 MB / 0.602 GB, free: 416 kB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.4406, allocations: 8.031 kB / 0.602 GB, free: 408 kB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.442e-05/0.4407, allocations: 27.72 kB / 0.602 GB, free: 380 kB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000261/0.441, allocations: 243.7 kB / 0.6023 GB, free: 96 kB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.678e-05/0.441, allocations: 20.38 kB / 0.6023 GB, free: 76 kB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.748e-05/0.441, allocations: 24 kB / 0.6023 GB, free: 52 kB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004797/0.4415, allocations: 251.3 kB / 0.6026 GB, free: 15.8 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.674e-05/0.4416, allocations: 3.906 kB / 0.6026 GB, free: 15.79 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.38e-05/0.4416, allocations: 12 kB / 0.6026 GB, free: 15.78 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.4416, allocations: 7.938 kB / 0.6026 GB, free: 15.77 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004522/0.4421, allocations: 217.6 kB / 0.6028 GB, free: 15.56 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001233/0.4433, allocations: 0.7169 MB / 0.6035 GB, free: 14.79 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003825/0.4437, allocations: 211.3 kB / 0.6037 GB, free: 14.58 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.993e-05/0.4438, allocations: 4.234 kB / 0.6037 GB, free: 14.57 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.4438, allocations: 38.8 kB / 0.6037 GB, free: 14.53 MB / 426.7 MB Notification: Performance of pre-optimization done (n=27): time 1.843e-06/0.4438, allocations: 0 / 0.6037 GB, free: 14.53 MB / 426.7 MB Notification: Performance of matching and sorting (n=35): time 0.002898/0.4467, allocations: 1.494 MB / 0.6052 GB, free: 12.93 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.624e-05/0.4468, allocations: 55.41 kB / 0.6052 GB, free: 12.86 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.4469, allocations: 170.8 kB / 0.6054 GB, free: 12.69 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.808e-05/0.447, allocations: 33.7 kB / 0.6054 GB, free: 12.65 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.805e-05/0.4471, allocations: 124.9 kB / 0.6056 GB, free: 12.52 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.322e-05/0.4472, allocations: 122.4 kB / 0.6057 GB, free: 12.4 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.951e-05/0.4472, allocations: 8 kB / 0.6057 GB, free: 12.39 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.4473, allocations: 334.8 kB / 0.606 GB, free: 12.06 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002322/0.4476, allocations: 114.7 kB / 0.6061 GB, free: 11.95 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002553/0.4478, allocations: 156.5 kB / 0.6063 GB, free: 11.79 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002095/0.448, allocations: 115.8 kB / 0.6064 GB, free: 11.67 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.4481, allocations: 0 / 0.6064 GB, free: 11.67 MB / 426.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000736/0.4488, allocations: 403.1 kB / 0.6068 GB, free: 11.27 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.807e-05/0.4488, allocations: 7.938 kB / 0.6068 GB, free: 11.26 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.335e-05/0.4488, allocations: 8.062 kB / 0.6068 GB, free: 11.25 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004488/0.4493, allocations: 202.2 kB / 0.607 GB, free: 11.05 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002191/0.4495, allocations: 47.97 kB / 0.607 GB, free: 11.01 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007065/0.4503, allocations: 0.7163 MB / 0.6077 GB, free: 10.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002549/0.4505, allocations: 52.05 kB / 0.6078 GB, free: 10.21 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.44e-05/0.4506, allocations: 15.95 kB / 0.6078 GB, free: 10.2 MB / 426.7 MB 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 () * Number of clocked 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.0001856/0.4508, allocations: 152 kB / 0.6079 GB, free: 10.04 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.104e-05/0.4508, allocations: 19.72 kB / 0.6079 GB, free: 10.02 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00094/0.4518, allocations: 457 kB / 0.6084 GB, free: 9.566 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.4518, allocations: 4 kB / 0.6084 GB, free: 9.562 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.4518, allocations: 0 / 0.6084 GB, free: 9.562 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.881e-06/0.4518, allocations: 3.953 kB / 0.6084 GB, free: 9.559 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001695/0.4535, allocations: 0.9289 MB / 0.6093 GB, free: 8.559 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.464e-06/0.4536, allocations: 8.016 kB / 0.6093 GB, free: 8.551 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002443/0.4538, allocations: 51.91 kB / 0.6093 GB, free: 8.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004635/0.4543, allocations: 168.7 kB / 0.6095 GB, free: 8.332 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.247e-05/0.4543, allocations: 15.98 kB / 0.6095 GB, free: 8.316 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006845/0.455, allocations: 0.6772 MB / 0.6102 GB, free: 7.613 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.455, allocations: 3.984 kB / 0.6102 GB, free: 7.609 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.4561, allocations: 0.6533 MB / 0.6108 GB, free: 6.918 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001315/0.4562, allocations: 128.8 kB / 0.6109 GB, free: 6.773 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.938e-05/0.4563, allocations: 12 kB / 0.611 GB, free: 6.762 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002521/0.4565, allocations: 43.97 kB / 0.611 GB, free: 6.719 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001294/0.4567, allocations: 55.88 kB / 0.6111 GB, free: 6.664 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.713e-05/0.4567, allocations: 31.88 kB / 0.6111 GB, free: 6.633 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0001174/0.4569, allocations: 135.1 kB / 0.6112 GB, free: 6.5 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4569, allocations: 0 / 0.6112 GB, free: 6.5 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0004171/0.4573, allocations: 83.94 kB / 0.6113 GB, free: 6.418 MB / 426.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) * Number of clocked states: 0 () * 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.0002286/0.4575, allocations: 134.2 kB / 0.6114 GB, free: 6.277 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007048/0.4582, allocations: 329.6 kB / 0.6117 GB, free: 5.949 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.4582, allocations: 0 / 0.6117 GB, free: 5.949 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003161/0.4586, allocations: 160.3 kB / 0.6119 GB, free: 5.793 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002971/0.4589, allocations: 27.66 kB / 0.6119 GB, free: 5.766 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001852/0.4607, allocations: 0.9425 MB / 0.6128 GB, free: 4.789 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003005/0.4611, allocations: 0.7605 MB / 0.6136 GB, free: 4 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 8.299e-05/0.4611, allocations: 22.3 kB / 0.6136 GB, free: 3.977 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.476e-05/0.4612, allocations: 23.42 kB / 0.6136 GB, free: 3.953 MB / 426.7 MB Notification: Performance of SimCode: time 6.01e-07/0.4612, allocations: 0 / 0.6136 GB, free: 3.953 MB / 426.7 MB Notification: Performance of Templates: time 0.007782/0.469, allocations: 4.343 MB / 0.6179 GB, free: 15.62 MB / 442.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches