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.001345/0.001345, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001552/0.001552, allocations: 204.5 kB / 23.72 MB, free: 4.391 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.449/1.449, allocations: 230.5 MB / 257.4 MB, free: 7.754 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.003355/0.003355, allocations: 63.91 kB / 377.7 MB, free: 2.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2951, allocations: 53.41 MB / 431.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004737/0.2998, allocations: 2.684 MB / 433.8 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002472/0.3023, allocations: 1.217 MB / 435 MB, free: 2.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001499/0.3024, allocations: 11.94 kB / 435 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003116/0.3027, allocations: 91.27 kB / 435.1 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005354/0.3033, allocations: 222.3 kB / 435.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005596/0.3038, allocations: 258.7 kB / 435.6 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008179/0.3047, allocations: 0.7133 MB / 436.3 MB, free: 1.289 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002239/0.3049, allocations: 87.84 kB / 436.4 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005034/0.3054, allocations: 327.1 kB / 436.7 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004798/0.3059, allocations: 358.8 kB / 437.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001103/0.306, allocations: 60 kB / 437.1 MB, free: 476 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002972/0.3063, allocations: 152 kB / 437.3 MB, free: 324 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001932/0.3065, allocations: 167.5 kB / 437.4 MB, free: 156 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002565/0.3067, allocations: 231 kB / 437.7 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008509/0.3076, allocations: 0.7256 MB / 438.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3076, allocations: 0 / 438.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3076, allocations: 0 / 438.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.186e-06/0.3076, allocations: 0 / 438.4 MB, free: 15.2 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.001684/0.3093, allocations: 0.7816 MB / 439.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.181e-05/0.3093, allocations: 15.98 kB / 439.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000115/0.3094, allocations: 86.69 kB / 439.3 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004071/0.3098, allocations: 76.62 kB / 439.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006296/0.3105, allocations: 312.7 kB / 439.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001822/0.3107, allocations: 152.4 kB / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.363e-05/0.3107, allocations: 48.33 kB / 439.8 MB, free: 13.65 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.3119, allocations: 0.5854 MB / 440.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.306e-05/0.3119, allocations: 7.922 kB / 440.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.461e-05/0.312, allocations: 20 kB / 440.5 MB, free: 13.02 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.312, allocations: 8 kB / 440.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001358/0.3133, allocations: 0.5972 MB / 441.1 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002489/0.3158, allocations: 1.13 MB / 442.2 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001167/0.317, allocations: 494.4 kB / 442.7 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006313/0.3176, allocations: 290.1 kB / 443 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.275e-05/0.3177, allocations: 8.688 kB / 443 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.262e-05/0.3177, allocations: 46.98 kB / 443 MB, free: 10.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.194e-06/0.3177, allocations: 0 / 443 MB, free: 10.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.006821/0.3245, allocations: 2.422 MB / 445.4 MB, free: 7.93 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.747e-05/0.3246, allocations: 93.69 kB / 445.5 MB, free: 7.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004648/0.325, allocations: 352.5 kB / 445.9 MB, free: 7.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.441e-05/0.3251, allocations: 45.7 kB / 445.9 MB, free: 7.414 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001291/0.3253, allocations: 165.8 kB / 446.1 MB, free: 7.246 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00021/0.3255, allocations: 242 kB / 446.3 MB, free: 7.008 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002319/0.3257, allocations: 126.2 kB / 446.4 MB, free: 6.879 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001867/0.3259, allocations: 350.8 kB / 446.8 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006324/0.3265, allocations: 265.2 kB / 447 MB, free: 6.27 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007138/0.3272, allocations: 364.2 kB / 447.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.3284, allocations: 495.5 kB / 447.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3284, allocations: 0 / 447.9 MB, free: 5.402 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001897/0.3303, allocations: 0.8219 MB / 448.7 MB, free: 4.57 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3303, allocations: 4 kB / 448.7 MB, free: 4.566 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.3303, allocations: 8.031 kB / 448.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001117/0.3314, allocations: 440.4 kB / 449.1 MB, free: 4.125 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003812/0.3318, allocations: 79.88 kB / 449.2 MB, free: 4.047 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.3332, allocations: 1.03 MB / 450.3 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004683/0.3337, allocations: 51.94 kB / 450.3 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.868e-05/0.3338, allocations: 39.91 kB / 450.3 MB, free: 2.902 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.0002622/0.334, allocations: 174.6 kB / 450.5 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001138/0.3341, allocations: 43.72 kB / 450.6 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001637/0.3343, allocations: 67.86 kB / 450.6 MB, free: 2.613 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.647e-06/0.3343, allocations: 12.06 kB / 450.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.671e-06/0.3343, allocations: 0 / 450.6 MB, free: 2.602 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3343, allocations: 3.984 kB / 450.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003327/0.3376, allocations: 1.571 MB / 452.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.3376, allocations: 0 / 452.2 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003886/0.338, allocations: 83.88 kB / 452.3 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009651/0.339, allocations: 412.5 kB / 452.7 MB, free: 484 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.342e-05/0.3391, allocations: 23.97 kB / 452.7 MB, free: 460 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00133/0.3404, allocations: 0.9784 MB / 453.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3404, allocations: 0 / 453.7 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002551/0.3429, allocations: 1.204 MB / 454.9 MB, free: 14.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002808/0.3432, allocations: 115.8 kB / 455 MB, free: 14.11 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.3433, allocations: 19.98 kB / 455 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004465/0.3438, allocations: 55.94 kB / 455.1 MB, free: 14.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002061/0.344, allocations: 88.48 kB / 455.2 MB, free: 13.95 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.667e-05/0.344, allocations: 31.91 kB / 455.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003378/0.3444, allocations: 255 kB / 455.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3444, allocations: 0 / 455.5 MB, free: 13.66 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005612/0.3449, allocations: 143.9 kB / 455.6 MB, free: 13.52 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.004317/0.3493, allocations: 2.066 MB / 457.7 MB, free: 11.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001659/0.3509, allocations: 0.6234 MB / 458.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.36e-06/0.3509, allocations: 4.062 kB / 458.3 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008936/0.3518, allocations: 348.6 kB / 458.6 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006263/0.3524, allocations: 75.42 kB / 458.7 MB, free: 10.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009093/0.3615, allocations: 4.864 MB / 463.6 MB, free: 5.547 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/0.3618, allocations: 221.9 kB / 463.8 MB, free: 5.309 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000322/0.3621, allocations: 83.36 kB / 463.9 MB, free: 5.227 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002848/0.3624, allocations: 143.4 kB / 464 MB, free: 5.086 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3624, allocations: 0 / 464 MB, free: 5.086 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04656/0.4089, allocations: 13.73 MB / 477.7 MB, free: 7.406 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.4, allocations: 9.812 kB / 477.7 MB, free: 7.402 MB / 382.1 MB " [Timeout remaining time 646] (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.956101030576974]