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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001206/0.001206, allocations: 77.36 kB / 10 MB, free: 0.6797 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0018/0.003006, allocations: 445.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001079/0.001079, allocations: 148.9 kB / 11.34 MB, free: 2.832 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001604/0.002683, allocations: 475.6 kB / 11.8 MB, free: 2.363 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9372/0.9372, allocations: 173.4 MB / 185.9 MB, free: 8.91 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0843/1.022, allocations: 52.5 MB / 238.4 MB, free: 4.355 MB / 234.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1472/0.1472, allocations: 32.8 MB / 272 MB, free: 2.961 MB / 266.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1335/0.2807, allocations: 12.54 MB / 284.5 MB, free: 11.88 MB / 282.7 MB " [Timeout remaining time 180] 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 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5002,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=5002,variableFilter="time|inertia4.phi|inertia4.w|bearingFriction1.mode|bearingFriction1.startBackward|bearingFriction1.startForward",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 285.8 MB, free: 10.86 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.41e-05/2.619e-05, allocations: 8.484 kB / 285.8 MB, free: 10.85 MB / 282.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.004488/0.004514, allocations: 2.308 MB / 288.1 MB, free: 9.023 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001651/0.006165, allocations: 0.7255 MB / 288.9 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001688/0.006334, allocations: 4.469 kB / 288.9 MB, free: 8.449 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.006507, allocations: 44.06 kB / 288.9 MB, free: 8.41 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002048/0.006712, allocations: 81.52 kB / 289 MB, free: 8.34 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004697/0.007182, allocations: 126.9 kB / 289.1 MB, free: 8.238 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004578/0.007639, allocations: 339.3 kB / 289.4 MB, free: 8.043 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001693/0.007809, allocations: 60.5 kB / 289.5 MB, free: 8.004 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004214/0.00823, allocations: 219.2 kB / 289.7 MB, free: 7.867 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002812/0.008511, allocations: 119.8 kB / 289.8 MB, free: 7.801 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.591e-05/0.008577, allocations: 26.88 kB / 289.9 MB, free: 7.801 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002387/0.008816, allocations: 86.31 kB / 289.9 MB, free: 7.77 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.49e-05/0.008901, allocations: 46.28 kB / 290 MB, free: 7.758 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001136/0.009015, allocations: 71.19 kB / 290.1 MB, free: 7.75 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004263/0.009441, allocations: 234 kB / 290.3 MB, free: 7.633 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.264e-05/0.009453, allocations: 0 / 290.3 MB, free: 7.633 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.009455, allocations: 0 / 290.3 MB, free: 7.633 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.379e-05/0.009469, allocations: 1.406 kB / 290.3 MB, free: 7.633 MB / 282.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.0009131/0.01038, allocations: 0.5082 MB / 290.8 MB, free: 7.234 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.597e-05/0.01043, allocations: 13.48 kB / 290.8 MB, free: 7.23 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.797e-05/0.01053, allocations: 29.55 kB / 290.8 MB, free: 7.223 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.01083, allocations: 164.9 kB / 291 MB, free: 7.062 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.218e-05/0.01086, allocations: 17.12 kB / 291 MB, free: 7.055 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.685e-05/0.01091, allocations: 27.47 kB / 291 MB, free: 7.043 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003918/0.01131, allocations: 200.9 kB / 291.2 MB, free: 6.91 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.822e-05/0.01132, allocations: 5.516 kB / 291.2 MB, free: 6.906 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.086e-05/0.01136, allocations: 13.75 kB / 291.3 MB, free: 6.895 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.01137, allocations: 13.44 kB / 291.3 MB, free: 6.887 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002237/0.01159, allocations: 97.55 kB / 291.4 MB, free: 6.863 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009977/0.01259, allocations: 433.7 kB / 291.8 MB, free: 6.574 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00037/0.01296, allocations: 165.7 kB / 292 MB, free: 6.496 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001376/0.0131, allocations: 71.23 kB / 292 MB, free: 6.469 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.01312, allocations: 3.5 kB / 292 MB, free: 6.469 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.01315, allocations: 36.97 kB / 292.1 MB, free: 6.426 MB / 282.7 MB Notification: Performance of pre-optimization done (n=25): time 1.783e-06/0.01316, allocations: 0 / 292.1 MB, free: 6.426 MB / 282.7 MB Notification: Performance of matching and sorting (n=33): time 0.002445/0.0156, allocations: 1.017 MB / 293.1 MB, free: 5.773 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.01564, allocations: 58.83 kB / 293.1 MB, free: 5.707 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.01578, allocations: 162.5 kB / 293.3 MB, free: 5.57 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.692e-05/0.01582, allocations: 36.73 kB / 293.3 MB, free: 5.531 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.16e-05/0.0159, allocations: 138.5 kB / 293.5 MB, free: 5.398 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.821e-05/0.016, allocations: 123 kB / 293.6 MB, free: 5.277 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001086/0.01611, allocations: 69.61 kB / 293.7 MB, free: 5.203 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001043/0.01621, allocations: 330.8 kB / 294 MB, free: 4.871 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.01634, allocations: 47.97 kB / 294 MB, free: 4.824 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.01648, allocations: 96.19 kB / 294.1 MB, free: 4.719 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002386/0.01671, allocations: 163.1 kB / 294.3 MB, free: 4.547 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.093e-06/0.01672, allocations: 0 / 294.3 MB, free: 4.547 MB / 282.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0004317/0.01715, allocations: 238 kB / 294.5 MB, free: 4.305 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.967e-05/0.01717, allocations: 8 kB / 294.5 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.01717, allocations: 0 / 294.5 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003997/0.01757, allocations: 190.2 kB / 294.7 MB, free: 4.109 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000247/0.01782, allocations: 59.91 kB / 294.8 MB, free: 4.051 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005027/0.01832, allocations: 0.6226 MB / 295.4 MB, free: 3.402 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001703/0.01849, allocations: 31.97 kB / 295.4 MB, free: 3.371 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.513e-05/0.01852, allocations: 16.03 kB / 295.4 MB, free: 3.355 MB / 282.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.mode,$PRE.bearingFriction1.mode,bearingFriction1.locked,bearingFriction1.startBackward,$PRE.bearingFriction1.startBackward,bearingFriction1.startForward,$PRE.bearingFriction1.startForward,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): 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001136/0.01863, allocations: 129.9 kB / 295.6 MB, free: 3.219 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.855e-05/0.01869, allocations: 23.98 kB / 295.6 MB, free: 3.195 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.444e-05/0.01876, allocations: 34.64 kB / 295.6 MB, free: 3.156 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.571e-06/0.01876, allocations: 4 kB / 295.6 MB, free: 3.152 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.647e-06/0.01876, allocations: 0 / 295.6 MB, free: 3.152 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.01877, allocations: 3.938 kB / 295.6 MB, free: 3.148 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001031/0.0198, allocations: 0.5701 MB / 296.2 MB, free: 2.539 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.0198, allocations: 3.938 kB / 296.2 MB, free: 2.535 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002355/0.02004, allocations: 59.97 kB / 296.3 MB, free: 2.477 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.525e-05/0.02013, allocations: 35.77 kB / 296.3 MB, free: 2.441 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003272/0.02046, allocations: 176.6 kB / 296.5 MB, free: 2.266 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.385e-05/0.02049, allocations: 8 kB / 296.5 MB, free: 2.258 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004427/0.02093, allocations: 0.607 MB / 297.1 MB, free: 1.625 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.02093, allocations: 3.938 kB / 297.1 MB, free: 1.621 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000531/0.02146, allocations: 401.8 kB / 297.5 MB, free: 1.207 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.869e-05/0.02149, allocations: 8 kB / 297.5 MB, free: 1.199 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.669e-05/0.02159, allocations: 23.97 kB / 297.5 MB, free: 1.176 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.816e-05/0.02167, allocations: 47.97 kB / 297.6 MB, free: 1.129 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.02168, allocations: 11.98 kB / 297.6 MB, free: 1.117 MB / 282.7 MB Notification: Performance of sorting global known variables: time 3.837e-05/0.02172, allocations: 44.81 kB / 297.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02172, allocations: 0 / 297.6 MB, free: 1.07 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002208/0.02194, allocations: 79.94 kB / 297.7 MB, free: 0.9922 MB / 282.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,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001667/0.02211, allocations: 108.8 kB / 297.8 MB, free: 0.8789 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0002985/0.0224, allocations: 200.7 kB / 298 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.295e-05/0.02242, allocations: 8.188 kB / 298 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.02255, allocations: 120.7 kB / 298.1 MB, free: 0.5508 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00027/0.02282, allocations: 226.8 kB / 298.3 MB, free: 300 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003103/0.02593, allocations: 0.601 MB / 298.9 MB, free: 15.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.273e-05/0.02598, allocations: 89.05 kB / 299 MB, free: 15.56 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.168e-05/0.02604, allocations: 22.28 kB / 299 MB, free: 15.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.554e-05/0.02614, allocations: 79.36 kB / 299.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of SimCode: time 9.42e-07/0.02614, allocations: 0 / 299.1 MB, free: 15.46 MB / 298.7 MB Notification: Performance of Templates: time 0.006535/0.03267, allocations: 4.748 MB / 303.9 MB, free: 10.77 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.makefile [Timeout 660] (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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.9572351342067122]