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.001976/0.001976, allocations: 116.9 kB / 18.45 MB, free: 4.609 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.002281/0.002281, allocations: 216.3 kB / 21.41 MB, free: 1.648 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.467/1.467, allocations: 207.6 MB / 231.8 MB, free: 4.098 MB / 174.1 MB " [Timeout remaining time 178] 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: 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.001774/0.001774, allocations: 56.55 kB / 342.3 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09431/0.09608, allocations: 49.13 MB / 391.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004317/0.1004, allocations: 2.746 MB / 394.2 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002384/0.1028, allocations: 1.132 MB / 395.3 MB, free: 4.816 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002269/0.103, allocations: 7.938 kB / 395.3 MB, free: 4.809 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003144/0.1033, allocations: 71.36 kB / 395.4 MB, free: 4.738 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006745/0.104, allocations: 190.9 kB / 395.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005127/0.1045, allocations: 243.5 kB / 395.8 MB, free: 4.312 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007383/0.1052, allocations: 0.643 MB / 396.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002263/0.1055, allocations: 99.36 kB / 396.5 MB, free: 3.566 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004442/0.1059, allocations: 303.1 kB / 396.8 MB, free: 3.27 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000481/0.1064, allocations: 350.9 kB / 397.2 MB, free: 2.926 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.221e-05/0.1065, allocations: 52 kB / 397.2 MB, free: 2.875 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000271/0.1068, allocations: 147.8 kB / 397.4 MB, free: 2.73 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001956/0.107, allocations: 143.6 kB / 397.5 MB, free: 2.59 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002768/0.1072, allocations: 254.7 kB / 397.7 MB, free: 2.34 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008373/0.1081, allocations: 0.6384 MB / 398.4 MB, free: 1.699 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1081, allocations: 7.875 kB / 398.4 MB, free: 1.691 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.634e-06/0.1081, allocations: 0 / 398.4 MB, free: 1.691 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.678e-06/0.1081, allocations: 0 / 398.4 MB, free: 1.691 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001776/0.1099, allocations: 0.8142 MB / 399.2 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.455e-05/0.1099, allocations: 15.89 kB / 399.2 MB, free: 0.8125 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001123/0.11, allocations: 78.7 kB / 399.3 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003503/0.1104, allocations: 68.59 kB / 399.4 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006362/0.111, allocations: 362.6 kB / 399.7 MB, free: 268 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001526/0.1112, allocations: 96.95 kB / 399.8 MB, free: 156 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.315e-05/0.1113, allocations: 40.33 kB / 399.9 MB, free: 116 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001158/0.1124, allocations: 0.5683 MB / 400.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.223e-05/0.1124, allocations: 0 / 400.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.467e-05/0.1125, allocations: 16 kB / 400.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.1125, allocations: 8 kB / 400.4 MB, free: 15.51 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001444/0.114, allocations: 0.6402 MB / 401.1 MB, free: 14.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002608/0.1166, allocations: 1.291 MB / 402.4 MB, free: 13.52 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001221/0.1178, allocations: 0.5022 MB / 402.9 MB, free: 13.01 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006722/0.1185, allocations: 298.3 kB / 403.2 MB, free: 12.71 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.217e-05/0.1185, allocations: 12.56 kB / 403.2 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.415e-05/0.1185, allocations: 39.12 kB / 403.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=61): time 3.406e-06/0.1186, allocations: 0 / 403.2 MB, free: 12.65 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.00749/0.126, allocations: 2.861 MB / 406.1 MB, free: 9.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.515e-05/0.1261, allocations: 89.61 kB / 406.2 MB, free: 9.562 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004786/0.1266, allocations: 327 kB / 406.5 MB, free: 9.234 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.461e-05/0.1267, allocations: 45.7 kB / 406.5 MB, free: 9.184 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000146/0.1268, allocations: 165.7 kB / 406.7 MB, free: 9.016 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002369/0.1271, allocations: 238 kB / 406.9 MB, free: 8.781 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002414/0.1273, allocations: 122.3 kB / 407 MB, free: 8.656 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001857/0.1275, allocations: 350.8 kB / 407.4 MB, free: 8.305 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006579/0.1281, allocations: 293.2 kB / 407.7 MB, free: 8.016 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007204/0.1289, allocations: 362.4 kB / 408 MB, free: 7.652 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001154/0.13, allocations: 0.5266 MB / 408.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.13, allocations: 0 / 408.6 MB, free: 7.117 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001919/0.1319, allocations: 0.8618 MB / 409.4 MB, free: 6.246 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.173e-05/0.132, allocations: 11.94 kB / 409.4 MB, free: 6.234 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.835e-06/0.132, allocations: 4.031 kB / 409.4 MB, free: 6.23 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001197/0.1332, allocations: 477.6 kB / 409.9 MB, free: 5.762 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003955/0.1336, allocations: 83.88 kB / 410 MB, free: 5.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001474/0.135, allocations: 1.072 MB / 411.1 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005227/0.1356, allocations: 67.97 kB / 411.1 MB, free: 4.516 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.173e-05/0.1356, allocations: 23.98 kB / 411.1 MB, free: 4.492 MB / 334.1 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.0002884/0.1359, allocations: 181.6 kB / 411.3 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.136, allocations: 43.72 kB / 411.4 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001828/0.1362, allocations: 63.77 kB / 411.4 MB, free: 4.199 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.759e-06/0.1362, allocations: 12 kB / 411.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1362, allocations: 0 / 411.4 MB, free: 4.188 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.1362, allocations: 3.984 kB / 411.4 MB, free: 4.184 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003585/0.1398, allocations: 1.737 MB / 413.2 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.1398, allocations: 0 / 413.2 MB, free: 2.383 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004012/0.1402, allocations: 79.88 kB / 413.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001068/0.1413, allocations: 456.5 kB / 413.7 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.715e-05/0.1414, allocations: 19.98 kB / 413.7 MB, free: 1.836 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001452/0.1428, allocations: 1.036 MB / 414.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.1428, allocations: 3.938 kB / 414.8 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00278/0.1456, allocations: 1.295 MB / 416.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002949/0.1459, allocations: 180.8 kB / 416.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.846e-05/0.146, allocations: 20 kB / 416.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000463/0.1465, allocations: 51.94 kB / 416.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.1467, allocations: 88.42 kB / 416.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.172e-05/0.1467, allocations: 24.05 kB / 416.4 MB, free: 15.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003275/0.1471, allocations: 242 kB / 416.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1471, allocations: 4 kB / 416.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005503/0.1476, allocations: 151.9 kB / 416.8 MB, free: 14.69 MB / 350.1 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.00324/0.1508, allocations: 1.878 MB / 418.7 MB, free: 12.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001775/0.1526, allocations: 0.665 MB / 419.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.1526, allocations: 0 / 419.3 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009303/0.1536, allocations: 364 kB / 419.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005825/0.1541, allocations: 52.86 kB / 419.8 MB, free: 11.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009446/0.1636, allocations: 4.967 MB / 424.7 MB, free: 6.625 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004944/0.1641, allocations: 0.8251 MB / 425.5 MB, free: 5.773 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002776/0.1644, allocations: 59.33 kB / 425.6 MB, free: 5.711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002487/0.1646, allocations: 131.4 kB / 425.7 MB, free: 5.582 MB / 350.1 MB Notification: Performance of SimCode: time 1.432e-06/0.1646, allocations: 0 / 425.7 MB, free: 5.582 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04638/0.211, allocations: 13.86 MB / 439.6 MB, free: 7.652 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.32/12.53, allocations: 12.05 kB / 439.6 MB, free: 7.641 MB / 366.1 MB " [Timeout remaining time 647] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 15.090096924992395]