Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001354/0.001354, allocations: 187.3 kB / 23.72 MB, free: 4.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 225.6 MB / 252.5 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00158/0.00158, allocations: 47.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2666/0.2682, allocations: 52.19 MB / 422.6 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003911/0.2721, allocations: 2.458 MB / 425.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001926/0.274, allocations: 0.9793 MB / 426.1 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001764/0.2742, allocations: 7.938 kB / 426.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002461/0.2745, allocations: 43.58 kB / 426.1 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006196/0.2751, allocations: 167 kB / 426.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004135/0.2755, allocations: 175.7 kB / 426.4 MB, free: 10.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005689/0.2761, allocations: 482.4 kB / 426.9 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001969/0.2763, allocations: 61.14 kB / 427 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003274/0.2766, allocations: 215.4 kB / 427.2 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003647/0.2769, allocations: 263.1 kB / 427.4 MB, free: 9.758 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.256e-05/0.277, allocations: 40 kB / 427.5 MB, free: 9.719 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002413/0.2773, allocations: 119.9 kB / 427.6 MB, free: 9.602 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001551/0.2774, allocations: 111.6 kB / 427.7 MB, free: 9.492 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001952/0.2776, allocations: 187.1 kB / 427.9 MB, free: 9.309 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000646/0.2783, allocations: 498.6 kB / 428.4 MB, free: 8.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2783, allocations: 0 / 428.4 MB, free: 8.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2783, allocations: 7.938 kB / 428.4 MB, free: 8.816 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.326e-05/0.2783, allocations: 4 kB / 428.4 MB, free: 8.812 MB / 334.1 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.001344/0.2796, allocations: 0.6064 MB / 429 MB, free: 8.176 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.2797, allocations: 12.03 kB / 429 MB, free: 8.164 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.343e-05/0.2798, allocations: 70.72 kB / 429.1 MB, free: 8.086 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003165/0.2801, allocations: 52.69 kB / 429.1 MB, free: 8.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005452/0.2806, allocations: 258.8 kB / 429.4 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001683/0.2808, allocations: 148 kB / 429.5 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.823e-05/0.2809, allocations: 28.38 kB / 429.5 MB, free: 7.562 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008059/0.2817, allocations: 420.9 kB / 430 MB, free: 7.141 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.086e-05/0.2817, allocations: 3.953 kB / 430 MB, free: 7.137 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.952e-05/0.2817, allocations: 12 kB / 430 MB, free: 7.125 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.176e-05/0.2817, allocations: 8 kB / 430 MB, free: 7.117 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001008/0.2827, allocations: 470.2 kB / 430.4 MB, free: 6.66 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001844/0.2846, allocations: 0.9049 MB / 431.3 MB, free: 5.711 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000836/0.2854, allocations: 380.4 kB / 431.7 MB, free: 5.328 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000458/0.2859, allocations: 210.1 kB / 431.9 MB, free: 5.121 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.024e-05/0.2859, allocations: 4.438 kB / 431.9 MB, free: 5.117 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.286, allocations: 42.94 kB / 432 MB, free: 5.066 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.004e-06/0.286, allocations: 0 / 432 MB, free: 5.066 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005276/0.2912, allocations: 1.937 MB / 433.9 MB, free: 3.078 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.025e-05/0.2913, allocations: 85.61 kB / 434 MB, free: 2.977 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003609/0.2917, allocations: 267 kB / 434.3 MB, free: 2.699 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.068e-05/0.2917, allocations: 41.7 kB / 434.3 MB, free: 2.652 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.2918, allocations: 133.2 kB / 434.4 MB, free: 2.52 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001813/0.292, allocations: 194.3 kB / 434.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001606/0.2922, allocations: 90.17 kB / 434.7 MB, free: 2.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.2924, allocations: 346.8 kB / 435 MB, free: 1.887 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004613/0.2928, allocations: 192.9 kB / 435.2 MB, free: 1.699 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004904/0.2933, allocations: 252 kB / 435.5 MB, free: 1.445 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008308/0.2942, allocations: 391.3 kB / 435.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.2942, allocations: 0 / 435.9 MB, free: 1.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001317/0.2955, allocations: 0.6004 MB / 436.5 MB, free: 460 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.284e-05/0.2955, allocations: 7.938 kB / 436.5 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/0.2955, allocations: 4 kB / 436.5 MB, free: 448 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008104/0.2963, allocations: 263.7 kB / 436.7 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003137/0.2966, allocations: 55.95 kB / 436.8 MB, free: 128 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004253/0.3009, allocations: 2.832 MB / 439.6 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003358/0.3012, allocations: 32.06 kB / 439.6 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.951e-05/0.3013, allocations: 20 kB / 439.7 MB, free: 13.12 MB / 350.1 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.0002382/0.3015, allocations: 161.7 kB / 439.8 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.435e-05/0.3016, allocations: 31.81 kB / 439.9 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000115/0.3017, allocations: 51.3 kB / 439.9 MB, free: 12.88 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.3017, allocations: 4 kB / 439.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.3017, allocations: 0 / 439.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.3017, allocations: 0 / 439.9 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002302/0.304, allocations: 1.242 MB / 441.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.304, allocations: 0 / 441.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003246/0.3044, allocations: 67.83 kB / 441.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000685/0.305, allocations: 240.7 kB / 441.4 MB, free: 11.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.628e-05/0.3051, allocations: 15.98 kB / 441.5 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004036/0.3091, allocations: 2.746 MB / 444.2 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.764e-06/0.3091, allocations: 0 / 444.2 MB, free: 8.41 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.3111, allocations: 0.9451 MB / 445.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001922/0.3113, allocations: 75.73 kB / 445.2 MB, free: 7.363 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.93e-05/0.3113, allocations: 15.94 kB / 445.2 MB, free: 7.348 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003121/0.3116, allocations: 27.97 kB / 445.3 MB, free: 7.32 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002031/0.3118, allocations: 68.3 kB / 445.3 MB, free: 7.254 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.438e-05/0.3119, allocations: 16 kB / 445.4 MB, free: 7.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002564/0.3121, allocations: 200.7 kB / 445.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3121, allocations: 0 / 445.6 MB, free: 7.043 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000639/0.3128, allocations: 151.9 kB / 445.7 MB, free: 6.895 MB / 350.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: 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.002541/0.3153, allocations: 1.559 MB / 447.3 MB, free: 5.297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001578/0.3169, allocations: 0.679 MB / 447.9 MB, free: 4.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.631e-06/0.3169, allocations: 0 / 447.9 MB, free: 4.609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000912/0.3178, allocations: 460.1 kB / 448.4 MB, free: 4.145 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004803/0.3183, allocations: 40.48 kB / 448.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0065/0.3248, allocations: 3.804 MB / 452.2 MB, free: 200 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000488/0.3253, allocations: 0.7968 MB / 453 MB, free: 15.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002377/0.3255, allocations: 66.94 kB / 453.1 MB, free: 15.31 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001896/0.3257, allocations: 99.39 kB / 453.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3257, allocations: 3.938 kB / 453.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04751/0.3732, allocations: 11.48 MB / 464.7 MB, free: 3.883 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.23/13.6, allocations: 3.984 kB / 464.7 MB, free: 3.879 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo1.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.0.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: 16.060927788999834]