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: "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1,fileNamePrefix="ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001971/0.001971, allocations: 108.9 kB / 16.27 MB, free: 5.93 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.002202/0.002203, allocations: 191.4 kB / 17.2 MB, free: 5.574 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.478/1.478, allocations: 205.1 MB / 223.1 MB, free: 12.29 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.2101/0.2101, allocations: 43.52 MB / 313.9 MB, free: 0.5273 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.001485/0.001485, allocations: 66.78 kB / 382.8 MB, free: 56.73 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1244/0.1259, allocations: 57.78 MB / 440.6 MB, free: 6.805 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Rotational.ForUsersGuide.SupportTorque1): time 0.003399/0.1293, allocations: 2.243 MB / 442.9 MB, free: 4.539 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.1306, allocations: 0.7721 MB / 443.6 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.1308, allocations: 4 kB / 443.6 MB, free: 3.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002252/0.131, allocations: 35.59 kB / 443.7 MB, free: 3.719 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.1311, allocations: 75.39 kB / 443.7 MB, free: 3.645 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004292/0.1316, allocations: 131.8 kB / 443.9 MB, free: 3.516 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002692/0.1318, allocations: 327.3 kB / 444.2 MB, free: 3.195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001779/0.132, allocations: 96.77 kB / 444.3 MB, free: 3.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/0.1322, allocations: 139.5 kB / 444.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.1324, allocations: 163.4 kB / 444.6 MB, free: 2.801 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.777e-05/0.1324, allocations: 28 kB / 444.6 MB, free: 2.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001293/0.1326, allocations: 71.95 kB / 444.7 MB, free: 2.703 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.922e-05/0.1327, allocations: 67.73 kB / 444.7 MB, free: 2.637 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001002/0.1328, allocations: 127.4 kB / 444.9 MB, free: 2.512 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003068/0.1331, allocations: 338.9 kB / 445.2 MB, free: 2.18 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.548e-06/0.1331, allocations: 0 / 445.2 MB, free: 2.18 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1331, allocations: 0 / 445.2 MB, free: 2.18 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.151e-06/0.1331, allocations: 0 / 445.2 MB, free: 2.18 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.0008249/0.1339, allocations: 0.5536 MB / 445.8 MB, free: 1.578 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.134, allocations: 11.89 kB / 445.8 MB, free: 1.566 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.148e-05/0.134, allocations: 58.73 kB / 445.8 MB, free: 1.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.947e-05/0.1341, allocations: 28.64 kB / 445.8 MB, free: 1.473 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002255/0.1343, allocations: 240.8 kB / 446.1 MB, free: 1.199 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.936e-05/0.1344, allocations: 16.81 kB / 446.1 MB, free: 1.184 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.014e-05/0.1344, allocations: 28.28 kB / 446.1 MB, free: 1.156 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004319/0.1349, allocations: 271.2 kB / 446.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.77e-05/0.1349, allocations: 4 kB / 446.4 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.778e-05/0.1349, allocations: 8 kB / 446.4 MB, free: 0.875 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.744e-06/0.1349, allocations: 8 kB / 446.4 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003928/0.1353, allocations: 229.6 kB / 446.6 MB, free: 0.6445 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001153/0.1365, allocations: 0.7324 MB / 447.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006224/0.1371, allocations: 246.4 kB / 447.6 MB, free: 15.61 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/0.1374, allocations: 140.7 kB / 447.7 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.254e-05/0.1375, allocations: 0 / 447.7 MB, free: 15.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.1375, allocations: 42.5 kB / 447.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of pre-optimization done (n=25): time 2.444e-06/0.1375, allocations: 0 / 447.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=33): time 0.0032/0.1407, allocations: 1.448 MB / 449.2 MB, free: 13.86 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000107/0.1408, allocations: 55.41 kB / 449.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002038/0.141, allocations: 202.3 kB / 449.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 9.401e-05/0.1412, allocations: 41.7 kB / 449.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.113e-05/0.1413, allocations: 132.6 kB / 449.7 MB, free: 13.4 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.1414, allocations: 110.4 kB / 449.8 MB, free: 13.29 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001162/0.1415, allocations: 73.62 kB / 449.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.1417, allocations: 334.8 kB / 450.2 MB, free: 12.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002508/0.142, allocations: 123.7 kB / 450.3 MB, free: 12.76 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002734/0.1422, allocations: 171.3 kB / 450.5 MB, free: 12.58 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004262/0.1427, allocations: 243.4 kB / 450.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1427, allocations: 3.938 kB / 450.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000769/0.1435, allocations: 437.7 kB / 451.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/0.1435, allocations: 8.938 kB / 451.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.1435, allocations: 0 / 451.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005708/0.1441, allocations: 240.7 kB / 451.4 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002298/0.1443, allocations: 51.91 kB / 451.4 MB, free: 11.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000799/0.1451, allocations: 0.7553 MB / 452.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002605/0.1454, allocations: 35.95 kB / 452.2 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.763e-05/0.1454, allocations: 8 kB / 452.2 MB, free: 10.77 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.0001722/0.1456, allocations: 155.7 kB / 452.4 MB, free: 10.61 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.772e-05/0.1457, allocations: 23.66 kB / 452.4 MB, free: 10.58 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001928/0.1459, allocations: 38.66 kB / 452.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.766e-06/0.1459, allocations: 64 / 452.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.1459, allocations: 4 kB / 452.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.161e-06/0.1459, allocations: 7.984 kB / 452.4 MB, free: 10.54 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001774/0.1477, allocations: 0.9557 MB / 453.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.1477, allocations: 0 / 453.4 MB, free: 9.512 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002429/0.148, allocations: 39.98 kB / 453.4 MB, free: 9.473 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004603/0.1485, allocations: 224.7 kB / 453.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.1485, allocations: 15.98 kB / 453.7 MB, free: 9.234 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007857/0.1493, allocations: 0.7162 MB / 454.4 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.993e-06/0.1493, allocations: 0 / 454.4 MB, free: 8.492 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00147/0.1508, allocations: 0.6334 MB / 455 MB, free: 7.836 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002187/0.151, allocations: 120.9 kB / 455.1 MB, free: 7.699 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.243e-05/0.1511, allocations: 15.94 kB / 455.2 MB, free: 7.684 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002656/0.1514, allocations: 39.95 kB / 455.2 MB, free: 7.645 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.1515, allocations: 51.84 kB / 455.2 MB, free: 7.594 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.242e-05/0.1515, allocations: 8.094 kB / 455.2 MB, free: 7.586 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003329/0.1519, allocations: 156.2 kB / 455.4 MB, free: 7.434 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1519, allocations: 0 / 455.4 MB, free: 7.434 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000426/0.1523, allocations: 83.98 kB / 455.5 MB, free: 7.352 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.001722/0.154, allocations: 1.195 MB / 456.7 MB, free: 6.125 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008119/0.1549, allocations: 331.6 kB / 457 MB, free: 5.801 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.1549, allocations: 4 kB / 457 MB, free: 5.797 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003508/0.1552, allocations: 156.1 kB / 457.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004301/0.1557, allocations: 39.97 kB / 457.2 MB, free: 5.605 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005786/0.1615, allocations: 3.106 MB / 460.3 MB, free: 2.395 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004872/0.162, allocations: 0.7486 MB / 461.1 MB, free: 1.621 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001195/0.1622, allocations: 22.28 kB / 461.1 MB, free: 1.602 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.1623, allocations: 67.42 kB / 461.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of SimCode: time 3.967e-06/0.1623, allocations: 0 / 461.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03232/0.1946, allocations: 7.452 MB / 468.6 MB, free: 10.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.42/11.61, allocations: 8 kB / 468.6 MB, free: 10.1 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv --start-time 0 --stop-time 1.1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00044 ModelicaTest_3_2_3_ModelicaTest_Rotational_ForUsersGuide_SupportTorque1.fmu > ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Rotational.ForUsersGuide.SupportTorque1_res.csv","/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