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.001465/0.001465, allocations: 109 kB / 20.48 MB, free: 1.477 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.001786/0.001786, allocations: 208.8 kB / 23.78 MB, free: 4.688 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.565/1.565, allocations: 207.6 MB / 234.5 MB, free: 9.988 MB / 190.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.2383/0.2383, allocations: 44.25 MB / 331.1 MB, free: 9.512 MB / 270.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.002349/0.002349, allocations: 71.91 kB / 468.3 MB, free: 4.516 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1173, allocations: 61.03 MB / 0.5169 GB, free: 7.355 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003756/0.1211, allocations: 2.279 MB / 0.5191 GB, free: 5.059 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001475/0.1226, allocations: 0.7761 MB / 0.5199 GB, free: 4.273 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.1227, allocations: 4 kB / 0.5199 GB, free: 4.27 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001911/0.1229, allocations: 51.52 kB / 0.5199 GB, free: 4.219 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000159/0.1231, allocations: 71.41 kB / 0.52 GB, free: 4.148 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004198/0.1235, allocations: 131.8 kB / 0.5201 GB, free: 4.02 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004143/0.1239, allocations: 335.3 kB / 0.5204 GB, free: 3.691 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.1241, allocations: 65 kB / 0.5205 GB, free: 3.625 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002396/0.1243, allocations: 147.5 kB / 0.5206 GB, free: 3.48 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002545/0.1245, allocations: 155.4 kB / 0.5208 GB, free: 3.328 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 5.347e-05/0.1246, allocations: 28 kB / 0.5208 GB, free: 3.301 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001555/0.1248, allocations: 79.94 kB / 0.5209 GB, free: 3.223 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.768e-05/0.1249, allocations: 75.75 kB / 0.521 GB, free: 3.148 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001402/0.125, allocations: 127.4 kB / 0.5211 GB, free: 3.023 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004727/0.1255, allocations: 346.7 kB / 0.5214 GB, free: 2.684 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1255, allocations: 0 / 0.5214 GB, free: 2.684 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1255, allocations: 0 / 0.5214 GB, free: 2.684 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.213e-05/0.1255, allocations: 0 / 0.5214 GB, free: 2.684 MB / 398.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.0009728/0.1265, allocations: 493.5 kB / 0.5219 GB, free: 2.172 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.889e-05/0.1265, allocations: 12.03 kB / 0.5219 GB, free: 2.16 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.612e-05/0.1265, allocations: 4.625 kB / 0.5219 GB, free: 2.156 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.279e-05/0.1266, allocations: 54.73 kB / 0.522 GB, free: 2.094 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.814e-05/0.1267, allocations: 24.8 kB / 0.522 GB, free: 2.07 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003558/0.127, allocations: 194.1 kB / 0.5222 GB, free: 1.855 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.4e-05/0.127, allocations: 16.81 kB / 0.5222 GB, free: 1.836 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.02e-05/0.1271, allocations: 36.27 kB / 0.5222 GB, free: 1.801 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006062/0.1277, allocations: 263.1 kB / 0.5225 GB, free: 1.539 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.84e-05/0.1277, allocations: 3.984 kB / 0.5225 GB, free: 1.535 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.029e-05/0.1278, allocations: 8 kB / 0.5225 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.362e-05/0.1278, allocations: 8 kB / 0.5225 GB, free: 1.52 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005321/0.1283, allocations: 237.6 kB / 0.5227 GB, free: 1.285 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001448/0.1298, allocations: 0.6848 MB / 0.5234 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005719/0.1303, allocations: 230.4 kB / 0.5236 GB, free: 332 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000275/0.1306, allocations: 132.7 kB / 0.5237 GB, free: 196 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.892e-05/0.1306, allocations: 4 kB / 0.5237 GB, free: 192 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.1307, allocations: 38.56 kB / 0.5238 GB, free: 144 kB / 398.1 MB Notification: Performance of pre-optimization done (n=25): time 1.553e-06/0.1307, allocations: 0 / 0.5238 GB, free: 144 kB / 398.1 MB Notification: Performance of matching and sorting (n=33): time 0.003287/0.1339, allocations: 1.228 MB / 0.525 GB, free: 14.86 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.134, allocations: 55.41 kB / 0.525 GB, free: 14.79 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.1342, allocations: 206.5 kB / 0.5252 GB, free: 14.58 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 4.361e-05/0.1343, allocations: 37.64 kB / 0.5253 GB, free: 14.54 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.1344, allocations: 132.8 kB / 0.5254 GB, free: 14.4 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.1345, allocations: 115 kB / 0.5255 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001347/0.1346, allocations: 69.69 kB / 0.5256 GB, free: 14.21 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.1348, allocations: 338.8 kB / 0.5259 GB, free: 13.88 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002752/0.135, allocations: 123.9 kB / 0.526 GB, free: 13.75 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003002/0.1353, allocations: 167.2 kB / 0.5262 GB, free: 13.58 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004766/0.1358, allocations: 251.2 kB / 0.5264 GB, free: 13.32 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1358, allocations: 4 kB / 0.5264 GB, free: 13.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008623/0.1367, allocations: 425.9 kB / 0.5268 GB, free: 12.89 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1367, allocations: 4 kB / 0.5268 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.052e-06/0.1367, allocations: 0 / 0.5268 GB, free: 12.89 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005604/0.1373, allocations: 240.7 kB / 0.527 GB, free: 12.65 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002444/0.1375, allocations: 51.97 kB / 0.5271 GB, free: 12.6 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008915/0.1384, allocations: 0.7553 MB / 0.5278 GB, free: 11.82 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003208/0.1387, allocations: 35.95 kB / 0.5279 GB, free: 11.78 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.047e-05/0.1388, allocations: 12 kB / 0.5279 GB, free: 11.77 MB / 414.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.0001987/0.139, allocations: 158.1 kB / 0.528 GB, free: 11.61 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7e-05/0.139, allocations: 27.8 kB / 0.5281 GB, free: 11.58 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.345e-05/0.1391, allocations: 34.66 kB / 0.5281 GB, free: 11.55 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.1391, allocations: 7.938 kB / 0.5281 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.1391, allocations: 0 / 0.5281 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.1391, allocations: 3.984 kB / 0.5281 GB, free: 11.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001862/0.141, allocations: 0.9042 MB / 0.529 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.246e-06/0.141, allocations: 0 / 0.529 GB, free: 10.57 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002563/0.1413, allocations: 51.91 kB / 0.529 GB, free: 10.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004547/0.1417, allocations: 212.7 kB / 0.5292 GB, free: 10.3 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-05/0.1418, allocations: 15.98 kB / 0.5292 GB, free: 10.29 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007722/0.1425, allocations: 0.7123 MB / 0.5299 GB, free: 9.551 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.1425, allocations: 0 / 0.5299 GB, free: 9.551 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00133/0.1439, allocations: 0.6422 MB / 0.5306 GB, free: 8.887 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001647/0.144, allocations: 59.81 kB / 0.5306 GB, free: 8.828 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.873e-05/0.1441, allocations: 11.94 kB / 0.5306 GB, free: 8.816 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002736/0.1444, allocations: 31.95 kB / 0.5307 GB, free: 8.785 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001425/0.1445, allocations: 51.89 kB / 0.5307 GB, free: 8.734 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.244e-05/0.1445, allocations: 15.98 kB / 0.5307 GB, free: 8.719 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001787/0.1447, allocations: 152 kB / 0.5309 GB, free: 8.57 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1447, allocations: 4.062 kB / 0.5309 GB, free: 8.566 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0004398/0.1452, allocations: 72 kB / 0.531 GB, free: 8.496 MB / 414.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.001856/0.147, allocations: 1.198 MB / 0.5321 GB, free: 7.266 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0008451/0.1479, allocations: 303.8 kB / 0.5324 GB, free: 6.969 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.1479, allocations: 0 / 0.5324 GB, free: 6.969 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003686/0.1482, allocations: 151.8 kB / 0.5326 GB, free: 6.82 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004602/0.1487, allocations: 40.16 kB / 0.5326 GB, free: 6.781 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005906/0.1546, allocations: 3.106 MB / 0.5356 GB, free: 3.555 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004454/0.155, allocations: 0.7447 MB / 0.5364 GB, free: 2.785 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000117/0.1552, allocations: 22.3 kB / 0.5364 GB, free: 2.762 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001331/0.1553, allocations: 75.41 kB / 0.5364 GB, free: 2.688 MB / 414.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1553, allocations: 0 / 0.5364 GB, free: 2.688 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2341/0.3894, allocations: 7.932 MB / 0.5442 GB, free: 28.61 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.54/13.93, allocations: 9.734 kB / 0.5442 GB, free: 28.61 MB / 414.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: 17.18618409096962]