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.001533/0.001533, allocations: 119.8 kB / 20.44 MB, free: 1.461 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.001791/0.001791, allocations: 214.1 kB / 23.74 MB, free: 4.688 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.429/1.429, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.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 0.001544/0.001544, allocations: 51.91 kB / 377.8 MB, free: 3.156 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2698/0.2713, allocations: 53.36 MB / 431.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.004092/0.2754, allocations: 2.569 MB / 433.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002133/0.2775, allocations: 1.154 MB / 434.8 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001484/0.2777, allocations: 7.938 kB / 434.9 MB, free: 3.121 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002873/0.278, allocations: 71.42 kB / 434.9 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004649/0.2784, allocations: 167 kB / 435.1 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004213/0.2789, allocations: 187.6 kB / 435.3 MB, free: 2.707 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005726/0.2794, allocations: 0.5141 MB / 435.8 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.2796, allocations: 65.12 kB / 435.8 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003679/0.28, allocations: 239.3 kB / 436.1 MB, free: 1.887 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003898/0.2804, allocations: 279.1 kB / 436.4 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.986e-05/0.2804, allocations: 44 kB / 436.4 MB, free: 1.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002646/0.2807, allocations: 135.9 kB / 436.5 MB, free: 1.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001487/0.2809, allocations: 123.7 kB / 436.7 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002019/0.2811, allocations: 207 kB / 436.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006537/0.2817, allocations: 0.5414 MB / 437.4 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.321e-06/0.2817, allocations: 4 kB / 437.4 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.2817, allocations: 0 / 437.4 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.745e-06/0.2817, allocations: 0 / 437.4 MB, free: 0.5703 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.001347/0.2831, allocations: 0.6414 MB / 438 MB, free: 15.9 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.2831, allocations: 8.031 kB / 438 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.224e-05/0.2832, allocations: 74.72 kB / 438.1 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003945/0.2836, allocations: 60.67 kB / 438.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005662/0.2842, allocations: 255.2 kB / 438.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001751/0.2843, allocations: 148 kB / 438.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.849e-05/0.2844, allocations: 36.33 kB / 438.6 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008272/0.2852, allocations: 428.8 kB / 439 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.775e-05/0.2853, allocations: 0 / 439 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.814e-05/0.2853, allocations: 12 kB / 439 MB, free: 14.83 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.2853, allocations: 7.984 kB / 439 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.2863, allocations: 474.3 kB / 439.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00181/0.2881, allocations: 0.9398 MB / 440.5 MB, free: 13.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008764/0.289, allocations: 366.2 kB / 440.8 MB, free: 13.01 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004708/0.2895, allocations: 210 kB / 441 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.174e-05/0.2895, allocations: 8.422 kB / 441 MB, free: 12.8 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.269e-05/0.2896, allocations: 43 kB / 441.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=49): time 1.563e-06/0.2896, allocations: 0 / 441.1 MB, free: 12.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=55): time 0.005381/0.2949, allocations: 1.917 MB / 443 MB, free: 10.78 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.066e-05/0.295, allocations: 81.61 kB / 443.1 MB, free: 10.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003644/0.2954, allocations: 272.9 kB / 443.3 MB, free: 10.39 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.636e-05/0.2954, allocations: 33.7 kB / 443.4 MB, free: 10.36 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001106/0.2955, allocations: 141.2 kB / 443.5 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001725/0.2957, allocations: 198.3 kB / 443.7 MB, free: 10.02 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001536/0.2959, allocations: 98.11 kB / 443.8 MB, free: 9.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.296, allocations: 338.8 kB / 444.1 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004617/0.2965, allocations: 196.9 kB / 444.3 MB, free: 9.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005025/0.297, allocations: 240 kB / 444.5 MB, free: 9.145 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008441/0.2978, allocations: 383.3 kB / 444.9 MB, free: 8.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.897e-06/0.2978, allocations: 4 kB / 444.9 MB, free: 8.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001306/0.2991, allocations: 0.5965 MB / 445.5 MB, free: 8.156 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.274e-05/0.2992, allocations: 7.938 kB / 445.5 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.705e-06/0.2992, allocations: 0 / 445.5 MB, free: 8.148 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008416/0.3, allocations: 314.5 kB / 445.8 MB, free: 7.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003645/0.3004, allocations: 67.89 kB / 445.9 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004224/0.3046, allocations: 2.846 MB / 448.7 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000322/0.3049, allocations: 32 kB / 448.8 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.86e-05/0.305, allocations: 19.98 kB / 448.8 MB, free: 4.762 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.0002353/0.3052, allocations: 161.5 kB / 449 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.828e-05/0.3053, allocations: 35.75 kB / 449 MB, free: 4.562 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001239/0.3054, allocations: 59.61 kB / 449 MB, free: 4.508 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.561e-06/0.3054, allocations: 4 kB / 449.1 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.3054, allocations: 0 / 449.1 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.3054, allocations: 7.969 kB / 449.1 MB, free: 4.496 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002397/0.3078, allocations: 1.246 MB / 450.3 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.416e-06/0.3078, allocations: 0 / 450.3 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003553/0.3082, allocations: 71.88 kB / 450.4 MB, free: 3.125 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007354/0.3089, allocations: 284.6 kB / 450.7 MB, free: 2.844 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.21e-05/0.309, allocations: 15.98 kB / 450.7 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004045/0.313, allocations: 2.753 MB / 453.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.313, allocations: 4.062 kB / 453.4 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.315, allocations: 0.9408 MB / 454.4 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000192/0.3152, allocations: 83.75 kB / 454.4 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.808e-05/0.3152, allocations: 20 kB / 454.5 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003038/0.3155, allocations: 27.91 kB / 454.5 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001807/0.3157, allocations: 76.3 kB / 454.6 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4e-05/0.3157, allocations: 23.97 kB / 454.6 MB, free: 14.76 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000276/0.316, allocations: 196.5 kB / 454.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.316, allocations: 0 / 454.8 MB, free: 14.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006367/0.3167, allocations: 151.9 kB / 454.9 MB, free: 14.42 MB / 366.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.003651/0.3203, allocations: 1.781 MB / 456.7 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001528/0.3218, allocations: 0.6674 MB / 457.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.3218, allocations: 0 / 457.4 MB, free: 12.07 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008805/0.3227, allocations: 460.2 kB / 457.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004835/0.3232, allocations: 47.34 kB / 457.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006543/0.3297, allocations: 3.804 MB / 461.7 MB, free: 7.664 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004786/0.3302, allocations: 0.789 MB / 462.5 MB, free: 6.844 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002504/0.3305, allocations: 78.91 kB / 462.5 MB, free: 6.766 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002097/0.3307, allocations: 111.4 kB / 462.7 MB, free: 6.656 MB / 366.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3307, allocations: 0 / 462.7 MB, free: 6.656 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04719/0.3779, allocations: 12.22 MB / 474.9 MB, free: 10.52 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.25/13.63, allocations: 3.938 kB / 474.9 MB, free: 10.52 MB / 382.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","/var/lib/jenkins1/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: 16.157017420002376]