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.001655/0.001655, allocations: 115.6 kB / 20.43 MB, free: 1.457 MB / 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.002076/0.002076, allocations: 214.1 kB / 23.75 MB, free: 4.668 MB / 14.72 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 1.541/1.541, allocations: 230.6 MB / 257.5 MB, free: 7.992 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001531/0.001531, allocations: 47.92 kB / 377.8 MB, free: 3.148 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2527/0.2542, allocations: 53.35 MB / 431.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.004083/0.2583, allocations: 2.488 MB / 433.6 MB, free: 4.379 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002086/0.2604, allocations: 1.076 MB / 434.7 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001881/0.2606, allocations: 7.938 kB / 434.7 MB, free: 3.289 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003442/0.2609, allocations: 55.52 kB / 434.7 MB, free: 3.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004878/0.2614, allocations: 163.8 kB / 434.9 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004273/0.2618, allocations: 163.7 kB / 435.1 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005833/0.2624, allocations: 470.7 kB / 435.5 MB, free: 2.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001665/0.2626, allocations: 52.89 kB / 435.6 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002883/0.2629, allocations: 203.5 kB / 435.8 MB, free: 2.203 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003874/0.2633, allocations: 251.2 kB / 436 MB, free: 1.957 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.055e-05/0.2633, allocations: 40 kB / 436.1 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002703/0.2636, allocations: 131.9 kB / 436.2 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001318/0.2637, allocations: 103.7 kB / 436.3 MB, free: 1.688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001922/0.2639, allocations: 179.2 kB / 436.5 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007167/0.2646, allocations: 498.6 kB / 437 MB, free: 1.027 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2646, allocations: 12 kB / 437 MB, free: 1.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.2646, allocations: 0 / 437 MB, free: 1.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.344e-06/0.2647, allocations: 0 / 437 MB, free: 1.016 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.001303/0.266, allocations: 0.5907 MB / 437.6 MB, free: 404 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.427e-05/0.266, allocations: 8.031 kB / 437.6 MB, free: 396 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001142/0.2661, allocations: 70.72 kB / 437.6 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003264/0.2664, allocations: 52.69 kB / 437.7 MB, free: 264 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006172/0.2671, allocations: 243.7 kB / 437.9 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001759/0.2672, allocations: 144 kB / 438.1 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.159e-05/0.2673, allocations: 28.38 kB / 438.1 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007381/0.268, allocations: 386.6 kB / 438.5 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.218e-05/0.2681, allocations: 4 kB / 438.5 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.922e-05/0.2681, allocations: 15.98 kB / 438.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.2681, allocations: 4 kB / 438.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008701/0.269, allocations: 418.2 kB / 438.9 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00237/0.2714, allocations: 1.208 MB / 440.1 MB, free: 13.71 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007435/0.2721, allocations: 332.1 kB / 440.4 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003998/0.2725, allocations: 168.7 kB / 440.6 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.479e-05/0.2725, allocations: 12.14 kB / 440.6 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.468e-05/0.2726, allocations: 31.28 kB / 440.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.554e-06/0.2726, allocations: 0 / 440.6 MB, free: 13.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.005036/0.2776, allocations: 1.667 MB / 442.3 MB, free: 11.43 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.43e-05/0.2777, allocations: 88.84 kB / 442.4 MB, free: 11.32 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003678/0.2781, allocations: 251.4 kB / 442.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.48e-05/0.2781, allocations: 37.7 kB / 442.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.2782, allocations: 140.7 kB / 442.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/0.2784, allocations: 154.7 kB / 443 MB, free: 10.73 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001481/0.2785, allocations: 94 kB / 443.1 MB, free: 10.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001733/0.2787, allocations: 334.8 kB / 443.4 MB, free: 10.3 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000391/0.2791, allocations: 164.8 kB / 443.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004402/0.2795, allocations: 229.9 kB / 443.8 MB, free: 9.895 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007294/0.2803, allocations: 335.2 kB / 444.1 MB, free: 9.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.725e-06/0.2803, allocations: 0 / 444.1 MB, free: 9.555 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.00121/0.2815, allocations: 0.5396 MB / 444.6 MB, free: 9.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.053e-05/0.2815, allocations: 4 kB / 444.6 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.2815, allocations: 8.125 kB / 444.6 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008834/0.2824, allocations: 292.6 kB / 444.9 MB, free: 8.703 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002662/0.2827, allocations: 55.89 kB / 445 MB, free: 8.648 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004333/0.287, allocations: 2.794 MB / 447.8 MB, free: 5.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002898/0.2873, allocations: 19.98 kB / 447.8 MB, free: 5.719 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.569e-05/0.2873, allocations: 23.92 kB / 447.8 MB, free: 5.695 MB / 350.1 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.0002178/0.2875, allocations: 157.8 kB / 448 MB, free: 5.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.701e-05/0.2876, allocations: 35.8 kB / 448 MB, free: 5.496 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001003/0.2877, allocations: 39 kB / 448 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.2877, allocations: 4 kB / 448.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.354e-06/0.2877, allocations: 0 / 448.1 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.653e-06/0.2877, allocations: 3.984 kB / 448.1 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002024/0.2898, allocations: 1.081 MB / 449.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.2898, allocations: 0 / 449.1 MB, free: 4.316 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002447/0.29, allocations: 51.89 kB / 449.2 MB, free: 4.266 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007459/0.2908, allocations: 276.6 kB / 449.5 MB, free: 3.992 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.896e-05/0.2908, allocations: 23.92 kB / 449.5 MB, free: 3.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003958/0.2948, allocations: 2.745 MB / 452.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.2948, allocations: 0 / 452.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001571/0.2963, allocations: 0.7923 MB / 453 MB, free: 308 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001627/0.2965, allocations: 71.77 kB / 453.1 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.155e-05/0.2966, allocations: 15.94 kB / 453.1 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002583/0.2968, allocations: 19.98 kB / 453.1 MB, free: 200 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001563/0.297, allocations: 71.92 kB / 453.2 MB, free: 128 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.346e-05/0.297, allocations: 19.98 kB / 453.2 MB, free: 108 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002398/0.2973, allocations: 176.5 kB / 453.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2973, allocations: 7.938 kB / 453.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006205/0.2979, allocations: 132 kB / 453.5 MB, free: 15.8 MB / 366.1 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.003265/0.3011, allocations: 1.659 MB / 455.2 MB, free: 14.24 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001341/0.3025, allocations: 0.586 MB / 455.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.357e-06/0.3025, allocations: 0 / 455.8 MB, free: 13.64 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007588/0.3032, allocations: 422.2 kB / 456.2 MB, free: 13.21 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004316/0.3037, allocations: 39.27 kB / 456.2 MB, free: 13.18 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005593/0.3093, allocations: 3.41 MB / 459.6 MB, free: 9.652 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004566/0.3097, allocations: 0.7762 MB / 460.4 MB, free: 8.852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002322/0.31, allocations: 82.91 kB / 460.5 MB, free: 8.773 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001807/0.3101, allocations: 87.39 kB / 460.6 MB, free: 8.688 MB / 366.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3101, allocations: 0 / 460.6 MB, free: 8.688 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04708/0.3572, allocations: 11.06 MB / 471.6 MB, free: 13.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.22/13.58, allocations: 4.062 kB / 471.6 MB, free: 13.7 MB / 382.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","/var/lib/jenkins1/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] Reference file matches [Calling sys.exit(0), Time elapsed: 16.20155033899937]