Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.0008709/0.0008709, 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.001261/0.001261, allocations: 170 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.8673/0.8673, allocations: 177.1 MB / 204.2 MB, free: 5.727 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.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.292e-06/1.292e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.623e-05/1.752e-05, allocations: 4.531 kB / 324.6 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002502/0.002519, allocations: 2.342 MB / 326.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001251/0.003771, allocations: 1.026 MB / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001177/0.003888, allocations: 0 / 327.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002404/0.004129, allocations: 59.45 kB / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003406/0.004469, allocations: 160 kB / 328.1 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000288/0.004758, allocations: 167.6 kB / 328.3 MB, free: 12.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000365/0.005123, allocations: 486.4 kB / 328.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001223/0.005245, allocations: 44.89 kB / 328.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002266/0.005471, allocations: 279.5 kB / 329.1 MB, free: 11.4 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002015/0.005673, allocations: 215.5 kB / 329.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.072e-05/0.005714, allocations: 36 kB / 329.3 MB, free: 11.15 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000166/0.00588, allocations: 119.9 kB / 329.5 MB, free: 11.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.088e-05/0.005971, allocations: 111.6 kB / 329.6 MB, free: 10.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.441e-05/0.006055, allocations: 131.7 kB / 329.7 MB, free: 10.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004111/0.006466, allocations: 0.5297 MB / 330.2 MB, free: 10.27 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.004e-06/0.006468, allocations: 4 kB / 330.2 MB, free: 10.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.006469, allocations: 0 / 330.2 MB, free: 10.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.006475, allocations: 0 / 330.2 MB, free: 10.26 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008845/0.007359, allocations: 0.5907 MB / 330.8 MB, free: 9.641 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.007393, allocations: 12.03 kB / 330.8 MB, free: 9.629 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.382e-05/0.007447, allocations: 62.72 kB / 330.9 MB, free: 9.559 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001749/0.007622, allocations: 52.73 kB / 330.9 MB, free: 9.508 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003139/0.007936, allocations: 242.9 kB / 331.2 MB, free: 9.242 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.624e-05/0.008032, allocations: 148 kB / 331.3 MB, free: 9.074 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.062e-05/0.008073, allocations: 24.38 kB / 331.3 MB, free: 9.051 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004481/0.008521, allocations: 408.9 kB / 331.7 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.454e-05/0.008535, allocations: 4.141 kB / 331.7 MB, free: 8.625 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.5e-05/0.00856, allocations: 23.88 kB / 331.8 MB, free: 8.602 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.75e-06/0.008566, allocations: 4 kB / 331.8 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004928/0.009059, allocations: 414.2 kB / 332.2 MB, free: 8.191 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001272/0.01033, allocations: 1.13 MB / 333.3 MB, free: 7.004 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004457/0.01078, allocations: 311.6 kB / 333.6 MB, free: 6.691 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002226/0.011, allocations: 168.7 kB / 333.8 MB, free: 6.523 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.428e-05/0.01102, allocations: 4.719 kB / 333.8 MB, free: 6.52 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.01105, allocations: 42.5 kB / 333.8 MB, free: 6.469 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.432e-06/0.01105, allocations: 0 / 333.8 MB, free: 6.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.002724/0.01377, allocations: 1.664 MB / 335.5 MB, free: 4.746 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.762e-05/0.01382, allocations: 84.86 kB / 335.6 MB, free: 4.645 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002041/0.01402, allocations: 258.4 kB / 335.8 MB, free: 4.383 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.712e-05/0.01405, allocations: 33.7 kB / 335.9 MB, free: 4.344 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.851e-05/0.01412, allocations: 140.8 kB / 336 MB, free: 4.199 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.246e-05/0.0142, allocations: 162.6 kB / 336.2 MB, free: 4.039 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.496e-05/0.0143, allocations: 86.12 kB / 336.2 MB, free: 3.945 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.601e-05/0.01438, allocations: 342.8 kB / 336.6 MB, free: 3.602 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002305/0.01461, allocations: 164.9 kB / 336.7 MB, free: 3.441 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002759/0.01489, allocations: 252.2 kB / 337 MB, free: 3.172 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004092/0.0153, allocations: 336.2 kB / 337.3 MB, free: 2.828 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.0153, allocations: 0 / 337.3 MB, free: 2.828 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006933/0.01599, allocations: 0.545 MB / 337.9 MB, free: 2.273 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.486e-05/0.01601, allocations: 4 kB / 337.9 MB, free: 2.27 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.441e-06/0.01601, allocations: 4 kB / 337.9 MB, free: 2.266 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004578/0.01647, allocations: 292.8 kB / 338.1 MB, free: 1.977 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.0166, allocations: 51.89 kB / 338.2 MB, free: 1.926 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002496/0.0191, allocations: 2.758 MB / 341 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001284/0.01923, allocations: 27.95 kB / 341 MB, free: 15.02 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.008e-05/0.01926, allocations: 19.98 kB / 341 MB, free: 15 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * Single equations (assignments): 26 * 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,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001185/0.01938, allocations: 161.8 kB / 341.2 MB, free: 14.83 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.571e-05/0.01942, allocations: 31.81 kB / 341.2 MB, free: 14.8 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.449e-05/0.01947, allocations: 39 kB / 341.2 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.01947, allocations: 4 kB / 341.2 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.813e-06/0.01947, allocations: 0 / 341.2 MB, free: 14.76 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.01948, allocations: 3.984 kB / 341.2 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001129/0.0206, allocations: 1.022 MB / 342.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.218e-06/0.02061, allocations: 0 / 342.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001175/0.02073, allocations: 47.97 kB / 342.3 MB, free: 13.63 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003897/0.02112, allocations: 280.7 kB / 342.6 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.02114, allocations: 11.98 kB / 342.6 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002361/0.0235, allocations: 2.704 MB / 345.3 MB, free: 10.53 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.0235, allocations: 3.938 kB / 345.3 MB, free: 10.52 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009178/0.02442, allocations: 0.8003 MB / 346.1 MB, free: 9.707 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.474e-05/0.02452, allocations: 67.81 kB / 346.2 MB, free: 9.641 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.027e-05/0.02455, allocations: 15.98 kB / 346.2 MB, free: 9.625 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001229/0.02467, allocations: 19.98 kB / 346.2 MB, free: 9.605 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001209/0.02479, allocations: 79.73 kB / 346.3 MB, free: 9.527 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.887e-05/0.02481, allocations: 15.98 kB / 346.3 MB, free: 9.512 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.00013/0.02494, allocations: 184.2 kB / 346.5 MB, free: 9.332 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02494, allocations: 0 / 346.5 MB, free: 9.332 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003857/0.02532, allocations: 140 kB / 346.6 MB, free: 9.195 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.001796/0.02712, allocations: 1.668 MB / 348.3 MB, free: 7.66 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0008786/0.028, allocations: 0.5981 MB / 348.9 MB, free: 7.051 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.028, allocations: 4.25 kB / 348.9 MB, free: 7.047 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000424/0.02843, allocations: 417.9 kB / 349.3 MB, free: 6.625 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002926/0.02872, allocations: 39.97 kB / 349.3 MB, free: 6.586 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003561/0.03228, allocations: 3.367 MB / 352.7 MB, free: 3.102 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001381/0.03242, allocations: 175.8 kB / 352.9 MB, free: 2.91 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001458/0.03256, allocations: 70.92 kB / 352.9 MB, free: 2.84 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001186/0.03268, allocations: 92.45 kB / 353 MB, free: 2.75 MB / 314.7 MB Notification: Performance of SimCode: time 5.21e-07/0.03268, allocations: 0 / 353 MB, free: 2.75 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02261/0.05529, allocations: 10.62 MB / 363.6 MB, free: 8.203 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.876/7.931, allocations: 10.3 kB / 363.7 MB, free: 8.199 MB / 330.7 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_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.663413189351559]