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.001757/0.001757, allocations: 103.6 kB / 21.18 MB, free: 472 kB / 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.00231/0.00231, allocations: 214.9 kB / 24.47 MB, free: 3.793 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.406/1.406, allocations: 207.7 MB / 235.3 MB, free: 9.781 MB / 190.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.001915/0.001915, allocations: 47.94 kB / 347.2 MB, free: 9.91 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2538, allocations: 49.16 MB / 396.3 MB, free: 8.883 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.003268/0.2571, allocations: 2.558 MB / 398.9 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001811/0.2589, allocations: 1.093 MB / 400 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.2591, allocations: 4.469 kB / 400 MB, free: 6.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000225/0.2593, allocations: 71.56 kB / 400.1 MB, free: 6.402 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005465/0.2599, allocations: 198.2 kB / 400.3 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004477/0.2603, allocations: 252.1 kB / 400.5 MB, free: 6.168 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005626/0.2609, allocations: 0.6454 MB / 401.1 MB, free: 5.875 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000171/0.261, allocations: 80.19 kB / 401.2 MB, free: 5.832 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004334/0.2615, allocations: 308.1 kB / 401.5 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004248/0.2619, allocations: 325.3 kB / 401.8 MB, free: 5.594 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.281e-05/0.262, allocations: 55.5 kB / 401.9 MB, free: 5.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002659/0.2623, allocations: 136.6 kB / 402 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001561/0.2624, allocations: 145.8 kB / 402.2 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002046/0.2626, allocations: 203 kB / 402.4 MB, free: 5.371 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006792/0.2633, allocations: 0.6509 MB / 403 MB, free: 5.121 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.2633, allocations: 4.703 kB / 403 MB, free: 5.117 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2633, allocations: 1.312 kB / 403 MB, free: 5.117 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.2633, allocations: 4 kB / 403 MB, free: 5.113 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.001465/0.2648, allocations: 0.7358 MB / 403.8 MB, free: 4.621 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.2648, allocations: 13.3 kB / 403.8 MB, free: 4.617 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.283e-05/0.2649, allocations: 85.91 kB / 403.9 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003349/0.2652, allocations: 67.5 kB / 403.9 MB, free: 4.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005489/0.2658, allocations: 308.8 kB / 404.2 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001297/0.2659, allocations: 150.8 kB / 404.4 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.453e-05/0.266, allocations: 43.78 kB / 404.4 MB, free: 4.141 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001027/0.267, allocations: 0.5891 MB / 405 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.076e-05/0.2671, allocations: 1.5 kB / 405 MB, free: 3.883 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.999e-05/0.2671, allocations: 16.5 kB / 405 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.839e-06/0.2671, allocations: 10.16 kB / 405 MB, free: 3.871 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001259/0.2684, allocations: 0.6313 MB / 405.7 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002262/0.2706, allocations: 1.113 MB / 406.8 MB, free: 3.129 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001108/0.2717, allocations: 0.5126 MB / 407.3 MB, free: 2.941 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006182/0.2724, allocations: 295.2 kB / 407.6 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.562e-05/0.2724, allocations: 10.39 kB / 407.6 MB, free: 2.832 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.117e-05/0.2724, allocations: 42.56 kB / 407.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.414e-06/0.2724, allocations: 0 / 407.6 MB, free: 2.785 MB / 318.1 MB Notification: Performance of matching and sorting (n=69): time 0.006229/0.2787, allocations: 2.563 MB / 410.2 MB, free: 1.512 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.15e-05/0.2787, allocations: 88.42 kB / 410.3 MB, free: 1.414 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003497/0.279, allocations: 330.6 kB / 410.6 MB, free: 1.211 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.456e-05/0.2791, allocations: 43.36 kB / 410.7 MB, free: 1.168 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.795e-05/0.2792, allocations: 166.9 kB / 410.8 MB, free: 1.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.2793, allocations: 237.1 kB / 411 MB, free: 0.8047 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001888/0.2795, allocations: 123.8 kB / 411.2 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.096e-05/0.2796, allocations: 348.4 kB / 411.5 MB, free: 396 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005236/0.2801, allocations: 294.6 kB / 411.8 MB, free: 256 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005766/0.2807, allocations: 377.7 kB / 412.2 MB, free: 40 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001128/0.2818, allocations: 0.5238 MB / 412.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.2818, allocations: 3.938 kB / 412.7 MB, free: 15.79 MB / 334.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001812/0.2836, allocations: 0.8676 MB / 413.6 MB, free: 15.37 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.037e-05/0.2836, allocations: 9.406 kB / 413.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.2836, allocations: 1.094 kB / 413.6 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001124/0.2847, allocations: 476.6 kB / 414 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000391/0.2851, allocations: 88.03 kB / 414.1 MB, free: 15.12 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001442/0.2866, allocations: 1.073 MB / 415.2 MB, free: 14.34 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005156/0.2871, allocations: 57.22 kB / 415.2 MB, free: 14.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.122e-05/0.2872, allocations: 28.11 kB / 415.3 MB, free: 14.3 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.0003024/0.2875, allocations: 185.2 kB / 415.5 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001158/0.2876, allocations: 43.72 kB / 415.5 MB, free: 14.11 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001677/0.2877, allocations: 63.92 kB / 415.6 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.726e-06/0.2878, allocations: 10.53 kB / 415.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.284e-06/0.2878, allocations: 1.031 kB / 415.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.2878, allocations: 3.984 kB / 415.6 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003507/0.2913, allocations: 1.626 MB / 417.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5e-06/0.2913, allocations: 1.406 kB / 417.2 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003843/0.2917, allocations: 75.98 kB / 417.3 MB, free: 13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001024/0.2927, allocations: 446.5 kB / 417.7 MB, free: 12.81 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.309e-05/0.2928, allocations: 25.69 kB / 417.7 MB, free: 12.79 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001382/0.2941, allocations: 1.04 MB / 418.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.2941, allocations: 0 / 418.8 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002576/0.2967, allocations: 1.308 MB / 420.1 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003049/0.297, allocations: 103.7 kB / 420.2 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.735e-05/0.2971, allocations: 23.94 kB / 420.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004402/0.2976, allocations: 47.94 kB / 420.3 MB, free: 10.77 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001957/0.2977, allocations: 88.48 kB / 420.3 MB, free: 10.69 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.498e-05/0.2978, allocations: 23.97 kB / 420.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000315/0.2981, allocations: 247.1 kB / 420.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2981, allocations: 0 / 420.6 MB, free: 10.42 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005484/0.2987, allocations: 155.9 kB / 420.8 MB, free: 10.27 MB / 334.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.003098/0.3018, allocations: 1.873 MB / 422.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001633/0.3034, allocations: 0.6703 MB / 423.3 MB, free: 7.684 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.3034, allocations: 0 / 423.3 MB, free: 7.684 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008642/0.3043, allocations: 360.8 kB / 423.7 MB, free: 7.336 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005595/0.3048, allocations: 52.89 kB / 423.7 MB, free: 7.281 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008993/0.3138, allocations: 4.966 MB / 428.7 MB, free: 2.211 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002229/0.314, allocations: 214 kB / 428.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.00024/0.3143, allocations: 63.34 kB / 428.9 MB, free: 1.914 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000236/0.3145, allocations: 135.4 kB / 429.1 MB, free: 1.781 MB / 334.1 MB Notification: Performance of SimCode: time 5.51e-07/0.3145, allocations: 4 kB / 429.1 MB, free: 1.777 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0461/0.3606, allocations: 12.98 MB / 442.1 MB, free: 4.719 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/13.7, allocations: 7.797 kB / 442.1 MB, free: 4.711 MB / 350.1 MB " [Timeout remaining time 646] (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: 16.163486374076456]