Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.0009311/0.0009311, allocations: 79.7 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.00152/0.00152, allocations: 174 kB / 23.95 MB, free: 0.6133 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.872/0.872, allocations: 177.1 MB / 204.2 MB, free: 5.719 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.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 324.5 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.02e-05/2.194e-05, allocations: 4.672 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003518/0.00354, allocations: 2.405 MB / 327 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002066/0.005606, allocations: 1.096 MB / 328.1 MB, free: 12.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001798/0.005786, allocations: 7.938 kB / 328.1 MB, free: 12.42 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002713/0.006057, allocations: 67.42 kB / 328.1 MB, free: 12.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005428/0.0066, allocations: 186.7 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004378/0.007038, allocations: 183.5 kB / 328.5 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005308/0.007569, allocations: 0.5256 MB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00016/0.007729, allocations: 64.91 kB / 329.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005803/0.008309, allocations: 323.3 kB / 329.4 MB, free: 11.08 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002811/0.00859, allocations: 231.5 kB / 329.6 MB, free: 10.86 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.877e-05/0.008639, allocations: 44 kB / 329.7 MB, free: 10.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001873/0.008826, allocations: 127.9 kB / 329.8 MB, free: 10.69 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.008933, allocations: 127.5 kB / 329.9 MB, free: 10.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.844e-05/0.009031, allocations: 147.6 kB / 330.1 MB, free: 10.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000519/0.00955, allocations: 0.592 MB / 330.6 MB, free: 9.824 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.868e-06/0.009554, allocations: 0 / 330.6 MB, free: 9.824 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.009556, allocations: 4 kB / 330.7 MB, free: 9.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.009561, allocations: 0 / 330.7 MB, free: 9.82 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0008278/0.01039, allocations: 0.6336 MB / 331.3 MB, free: 9.156 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.01042, allocations: 8.031 kB / 331.3 MB, free: 9.148 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.623e-05/0.01048, allocations: 70.72 kB / 331.4 MB, free: 9.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002289/0.01071, allocations: 64.67 kB / 331.4 MB, free: 9.008 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003907/0.0111, allocations: 265.2 kB / 331.7 MB, free: 8.723 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001033/0.0112, allocations: 140 kB / 331.8 MB, free: 8.562 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.094e-05/0.01125, allocations: 44.31 kB / 331.9 MB, free: 8.52 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005113/0.01176, allocations: 443.2 kB / 332.3 MB, free: 8.062 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.099e-05/0.01177, allocations: 4.188 kB / 332.3 MB, free: 8.059 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.554e-05/0.0118, allocations: 15.94 kB / 332.3 MB, free: 8.043 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.544e-06/0.01181, allocations: 8 kB / 332.3 MB, free: 8.035 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00059/0.0124, allocations: 462.3 kB / 332.8 MB, free: 7.586 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001031/0.01343, allocations: 0.8541 MB / 333.6 MB, free: 6.688 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005589/0.01399, allocations: 363.6 kB / 334 MB, free: 6.324 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003827/0.01437, allocations: 206.3 kB / 334.2 MB, free: 6.121 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.473e-05/0.01439, allocations: 4.5 kB / 334.2 MB, free: 6.117 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.605e-05/0.01442, allocations: 39.06 kB / 334.2 MB, free: 6.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 2.294e-06/0.01442, allocations: 4 kB / 334.2 MB, free: 6.066 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.0035/0.01792, allocations: 1.918 MB / 336.2 MB, free: 4.098 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.112e-05/0.01796, allocations: 89.55 kB / 336.2 MB, free: 3.992 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002263/0.01819, allocations: 273.8 kB / 336.5 MB, free: 3.711 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.149e-05/0.01822, allocations: 37.7 kB / 336.5 MB, free: 3.668 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.132e-05/0.01828, allocations: 141.2 kB / 336.7 MB, free: 3.523 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000105/0.01839, allocations: 194.4 kB / 336.9 MB, free: 3.332 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001001/0.01849, allocations: 90.17 kB / 337 MB, free: 3.238 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.876e-05/0.01858, allocations: 338.8 kB / 337.3 MB, free: 2.898 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002706/0.01885, allocations: 192.9 kB / 337.5 MB, free: 2.711 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003046/0.01915, allocations: 265.7 kB / 337.7 MB, free: 2.434 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000507/0.01966, allocations: 387.6 kB / 338.1 MB, free: 2.051 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.824e-06/0.01966, allocations: 0 / 338.1 MB, free: 2.051 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0008089/0.02047, allocations: 0.5965 MB / 338.7 MB, free: 1.449 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.02049, allocations: 8 kB / 338.7 MB, free: 1.441 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.02049, allocations: 0 / 338.7 MB, free: 1.441 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005336/0.02103, allocations: 303.4 kB / 339 MB, free: 1.145 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001822/0.02121, allocations: 75.88 kB / 339.1 MB, free: 1.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002625/0.02383, allocations: 2.801 MB / 341.9 MB, free: 14.16 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001586/0.02399, allocations: 27.97 kB / 341.9 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.472e-05/0.02403, allocations: 20.03 kB / 341.9 MB, free: 14.11 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.ideal,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 (33): * Single equations (assignments): 32 * 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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0001428/0.02417, allocations: 165.1 kB / 342.1 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.544e-05/0.02423, allocations: 35.75 kB / 342.1 MB, free: 13.91 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.351e-05/0.02428, allocations: 55.61 kB / 342.2 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.797e-06/0.02428, allocations: 4 kB / 342.2 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.02429, allocations: 0 / 342.2 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.691e-06/0.02429, allocations: 3.984 kB / 342.2 MB, free: 13.85 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001532/0.02582, allocations: 1.177 MB / 343.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.02583, allocations: 0 / 343.4 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001777/0.026, allocations: 71.94 kB / 343.4 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004412/0.02645, allocations: 276.7 kB / 343.7 MB, free: 12.27 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.65e-05/0.02648, allocations: 15.98 kB / 343.7 MB, free: 12.25 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002448/0.02893, allocations: 2.719 MB / 346.4 MB, free: 9.422 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.02893, allocations: 3.938 kB / 346.5 MB, free: 9.418 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001219/0.03015, allocations: 0.9411 MB / 347.4 MB, free: 8.453 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001247/0.03028, allocations: 79.72 kB / 347.5 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.686e-05/0.03031, allocations: 12 kB / 347.5 MB, free: 8.363 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001542/0.03047, allocations: 40.03 kB / 347.5 MB, free: 8.324 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.03059, allocations: 72.3 kB / 347.6 MB, free: 8.254 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.03062, allocations: 19.98 kB / 347.6 MB, free: 8.234 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001601/0.03078, allocations: 209.2 kB / 347.8 MB, free: 8.031 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03078, allocations: 0 / 347.8 MB, free: 8.031 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004831/0.03127, allocations: 147.9 kB / 348 MB, free: 7.887 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: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.002054/0.03332, allocations: 1.794 MB / 349.8 MB, free: 6.211 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009312/0.03425, allocations: 0.6678 MB / 350.4 MB, free: 5.527 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.03425, allocations: 0 / 350.4 MB, free: 5.527 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004778/0.03473, allocations: 464.5 kB / 350.9 MB, free: 5.062 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003092/0.03504, allocations: 62.7 kB / 350.9 MB, free: 5.008 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003764/0.03881, allocations: 3.76 MB / 354.7 MB, free: 1.152 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00015/0.03896, allocations: 190.9 kB / 354.9 MB, free: 0.9453 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000166/0.03912, allocations: 78.91 kB / 355 MB, free: 0.8672 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001424/0.03926, allocations: 112.4 kB / 355.1 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of SimCode: time 8.01e-07/0.03927, allocations: 0 / 355.1 MB, free: 0.7539 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02828/0.06755, allocations: 11.74 MB / 366.8 MB, free: 5.09 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.767/7.834, allocations: 11.75 kB / 366.8 MB, free: 5.082 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_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_LossyGearDemo1.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable gear.mode in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,Inertia2.phi,Inertia2.w,gear.mode Variables in the result:time,Inertia2.phi,Inertia2.w [Calling sys.exit(0), Time elapsed: 9.589645727537572]