Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009445/0.0009445, allocations: 83.69 kB / 20.67 MB, free: 3.891 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.001112/0.001112, allocations: 170 kB / 23.95 MB, free: 0.6172 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9091/0.9091, allocations: 177.1 MB / 204.2 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.733e-06/1.733e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.949e-05/2.122e-05, allocations: 6.219 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.002977/0.002998, allocations: 2.699 MB / 327.2 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001605/0.004604, allocations: 1.236 MB / 328.5 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001574/0.004761, allocations: 7.938 kB / 328.5 MB, free: 12 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002833/0.005044, allocations: 95.2 kB / 328.6 MB, free: 11.91 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004343/0.005479, allocations: 218.9 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00052/0.005999, allocations: 271.3 kB / 329.1 MB, free: 11.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004879/0.006486, allocations: 0.7287 MB / 329.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001591/0.006646, allocations: 79.98 kB / 329.9 MB, free: 10.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004212/0.007067, allocations: 439.1 kB / 330.3 MB, free: 10.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002857/0.007352, allocations: 323.3 kB / 330.6 MB, free: 9.871 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.315e-05/0.007416, allocations: 60 kB / 330.7 MB, free: 9.812 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002002/0.007616, allocations: 147.8 kB / 330.8 MB, free: 9.668 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001357/0.007751, allocations: 171.4 kB / 331 MB, free: 9.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00014/0.007891, allocations: 207.6 kB / 331.2 MB, free: 9.297 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006154/0.008507, allocations: 0.7711 MB / 332 MB, free: 8.523 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.008511, allocations: 0 / 332 MB, free: 8.523 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.352e-06/0.008512, allocations: 0 / 332 MB, free: 8.523 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.00852, allocations: 4 kB / 332 MB, free: 8.52 MB / 298.7 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.001092/0.009612, allocations: 0.7699 MB / 332.7 MB, free: 7.719 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.009651, allocations: 12.03 kB / 332.7 MB, free: 7.707 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.333e-05/0.009725, allocations: 78.72 kB / 332.8 MB, free: 7.621 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002725/0.009997, allocations: 72.62 kB / 332.9 MB, free: 7.551 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004751/0.01047, allocations: 316.4 kB / 333.2 MB, free: 7.211 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001208/0.01059, allocations: 160.3 kB / 333.4 MB, free: 7.027 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.165e-05/0.01065, allocations: 48.33 kB / 333.4 MB, free: 6.98 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006968/0.01135, allocations: 0.5822 MB / 334 MB, free: 6.383 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.01137, allocations: 192 / 334 MB, free: 6.383 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.579e-05/0.0114, allocations: 19.94 kB / 334 MB, free: 6.363 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.088e-06/0.01141, allocations: 11.94 kB / 334 MB, free: 6.352 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007914/0.0122, allocations: 0.6011 MB / 334.6 MB, free: 5.75 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.01377, allocations: 1.122 MB / 335.7 MB, free: 4.582 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00088/0.01465, allocations: 497.5 kB / 336.2 MB, free: 4.086 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000358/0.015, allocations: 274.4 kB / 336.5 MB, free: 3.816 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.675e-05/0.01504, allocations: 12.5 kB / 336.5 MB, free: 3.805 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.528e-05/0.01507, allocations: 39.06 kB / 336.5 MB, free: 3.758 MB / 298.7 MB Notification: Performance of pre-optimization done (n=62): time 3.206e-06/0.01507, allocations: 7.984 kB / 336.6 MB, free: 3.75 MB / 298.7 MB Notification: Performance of matching and sorting (n=70): time 0.003965/0.01903, allocations: 2.442 MB / 339 MB, free: 1.258 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.784e-05/0.01908, allocations: 93.64 kB / 339.1 MB, free: 1.148 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000299/0.01938, allocations: 352.5 kB / 339.4 MB, free: 0.7891 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.054e-05/0.01942, allocations: 41.7 kB / 339.5 MB, free: 0.7422 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.489e-05/0.01951, allocations: 169.7 kB / 339.6 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001181/0.01962, allocations: 238 kB / 339.9 MB, free: 348 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001341/0.01976, allocations: 126.3 kB / 340 MB, free: 216 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.01986, allocations: 354.8 kB / 340.3 MB, free: 15.86 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003598/0.02022, allocations: 265.2 kB / 340.6 MB, free: 15.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003943/0.02062, allocations: 356.2 kB / 340.9 MB, free: 15.23 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006363/0.02125, allocations: 491.5 kB / 341.4 MB, free: 14.75 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.02126, allocations: 4.031 kB / 341.4 MB, free: 14.74 MB / 314.7 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001086/0.02234, allocations: 0.818 MB / 342.2 MB, free: 13.91 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.052e-05/0.02236, allocations: 7.938 kB / 342.3 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.02237, allocations: 4 kB / 342.3 MB, free: 13.9 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006583/0.02303, allocations: 441 kB / 342.7 MB, free: 13.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002003/0.02323, allocations: 91.86 kB / 342.8 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009805/0.02421, allocations: 1.019 MB / 343.8 MB, free: 12.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000236/0.02445, allocations: 63.98 kB / 343.9 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.07e-05/0.02449, allocations: 27.98 kB / 343.9 MB, free: 12.25 MB / 314.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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0001746/0.02466, allocations: 177.7 kB / 344.1 MB, free: 12.06 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.696e-05/0.02473, allocations: 47.72 kB / 344.1 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.677e-05/0.02482, allocations: 67.86 kB / 344.2 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.02482, allocations: 11.98 kB / 344.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.02483, allocations: 0 / 344.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.02483, allocations: 0 / 344.2 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001974/0.02681, allocations: 1.571 MB / 345.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.02681, allocations: 0 / 345.8 MB, free: 10.3 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002043/0.02701, allocations: 87.91 kB / 345.8 MB, free: 10.21 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005793/0.02759, allocations: 404.5 kB / 346.2 MB, free: 9.816 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.783e-05/0.02763, allocations: 23.98 kB / 346.3 MB, free: 9.793 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008043/0.02844, allocations: 0.9758 MB / 347.2 MB, free: 8.793 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.375e-06/0.02844, allocations: 3.938 kB / 347.2 MB, free: 8.789 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001553/0.02999, allocations: 1.208 MB / 348.4 MB, free: 7.559 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001904/0.03018, allocations: 115.6 kB / 348.6 MB, free: 7.445 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.223e-05/0.03024, allocations: 16 kB / 348.6 MB, free: 7.43 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002195/0.03046, allocations: 56 kB / 348.6 MB, free: 7.375 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001454/0.03061, allocations: 92.47 kB / 348.7 MB, free: 7.285 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.522e-05/0.03064, allocations: 31.97 kB / 348.8 MB, free: 7.254 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000211/0.03085, allocations: 251 kB / 349 MB, free: 7.008 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03086, allocations: 0 / 349 MB, free: 7.008 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003822/0.03124, allocations: 143.9 kB / 349.1 MB, free: 6.867 MB / 314.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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002461/0.0337, allocations: 2.065 MB / 351.2 MB, free: 4.93 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.03472, allocations: 0.635 MB / 351.8 MB, free: 4.297 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.03472, allocations: 0 / 351.8 MB, free: 4.297 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000479/0.0352, allocations: 348.8 kB / 352.2 MB, free: 3.953 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003579/0.03556, allocations: 75.86 kB / 352.3 MB, free: 3.883 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005512/0.04107, allocations: 4.837 MB / 357.1 MB, free: 14.93 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001489/0.04122, allocations: 222 kB / 357.3 MB, free: 14.69 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002019/0.04142, allocations: 75.38 kB / 357.4 MB, free: 14.62 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001829/0.0416, allocations: 148.4 kB / 357.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of SimCode: time 1.163e-06/0.04161, allocations: 4 kB / 357.5 MB, free: 14.47 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02821/0.06982, allocations: 13.87 MB / 371.4 MB, free: 0.6836 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.036/8.106, allocations: 11.92 kB / 371.4 MB, free: 0.6719 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_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_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.1.0_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.926745519042015]