Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001322/0.001322, allocations: 124.4 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001465/0.001465, allocations: 206.6 kB / 20.75 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.423/1.423, allocations: 230.4 MB / 254 MB, free: 14.99 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002035/0.002035, allocations: 59.91 kB / 373 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1104, allocations: 53.37 MB / 426.3 MB, free: 4.633 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004377/0.1148, allocations: 2.869 MB / 429.2 MB, free: 1.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002275/0.117, allocations: 1.283 MB / 430.5 MB, free: 468 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.1172, allocations: 11.94 kB / 430.5 MB, free: 456 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003132/0.1175, allocations: 87.28 kB / 430.6 MB, free: 368 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005811/0.1181, allocations: 215.5 kB / 430.8 MB, free: 148 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2233/0.3414, allocations: 246.9 kB / 431 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.3424, allocations: 0.71 MB / 431.8 MB, free: 7.711 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002166/0.3426, allocations: 85.62 kB / 431.8 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004657/0.3431, allocations: 334.6 kB / 432.2 MB, free: 7.664 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004062/0.3435, allocations: 382.1 kB / 432.5 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.08e-05/0.3436, allocations: 58.19 kB / 432.6 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002965/0.3439, allocations: 163.5 kB / 432.8 MB, free: 7.617 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001605/0.344, allocations: 160.1 kB / 432.9 MB, free: 7.598 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000204/0.3442, allocations: 268.8 kB / 433.2 MB, free: 7.531 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008021/0.345, allocations: 0.7224 MB / 433.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.345, allocations: 0 / 433.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.345, allocations: 0 / 433.9 MB, free: 7.438 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.175e-06/0.345, allocations: 0 / 433.9 MB, free: 7.438 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001661/0.3467, allocations: 0.8546 MB / 434.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.3467, allocations: 9.875 kB / 434.8 MB, free: 6.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001017/0.3468, allocations: 82.84 kB / 434.8 MB, free: 6.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004309/0.3473, allocations: 74.28 kB / 434.9 MB, free: 6.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005186/0.3478, allocations: 374.4 kB / 435.3 MB, free: 6.602 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001237/0.3479, allocations: 98.08 kB / 435.4 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.148e-05/0.348, allocations: 46.69 kB / 435.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001068/0.3491, allocations: 0.56 MB / 436 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.3491, allocations: 1.125 kB / 436 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.317e-05/0.3491, allocations: 23.12 kB / 436 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.3492, allocations: 9.688 kB / 436 MB, free: 6.465 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00134/0.3505, allocations: 0.6108 MB / 436.6 MB, free: 6.461 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.3529, allocations: 1.303 MB / 437.9 MB, free: 5.902 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00117/0.354, allocations: 0.4908 MB / 438.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000613/0.3546, allocations: 274.1 kB / 438.7 MB, free: 5.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.235e-05/0.3547, allocations: 16.06 kB / 438.7 MB, free: 5.605 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.486e-05/0.3547, allocations: 46.33 kB / 438.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.054e-06/0.3547, allocations: 0 / 438.7 MB, free: 5.559 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.006958/0.3617, allocations: 2.735 MB / 441.5 MB, free: 4.145 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.889e-05/0.3617, allocations: 85.75 kB / 441.6 MB, free: 4.047 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004376/0.3622, allocations: 352.5 kB / 441.9 MB, free: 3.871 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.466e-05/0.3622, allocations: 43.77 kB / 442 MB, free: 3.828 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.252e-05/0.3623, allocations: 165.9 kB / 442.1 MB, free: 3.684 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.3625, allocations: 243.7 kB / 442.4 MB, free: 3.504 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002215/0.3627, allocations: 125.5 kB / 442.5 MB, free: 3.441 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.566e-05/0.3628, allocations: 350.9 kB / 442.8 MB, free: 3.113 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005893/0.3633, allocations: 266.4 kB / 443.1 MB, free: 3.016 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006436/0.364, allocations: 337.1 kB / 443.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.365, allocations: 491.7 kB / 443.9 MB, free: 2.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.365, allocations: 0 / 443.9 MB, free: 2.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001783/0.3668, allocations: 0.8304 MB / 444.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.867e-05/0.3668, allocations: 6.969 kB / 444.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.905e-06/0.3668, allocations: 1.219 kB / 444.7 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.3679, allocations: 441.9 kB / 445.2 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003906/0.3683, allocations: 89.98 kB / 445.2 MB, free: 2.195 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001082/0.3694, allocations: 1.021 MB / 446.3 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005305/0.3699, allocations: 64.22 kB / 446.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.552e-05/0.37, allocations: 25.61 kB / 446.4 MB, free: 1.43 MB / 350.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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002411/0.3702, allocations: 179.8 kB / 446.5 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000116/0.3703, allocations: 45.66 kB / 446.6 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001592/0.3705, allocations: 68.2 kB / 446.6 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.025e-06/0.3705, allocations: 10.97 kB / 446.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.618e-06/0.3705, allocations: 0.875 kB / 446.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.026e-05/0.3705, allocations: 5.812 kB / 446.7 MB, free: 1.199 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003109/0.3736, allocations: 1.696 MB / 448.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.328e-06/0.3736, allocations: 1.531 kB / 448.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000393/0.374, allocations: 85.73 kB / 448.4 MB, free: 348 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009987/0.375, allocations: 411.1 kB / 448.8 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.468e-05/0.3751, allocations: 27.14 kB / 448.9 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001246/0.3763, allocations: 0.9769 MB / 449.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.114e-06/0.3763, allocations: 1.375 kB / 449.8 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002755/0.3791, allocations: 1.208 MB / 451.1 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003418/0.3794, allocations: 190.6 kB / 451.2 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.3795, allocations: 18.77 kB / 451.3 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004743/0.38, allocations: 55.28 kB / 451.3 MB, free: 14.76 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002299/0.3802, allocations: 88.25 kB / 451.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.287e-05/0.3803, allocations: 33.02 kB / 451.4 MB, free: 14.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000429/0.3807, allocations: 260.2 kB / 451.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3807, allocations: 0 / 451.7 MB, free: 14.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000682/0.3814, allocations: 143.9 kB / 451.8 MB, free: 14.59 MB / 366.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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004412/0.3858, allocations: 2.027 MB / 453.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001759/0.3876, allocations: 0.6322 MB / 454.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.757e-06/0.3876, allocations: 0 / 454.5 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009117/0.3885, allocations: 348.1 kB / 454.8 MB, free: 13.1 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006224/0.3891, allocations: 76.36 kB / 454.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00918/0.3983, allocations: 4.86 MB / 459.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005334/0.3988, allocations: 0.8242 MB / 460.6 MB, free: 9.699 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003098/0.3992, allocations: 81.17 kB / 460.7 MB, free: 9.672 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002821/0.3994, allocations: 146.7 kB / 460.8 MB, free: 9.559 MB / 366.1 MB Notification: Performance of SimCode: time 5.61e-07/0.3994, allocations: 1.219 kB / 460.8 MB, free: 9.559 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04558/0.445, allocations: 14.51 MB / 475.3 MB, free: 14.58 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.36/12.81, allocations: 4.562 kB / 475.3 MB, free: 14.57 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.317247860017233]