Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001353/0.001352, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.33/1.33, allocations: 226.7 MB / 245.5 MB, free: 6.965 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001008/0.001007, allocations: 100 kB / 296.7 MB, free: 6.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.416/0.416, allocations: 44.84 MB / 392.7 MB, free: 34.77 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001175/0.001175, allocations: 59.91 kB / 465.5 MB, free: 12.13 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3399/0.3411, allocations: 62.02 MB / 0.5151 GB, free: 37.68 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003379/0.3446, allocations: 2.402 MB / 0.5175 GB, free: 36 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.3457, allocations: 0.8586 MB / 0.5183 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001129/0.3458, allocations: 7.562 kB / 0.5183 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002603/0.3461, allocations: 45.17 kB / 0.5184 GB, free: 35.38 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001751/0.3463, allocations: 64.78 kB / 0.5184 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002416/0.3465, allocations: 110.8 kB / 0.5186 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002866/0.3468, allocations: 326.6 kB / 0.5189 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001863/0.347, allocations: 72.03 kB / 0.5189 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.3473, allocations: 141.5 kB / 0.5191 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002043/0.3475, allocations: 150.9 kB / 0.5192 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.831e-05/0.3475, allocations: 16.84 kB / 0.5192 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001695/0.3477, allocations: 73.86 kB / 0.5193 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001173/0.3478, allocations: 66.42 kB / 0.5194 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000132/0.348, allocations: 127.4 kB / 0.5195 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003685/0.3483, allocations: 363.4 kB / 0.5198 GB, free: 34.7 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.828e-06/0.3484, allocations: 0 / 0.5198 GB, free: 34.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3484, allocations: 3.938 kB / 0.5198 GB, free: 34.69 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.3484, allocations: 0 / 0.5198 GB, free: 34.69 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001006/0.3494, allocations: 0.5608 MB / 0.5204 GB, free: 34.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.3494, allocations: 10 kB / 0.5204 GB, free: 34.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001978/0.3496, allocations: 43.61 kB / 0.5204 GB, free: 34.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000247/0.3499, allocations: 256.4 kB / 0.5207 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.404e-05/0.3499, allocations: 25.92 kB / 0.5207 GB, free: 33.94 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.317e-05/0.35, allocations: 25.25 kB / 0.5207 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004493/0.3505, allocations: 264.4 kB / 0.521 GB, free: 33.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.3505, allocations: 3.906 kB / 0.521 GB, free: 33.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.802e-05/0.3505, allocations: 10.84 kB / 0.521 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.3505, allocations: 9.766 kB / 0.521 GB, free: 33.8 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000428/0.351, allocations: 229 kB / 0.5212 GB, free: 33.72 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.3521, allocations: 0.7275 MB / 0.5219 GB, free: 33.26 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004513/0.3525, allocations: 238.2 kB / 0.5222 GB, free: 33.15 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002339/0.3528, allocations: 136.1 kB / 0.5223 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.858e-05/0.3528, allocations: 2.906 kB / 0.5223 GB, free: 33.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.326e-05/0.3528, allocations: 41.31 kB / 0.5223 GB, free: 33.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=26): time 1.302e-06/0.3529, allocations: 0 / 0.5223 GB, free: 33.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=34): time 0.002574/0.3554, allocations: 1.388 MB / 0.5237 GB, free: 32.15 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.432e-05/0.3555, allocations: 54.25 kB / 0.5237 GB, free: 32.09 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000178/0.3557, allocations: 219.7 kB / 0.5239 GB, free: 31.95 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.678e-05/0.3557, allocations: 39.91 kB / 0.524 GB, free: 31.91 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.114e-05/0.3558, allocations: 131.7 kB / 0.5241 GB, free: 31.79 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.583e-05/0.3558, allocations: 116.5 kB / 0.5242 GB, free: 31.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001065/0.356, allocations: 71.89 kB / 0.5243 GB, free: 31.66 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.684e-05/0.356, allocations: 334.6 kB / 0.5246 GB, free: 31.34 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002146/0.3562, allocations: 119.5 kB / 0.5247 GB, free: 31.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002288/0.3565, allocations: 159 kB / 0.5249 GB, free: 31.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003902/0.3569, allocations: 229.5 kB / 0.5251 GB, free: 31.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.3569, allocations: 4 kB / 0.5251 GB, free: 31.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0007037/0.3576, allocations: 422.3 kB / 0.5255 GB, free: 30.89 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.692e-05/0.3576, allocations: 6 kB / 0.5255 GB, free: 30.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.3576, allocations: 3.938 kB / 0.5255 GB, free: 30.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004592/0.3581, allocations: 175.6 kB / 0.5257 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001995/0.3583, allocations: 47.61 kB / 0.5257 GB, free: 30.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005415/0.3589, allocations: 0.7317 MB / 0.5264 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002361/0.3591, allocations: 36.36 kB / 0.5265 GB, free: 30.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.625e-05/0.3592, allocations: 12.31 kB / 0.5265 GB, free: 30.19 MB / 378.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 (bearingFriction1.free,bearingFriction1.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (30): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,13)} Notification: Performance of prepare postOptimizeDAE: time 0.000126/0.3593, allocations: 161.3 kB / 0.5266 GB, free: 30.04 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.528e-05/0.3593, allocations: 28.31 kB / 0.5267 GB, free: 30.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.21e-05/0.3594, allocations: 32.75 kB / 0.5267 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.507e-06/0.3594, allocations: 3.188 kB / 0.5267 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3594, allocations: 2.75 kB / 0.5267 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3595, allocations: 3.281 kB / 0.5267 GB, free: 30 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001235/0.3607, allocations: 0.9172 MB / 0.5276 GB, free: 29.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.397e-06/0.3607, allocations: 3.062 kB / 0.5276 GB, free: 29.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002108/0.3609, allocations: 57.3 kB / 0.5277 GB, free: 29.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002892/0.3612, allocations: 152.8 kB / 0.5278 GB, free: 29.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.696e-05/0.3613, allocations: 14.88 kB / 0.5278 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004918/0.3618, allocations: 0.6796 MB / 0.5285 GB, free: 28.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3618, allocations: 0 / 0.5285 GB, free: 28.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005485/0.3673, allocations: 4.622 MB / 0.533 GB, free: 25.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001116/0.3674, allocations: 133 kB / 0.5331 GB, free: 25.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.3675, allocations: 11.06 kB / 0.5331 GB, free: 25.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.3677, allocations: 38.72 kB / 0.5332 GB, free: 25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/0.3678, allocations: 44.12 kB / 0.5332 GB, free: 25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.371e-05/0.3679, allocations: 13.23 kB / 0.5332 GB, free: 25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001279/0.368, allocations: 148.6 kB / 0.5334 GB, free: 24.9 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.368, allocations: 0 / 0.5334 GB, free: 24.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005002/0.3685, allocations: 114.4 kB / 0.5335 GB, free: 24.88 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (24): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000971/0.3695, allocations: 462.5 kB / 0.5339 GB, free: 24.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006246/0.3701, allocations: 313.6 kB / 0.5342 GB, free: 24.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.3702, allocations: 0 / 0.5342 GB, free: 24.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002845/0.3704, allocations: 155.4 kB / 0.5344 GB, free: 24.49 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003942/0.3709, allocations: 38.94 kB / 0.5344 GB, free: 24.48 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.3729, allocations: 1.234 MB / 0.5356 GB, free: 23.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001804/0.3731, allocations: 0.7662 MB / 0.5364 GB, free: 22.94 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001033/0.3732, allocations: 30.27 kB / 0.5364 GB, free: 22.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.679e-05/0.3733, allocations: 29.12 kB / 0.5364 GB, free: 22.91 MB / 378.7 MB Notification: Performance of SimCode: time 1.403e-06/0.3733, allocations: 3.938 kB / 0.5364 GB, free: 22.91 MB / 378.7 MB Notification: Performance of Templates: time 0.0106/0.3839, allocations: 6.099 MB / 0.5424 GB, free: 22.41 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.sim & ./ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","../files/ModelicaTest_trunk_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches