Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.000848/0.000848, allocations: 83.62 kB / 21.43 MB, free: 3.133 MB / 18.57 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.004209/0.004209, allocations: 165.6 kB / 24.7 MB, free: 8.887 MB / 18.57 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 0.813/0.813, allocations: 158.6 MB / 186.5 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] 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(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.583e-06/1.583e-06, allocations: 0 / 298.4 MB, free: 3.535 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.182e-05/1.341e-05, allocations: 2.281 kB / 298.4 MB, free: 3.531 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002446/0.00246, allocations: 2.56 MB / 301 MB, free: 0.9492 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1334/0.1358, allocations: 1.086 MB / 302.1 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002657/0.1361, allocations: 8.656 kB / 302.1 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002474/0.1363, allocations: 68.14 kB / 302.1 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005322/0.1369, allocations: 196.2 kB / 302.3 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003656/0.1372, allocations: 257.1 kB / 302.6 MB, free: 13.16 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004175/0.1377, allocations: 0.66 MB / 303.3 MB, free: 13.05 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.1378, allocations: 86.06 kB / 303.3 MB, free: 13.03 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003602/0.1382, allocations: 402.3 kB / 303.7 MB, free: 13 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002858/0.1385, allocations: 297.2 kB / 304 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.389e-05/0.1385, allocations: 51.06 kB / 304.1 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000181/0.1387, allocations: 134.1 kB / 304.2 MB, free: 12.99 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001291/0.1388, allocations: 152.6 kB / 304.3 MB, free: 12.97 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001387/0.139, allocations: 177.6 kB / 304.5 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006019/0.1396, allocations: 0.7048 MB / 305.2 MB, free: 12.73 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.1396, allocations: 0.5625 kB / 305.2 MB, free: 12.73 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1396, allocations: 0 / 305.2 MB, free: 12.73 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.084e-06/0.1396, allocations: 0 / 305.2 MB, free: 12.73 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001012/0.1406, allocations: 0.7313 MB / 306 MB, free: 12.25 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.1406, allocations: 15.52 kB / 306 MB, free: 12.24 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.707e-05/0.1407, allocations: 80.98 kB / 306.1 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/0.1409, allocations: 69.48 kB / 306.1 MB, free: 12.15 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004043/0.1413, allocations: 309.2 kB / 306.4 MB, free: 11.94 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.165e-05/0.1414, allocations: 150.6 kB / 306.6 MB, free: 11.8 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.068e-05/0.1415, allocations: 42.7 kB / 306.6 MB, free: 11.78 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006872/0.1422, allocations: 0.5873 MB / 307.2 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.595e-05/0.1422, allocations: 2.844 kB / 307.2 MB, free: 11.53 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.18e-05/0.1422, allocations: 19.19 kB / 307.2 MB, free: 11.52 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.1422, allocations: 9.062 kB / 307.2 MB, free: 11.52 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008104/0.143, allocations: 0.6275 MB / 307.9 MB, free: 11.36 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.1445, allocations: 1.11 MB / 309 MB, free: 10.81 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007226/0.1452, allocations: 0.5107 MB / 309.5 MB, free: 10.62 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003856/0.1456, allocations: 301.7 kB / 309.8 MB, free: 10.52 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.602e-05/0.1457, allocations: 7.484 kB / 309.8 MB, free: 10.52 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.1457, allocations: 38.38 kB / 309.8 MB, free: 10.47 MB / 282.7 MB Notification: Performance of pre-optimization done (n=61): time 1.804e-06/0.1457, allocations: 0 / 309.8 MB, free: 10.47 MB / 282.7 MB Notification: Performance of matching and sorting (n=69): time 0.004005/0.1497, allocations: 2.563 MB / 312.4 MB, free: 9.445 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.119e-05/0.1497, allocations: 85.67 kB / 312.5 MB, free: 9.352 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002604/0.15, allocations: 337.7 kB / 312.8 MB, free: 9.184 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.647e-05/0.15, allocations: 44.84 kB / 312.8 MB, free: 9.141 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.358e-05/0.1501, allocations: 162.4 kB / 313 MB, free: 9.004 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.434e-05/0.1502, allocations: 237.7 kB / 313.2 MB, free: 8.82 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001269/0.1503, allocations: 117.8 kB / 313.3 MB, free: 8.762 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 4.89e-05/0.1503, allocations: 354.2 kB / 313.7 MB, free: 8.43 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003683/0.1507, allocations: 291.1 kB / 314 MB, free: 8.336 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.1511, allocations: 379.5 kB / 314.3 MB, free: 8.164 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006381/0.1517, allocations: 0.5269 MB / 314.9 MB, free: 7.957 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.704e-06/0.1517, allocations: 0 / 314.9 MB, free: 7.957 MB / 282.7 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001032/0.1528, allocations: 0.8715 MB / 315.7 MB, free: 7.629 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/0.1528, allocations: 5.406 kB / 315.7 MB, free: 7.629 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.1528, allocations: 5.625 kB / 315.8 MB, free: 7.625 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006555/0.1535, allocations: 470.8 kB / 316.2 MB, free: 7.508 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001956/0.1537, allocations: 87.08 kB / 316.3 MB, free: 7.5 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007739/0.1544, allocations: 1.084 MB / 317.4 MB, free: 6.754 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000223/0.1546, allocations: 61.08 kB / 317.4 MB, free: 6.742 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.985e-05/0.1547, allocations: 22.39 kB / 317.5 MB, free: 6.738 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 45 * 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 {(2,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0001364/0.1548, allocations: 171.4 kB / 317.6 MB, free: 6.594 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.351e-05/0.1549, allocations: 47.94 kB / 317.7 MB, free: 6.566 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.836e-05/0.1549, allocations: 67.06 kB / 317.7 MB, free: 6.508 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.45e-06/0.155, allocations: 19.02 kB / 317.8 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.155, allocations: 0 / 317.8 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.963e-06/0.155, allocations: 3.375 kB / 317.8 MB, free: 6.5 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001871/0.1568, allocations: 1.624 MB / 319.4 MB, free: 5.727 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.1568, allocations: 0 / 319.4 MB, free: 5.727 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000187/0.157, allocations: 75.09 kB / 319.5 MB, free: 5.723 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005232/0.1575, allocations: 448.7 kB / 319.9 MB, free: 5.598 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.382e-05/0.1576, allocations: 23.69 kB / 319.9 MB, free: 5.586 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00066/0.1582, allocations: 1.043 MB / 321 MB, free: 4.855 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-06/0.1582, allocations: 3.25 kB / 321 MB, free: 4.855 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00143/0.1597, allocations: 1.299 MB / 322.3 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001385/0.1598, allocations: 105.4 kB / 322.4 MB, free: 4.176 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.023e-05/0.1599, allocations: 17.53 kB / 322.4 MB, free: 4.164 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.1601, allocations: 50.16 kB / 322.4 MB, free: 4.141 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001145/0.1602, allocations: 86.67 kB / 322.5 MB, free: 4.082 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-05/0.1602, allocations: 27.03 kB / 322.5 MB, free: 4.07 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000151/0.1604, allocations: 253.1 kB / 322.8 MB, free: 3.91 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1604, allocations: 3.938 kB / 322.8 MB, free: 3.906 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0003188/0.1607, allocations: 146.8 kB / 322.9 MB, free: 3.883 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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 {(2,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.00153/0.1622, allocations: 1.881 MB / 324.8 MB, free: 2.637 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0008756/0.1631, allocations: 0.6678 MB / 325.5 MB, free: 2.352 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.704e-06/0.1631, allocations: 0 / 325.5 MB, free: 2.352 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004476/0.1635, allocations: 364.6 kB / 325.8 MB, free: 2.199 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003172/0.1638, allocations: 51.92 kB / 325.9 MB, free: 2.164 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004728/0.1686, allocations: 4.946 MB / 330.8 MB, free: 13.4 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00013/0.1687, allocations: 214 kB / 331.1 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001319/0.1688, allocations: 66.77 kB / 331.1 MB, free: 13.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001518/0.169, allocations: 136.4 kB / 331.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of SimCode: time 8.62e-07/0.169, allocations: 0 / 331.2 MB, free: 12.98 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.024/0.193, allocations: 13.1 MB / 344.3 MB, free: 15.83 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.013/8.206, allocations: 3.938 kB / 344.3 MB, free: 15.83 MB / 314.7 MB " [Timeout remaining time 652] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv --start-time 0 --stop-time 0.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable bearingFriction.mode in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w [Calling sys.exit(0), Time elapsed: 9.819695869460702]