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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 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 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 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=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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001228/0.001228, allocations: 103.9 kB / 16.94 MB, free: 6.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 191.6 kB / 17.86 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.488/1.488, allocations: 205.1 MB / 223.7 MB, free: 12.3 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2065/0.2065, allocations: 43.52 MB / 314.6 MB, free: 0.5234 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001668/0.001668, allocations: 71.14 kB / 383.4 MB, free: 56.76 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1037/0.1054, allocations: 57.8 MB / 441.2 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003009/0.1084, allocations: 2.225 MB / 443.4 MB, free: 4.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001039/0.1095, allocations: 0.7799 MB / 444.2 MB, free: 3.875 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.1096, allocations: 4 kB / 444.2 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001914/0.1098, allocations: 39.59 kB / 444.2 MB, free: 3.832 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001104/0.1099, allocations: 75.39 kB / 444.3 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.1103, allocations: 131.8 kB / 444.4 MB, free: 3.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002338/0.1105, allocations: 327.3 kB / 444.8 MB, free: 3.309 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001634/0.1107, allocations: 86.25 kB / 444.8 MB, free: 3.223 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001531/0.1109, allocations: 143.5 kB / 445 MB, free: 3.082 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001717/0.1111, allocations: 163.3 kB / 445.1 MB, free: 2.922 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.239e-05/0.1111, allocations: 24 kB / 445.2 MB, free: 2.898 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001318/0.1112, allocations: 71.95 kB / 445.2 MB, free: 2.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.342e-05/0.1113, allocations: 71.75 kB / 445.3 MB, free: 2.758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001195/0.1115, allocations: 123.4 kB / 445.4 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003299/0.1118, allocations: 346.8 kB / 445.8 MB, free: 2.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.1118, allocations: 0 / 445.8 MB, free: 2.297 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1118, allocations: 3.938 kB / 445.8 MB, free: 2.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.902e-06/0.1118, allocations: 0 / 445.8 MB, free: 2.293 MB / 318.1 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.0008422/0.1127, allocations: 0.5498 MB / 446.3 MB, free: 1.695 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.724e-05/0.1127, allocations: 11.89 kB / 446.3 MB, free: 1.684 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.356e-05/0.1128, allocations: 24.66 kB / 446.4 MB, free: 1.66 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.113, allocations: 240.8 kB / 446.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.971e-05/0.1131, allocations: 16.81 kB / 446.6 MB, free: 1.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.289e-05/0.1131, allocations: 32.27 kB / 446.6 MB, free: 1.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004174/0.1136, allocations: 271.4 kB / 446.9 MB, free: 1.07 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.1136, allocations: 4 kB / 446.9 MB, free: 1.066 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.1136, allocations: 4 kB / 446.9 MB, free: 1.062 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.302e-06/0.1136, allocations: 4 kB / 446.9 MB, free: 1.059 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003962/0.114, allocations: 237.6 kB / 447.1 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00106/0.1151, allocations: 0.7246 MB / 447.9 MB, free: 52 kB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005343/0.1156, allocations: 246.4 kB / 448.1 MB, free: 15.8 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002678/0.1159, allocations: 136.8 kB / 448.2 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.216e-05/0.116, allocations: 8.062 kB / 448.3 MB, free: 15.66 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.116, allocations: 42.48 kB / 448.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 1.373e-06/0.116, allocations: 0 / 448.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.003079/0.1191, allocations: 1.448 MB / 449.7 MB, free: 14.05 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.565e-05/0.1191, allocations: 59.34 kB / 449.8 MB, free: 13.98 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002157/0.1194, allocations: 202.3 kB / 450 MB, free: 13.77 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.1194, allocations: 37.7 kB / 450 MB, free: 13.72 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.489e-05/0.1195, allocations: 140.6 kB / 450.2 MB, free: 13.58 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.762e-05/0.1196, allocations: 110.4 kB / 450.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001196/0.1197, allocations: 65.69 kB / 450.3 MB, free: 13.4 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001353/0.1199, allocations: 330.8 kB / 450.7 MB, free: 13.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002519/0.1201, allocations: 127.7 kB / 450.8 MB, free: 12.95 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002592/0.1204, allocations: 167.3 kB / 451 MB, free: 12.77 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004261/0.1208, allocations: 259.2 kB / 451.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1209, allocations: 0 / 451.2 MB, free: 12.5 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007618/0.1216, allocations: 437.7 kB / 451.6 MB, free: 12.07 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.1217, allocations: 8.062 kB / 451.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.1217, allocations: 0 / 451.6 MB, free: 12.06 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005532/0.1222, allocations: 232.7 kB / 451.9 MB, free: 11.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.1225, allocations: 59.84 kB / 451.9 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007309/0.1232, allocations: 0.7552 MB / 452.7 MB, free: 10.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.1235, allocations: 36.06 kB / 452.7 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.206e-05/0.1235, allocations: 15.98 kB / 452.7 MB, free: 10.94 MB / 334.1 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,12)} Notification: Performance of prepare postOptimizeDAE: time 0.0001649/0.1237, allocations: 146.2 kB / 452.9 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.883e-05/0.1237, allocations: 19.72 kB / 452.9 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.993e-05/0.1239, allocations: 42.58 kB / 452.9 MB, free: 10.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.1239, allocations: 4 kB / 452.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.1239, allocations: 4 kB / 452.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.408e-06/0.1239, allocations: 0 / 452.9 MB, free: 10.72 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001537/0.1254, allocations: 0.9519 MB / 453.9 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.438e-06/0.1254, allocations: 0 / 453.9 MB, free: 9.699 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002197/0.1257, allocations: 51.91 kB / 453.9 MB, free: 9.648 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003952/0.1261, allocations: 220.6 kB / 454.2 MB, free: 9.43 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.619e-05/0.1261, allocations: 11.98 kB / 454.2 MB, free: 9.418 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006251/0.1267, allocations: 0.7124 MB / 454.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.1268, allocations: 0 / 454.9 MB, free: 8.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001093/0.1279, allocations: 0.6334 MB / 455.5 MB, free: 8.023 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.128, allocations: 128.8 kB / 455.6 MB, free: 7.879 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.576e-05/0.1281, allocations: 15.94 kB / 455.7 MB, free: 7.863 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002595/0.1283, allocations: 35.95 kB / 455.7 MB, free: 7.828 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.1284, allocations: 47.97 kB / 455.7 MB, free: 7.781 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.808e-05/0.1285, allocations: 19.98 kB / 455.8 MB, free: 7.762 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001382/0.1286, allocations: 144.2 kB / 455.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.1286, allocations: 4.062 kB / 455.9 MB, free: 7.617 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003697/0.129, allocations: 84 kB / 456 MB, free: 7.535 MB / 334.1 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.0001879/0.1292, allocations: 115 kB / 456.1 MB, free: 7.418 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0007753/0.13, allocations: 335.6 kB / 456.4 MB, free: 7.09 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.13, allocations: 0 / 456.4 MB, free: 7.09 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000326/0.1303, allocations: 168.2 kB / 456.6 MB, free: 6.926 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003979/0.1307, allocations: 36.02 kB / 456.6 MB, free: 6.891 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001919/0.1327, allocations: 0.7869 MB / 457.4 MB, free: 6.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003862/0.1331, allocations: 0.7524 MB / 458.2 MB, free: 5.293 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.538e-05/0.1331, allocations: 23.44 kB / 458.2 MB, free: 5.27 MB / 334.1 MB Notification: Performance of SimCode: time 3.7e-07/0.1332, allocations: 0 / 458.2 MB, free: 5.27 MB / 334.1 MB Notification: Performance of Templates: time 0.007089/0.1403, allocations: 4.079 MB / 462.3 MB, free: 1.188 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Rotational/ForUsersGuide/SupportTorque1/SupportTorque1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches