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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001959/0.001959, allocations: 120.2 kB / 17.83 MB, free: 5.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002589/0.002589, allocations: 204.7 kB / 20.79 MB, free: 2.297 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.557/1.557, allocations: 207.6 MB / 231.2 MB, free: 4.082 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3442/0.3442, allocations: 44.23 MB / 327.3 MB, free: 6.719 MB / 254.1 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002283/0.002283, allocations: 71.91 kB / 462.9 MB, free: 0.9258 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2456, allocations: 60.99 MB / 0.5116 GB, free: 13.25 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.00289/0.2485, allocations: 2.277 MB / 0.5138 GB, free: 11.46 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.2496, allocations: 0.7677 MB / 0.5146 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001303/0.2498, allocations: 7.969 kB / 0.5146 GB, free: 10.84 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001698/0.2499, allocations: 37.28 kB / 0.5146 GB, free: 10.81 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001215/0.2501, allocations: 72.12 kB / 0.5147 GB, free: 10.75 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003587/0.2504, allocations: 139 kB / 0.5148 GB, free: 10.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002906/0.2507, allocations: 331.2 kB / 0.5152 GB, free: 10.45 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001414/0.2509, allocations: 62.69 kB / 0.5152 GB, free: 10.4 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000176/0.251, allocations: 145.3 kB / 0.5153 GB, free: 10.32 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001877/0.2512, allocations: 157.9 kB / 0.5155 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 4.4e-05/0.2513, allocations: 30.56 kB / 0.5155 GB, free: 10.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001351/0.2514, allocations: 76.47 kB / 0.5156 GB, free: 10.18 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 6.739e-05/0.2515, allocations: 68.78 kB / 0.5157 GB, free: 10.12 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.685e-05/0.2516, allocations: 129.1 kB / 0.5158 GB, free: 10.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003424/0.2519, allocations: 349.5 kB / 0.5161 GB, free: 9.789 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.2519, allocations: 0 / 0.5161 GB, free: 9.789 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.2519, allocations: 0 / 0.5161 GB, free: 9.789 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.2519, allocations: 0 / 0.5161 GB, free: 9.789 MB / 382.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.0008248/0.2527, allocations: 0.5574 MB / 0.5167 GB, free: 9.277 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.2528, allocations: 13.48 kB / 0.5167 GB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.531e-05/0.2528, allocations: 6.125 kB / 0.5167 GB, free: 9.273 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.928e-05/0.2529, allocations: 54.98 kB / 0.5167 GB, free: 9.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.411e-05/0.2529, allocations: 25.17 kB / 0.5168 GB, free: 9.207 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000277/0.2532, allocations: 252.7 kB / 0.517 GB, free: 8.945 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.2532, allocations: 21.06 kB / 0.517 GB, free: 8.93 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.222e-05/0.2533, allocations: 23.45 kB / 0.517 GB, free: 8.922 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000468/0.2537, allocations: 268.9 kB / 0.5173 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.838e-05/0.2538, allocations: 1.375 kB / 0.5173 GB, free: 8.758 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.991e-05/0.2538, allocations: 10.75 kB / 0.5173 GB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.178e-05/0.2538, allocations: 4.125 kB / 0.5173 GB, free: 8.75 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004648/0.2543, allocations: 237.7 kB / 0.5175 GB, free: 8.641 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.2554, allocations: 0.7264 MB / 0.5183 GB, free: 8.043 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004814/0.2559, allocations: 223.2 kB / 0.5185 GB, free: 7.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/0.2561, allocations: 140.8 kB / 0.5186 GB, free: 7.68 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.385e-05/0.2562, allocations: 8.062 kB / 0.5186 GB, free: 7.672 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.363e-05/0.2562, allocations: 34.56 kB / 0.5186 GB, free: 7.629 MB / 382.1 MB Notification: Performance of pre-optimization done (n=25): time 1.984e-06/0.2562, allocations: 0 / 0.5186 GB, free: 7.629 MB / 382.1 MB Notification: Performance of matching and sorting (n=33): time 0.002833/0.259, allocations: 1.458 MB / 0.5201 GB, free: 6.062 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.012e-05/0.259, allocations: 55.41 kB / 0.5201 GB, free: 5.996 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001512/0.2592, allocations: 202.7 kB / 0.5203 GB, free: 5.785 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.868e-05/0.2592, allocations: 33.7 kB / 0.5203 GB, free: 5.746 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.222e-05/0.2593, allocations: 132.9 kB / 0.5205 GB, free: 5.613 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.054e-05/0.2593, allocations: 115 kB / 0.5206 GB, free: 5.5 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001029/0.2594, allocations: 69.69 kB / 0.5206 GB, free: 5.426 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.68e-05/0.2595, allocations: 338.8 kB / 0.521 GB, free: 5.086 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002263/0.2597, allocations: 123.9 kB / 0.5211 GB, free: 4.965 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002329/0.2599, allocations: 174.9 kB / 0.5213 GB, free: 4.781 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003706/0.2603, allocations: 243.3 kB / 0.5215 GB, free: 4.531 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.2603, allocations: 4 kB / 0.5215 GB, free: 4.527 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007165/0.261, allocations: 433.9 kB / 0.5219 GB, free: 4.094 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.261, allocations: 4 kB / 0.5219 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.261, allocations: 0 / 0.5219 GB, free: 4.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004471/0.2615, allocations: 240.7 kB / 0.5221 GB, free: 3.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002207/0.2617, allocations: 55.91 kB / 0.5222 GB, free: 3.797 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005664/0.2623, allocations: 0.7475 MB / 0.5229 GB, free: 3.023 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002708/0.2626, allocations: 35.98 kB / 0.523 GB, free: 2.988 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.727e-05/0.2626, allocations: 12 kB / 0.523 GB, free: 2.977 MB / 382.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.0001325/0.2627, allocations: 159 kB / 0.5231 GB, free: 2.812 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.629e-05/0.2628, allocations: 23.8 kB / 0.5231 GB, free: 2.789 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.436e-05/0.2629, allocations: 30.66 kB / 0.5232 GB, free: 2.758 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.2629, allocations: 4 kB / 0.5232 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2629, allocations: 0 / 0.5232 GB, free: 2.754 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2629, allocations: 3.984 kB / 0.5232 GB, free: 2.75 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001343/0.2642, allocations: 0.9441 MB / 0.5241 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.2642, allocations: 0 / 0.5241 GB, free: 1.734 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000222/0.2644, allocations: 47.91 kB / 0.5241 GB, free: 1.688 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003758/0.2648, allocations: 216.7 kB / 0.5244 GB, free: 1.473 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.71e-05/0.2648, allocations: 7.984 kB / 0.5244 GB, free: 1.465 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004725/0.2653, allocations: 0.7201 MB / 0.5251 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.863e-06/0.2653, allocations: 0 / 0.5251 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009699/0.2663, allocations: 0.6418 MB / 0.5257 GB, free: 56 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001786/0.2665, allocations: 128.9 kB / 0.5258 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.184e-05/0.2665, allocations: 12 kB / 0.5258 GB, free: 15.9 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002858/0.2668, allocations: 39.95 kB / 0.5259 GB, free: 15.86 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.2669, allocations: 47.92 kB / 0.5259 GB, free: 15.81 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.872e-05/0.267, allocations: 12.06 kB / 0.5259 GB, free: 15.8 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001613/0.2671, allocations: 160 kB / 0.5261 GB, free: 15.64 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2671, allocations: 0 / 0.5261 GB, free: 15.64 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000409/0.2675, allocations: 76.09 kB / 0.5261 GB, free: 15.57 MB / 398.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.00173/0.2693, allocations: 1.214 MB / 0.5273 GB, free: 14.32 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008196/0.2701, allocations: 299.8 kB / 0.5276 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.2701, allocations: 0 / 0.5276 GB, free: 14.03 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003752/0.2705, allocations: 156 kB / 0.5278 GB, free: 13.88 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004381/0.2709, allocations: 31.98 kB / 0.5278 GB, free: 13.84 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005533/0.2764, allocations: 3.097 MB / 0.5308 GB, free: 10.63 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004646/0.2769, allocations: 0.7408 MB / 0.5315 GB, free: 9.863 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001457/0.2771, allocations: 30.27 kB / 0.5316 GB, free: 9.832 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.2772, allocations: 71.41 kB / 0.5316 GB, free: 9.762 MB / 398.1 MB Notification: Performance of SimCode: time 6.11e-07/0.2772, allocations: 3.938 kB / 0.5316 GB, free: 9.758 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03012/0.3073, allocations: 7.648 MB / 0.5391 GB, free: 2.105 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.17/13.48, allocations: 8.016 kB / 0.5391 GB, free: 2.098 MB / 398.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.mat --tempDir=temp_ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1_fmu --startTime=0 --stopTime=1.1 --stepSize=0.000219912 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.58120560599491]