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.001427/0.001427, allocations: 107.5 kB / 20.44 MB, free: 1.066 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.001542/0.001542, allocations: 186.4 kB / 23.7 MB, free: 4.191 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.444/1.444, allocations: 225.7 MB / 252.5 MB, free: 12.86 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.001844/0.001844, allocations: 51.92 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2851/0.287, allocations: 52.17 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.003937/0.2909, allocations: 2.31 MB / 424.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.2929, allocations: 0.917 MB / 425.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001368/0.293, allocations: 4 kB / 425.8 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.2933, allocations: 55.48 kB / 425.8 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005645/0.2938, allocations: 155.1 kB / 426 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003943/0.2942, allocations: 183.6 kB / 426.2 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005176/0.2947, allocations: 478.4 kB / 426.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001743/0.2949, allocations: 57.14 kB / 426.7 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003079/0.2952, allocations: 219.3 kB / 426.9 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003356/0.2956, allocations: 227.2 kB / 427.1 MB, free: 9.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.702e-05/0.2956, allocations: 40 kB / 427.2 MB, free: 9.754 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002306/0.2959, allocations: 119.9 kB / 427.3 MB, free: 9.637 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001503/0.296, allocations: 107.7 kB / 427.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001697/0.2962, allocations: 159.3 kB / 427.5 MB, free: 9.375 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006571/0.2968, allocations: 0.4998 MB / 428 MB, free: 8.875 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.2968, allocations: 4 kB / 428.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2968, allocations: 0 / 428.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.274e-06/0.2968, allocations: 0 / 428.1 MB, free: 8.871 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.00136/0.2982, allocations: 0.6026 MB / 428.7 MB, free: 8.238 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.719e-05/0.2983, allocations: 12.03 kB / 428.7 MB, free: 8.227 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.754e-05/0.2983, allocations: 66.72 kB / 428.7 MB, free: 8.152 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003176/0.2987, allocations: 56.69 kB / 428.8 MB, free: 8.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005867/0.2993, allocations: 262.8 kB / 429 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001989/0.2995, allocations: 140 kB / 429.2 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.105e-05/0.2995, allocations: 32.38 kB / 429.2 MB, free: 7.625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008685/0.3004, allocations: 442.5 kB / 429.6 MB, free: 7.176 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.415e-05/0.3004, allocations: 7.953 kB / 429.7 MB, free: 7.168 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.6e-05/0.3005, allocations: 11.94 kB / 429.7 MB, free: 7.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.089e-05/0.3005, allocations: 8 kB / 429.7 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.3015, allocations: 466.3 kB / 430.1 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001738/0.3032, allocations: 0.8308 MB / 431 MB, free: 5.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008803/0.3041, allocations: 381 kB / 431.3 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004629/0.3046, allocations: 214.1 kB / 431.5 MB, free: 5.227 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.046e-05/0.3046, allocations: 12.38 kB / 431.6 MB, free: 5.215 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.773e-05/0.3047, allocations: 35 kB / 431.6 MB, free: 5.172 MB / 334.1 MB Notification: Performance of pre-optimization done (n=49): time 2.114e-06/0.3047, allocations: 4 kB / 431.6 MB, free: 5.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=55): time 0.005374/0.31, allocations: 1.933 MB / 433.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.042e-05/0.3101, allocations: 81.61 kB / 433.6 MB, free: 3.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003708/0.3105, allocations: 267 kB / 433.9 MB, free: 2.809 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.015e-05/0.3105, allocations: 37.7 kB / 433.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001186/0.3107, allocations: 137.2 kB / 434 MB, free: 2.629 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.3108, allocations: 190.4 kB / 434.2 MB, free: 2.441 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.311, allocations: 94.17 kB / 434.3 MB, free: 2.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.3111, allocations: 334.8 kB / 434.6 MB, free: 2.008 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004844/0.3116, allocations: 204.8 kB / 434.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005009/0.3121, allocations: 265.7 kB / 435.1 MB, free: 1.535 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008471/0.313, allocations: 395.3 kB / 435.5 MB, free: 1.145 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.313, allocations: 0 / 435.5 MB, free: 1.145 MB / 334.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001324/0.3143, allocations: 0.612 MB / 436.1 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.689e-05/0.3143, allocations: 11.94 kB / 436.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.204e-06/0.3143, allocations: 0 / 436.1 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008098/0.3151, allocations: 251.8 kB / 436.4 MB, free: 272 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000323/0.3155, allocations: 67.89 kB / 436.4 MB, free: 204 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004247/0.3197, allocations: 2.793 MB / 439.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003346/0.32, allocations: 27.97 kB / 439.2 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.748e-05/0.3201, allocations: 19.98 kB / 439.3 MB, free: 13.24 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.0002299/0.3203, allocations: 157.8 kB / 439.4 MB, free: 13.08 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.263e-05/0.3204, allocations: 35.8 kB / 439.4 MB, free: 13.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.403e-05/0.3205, allocations: 47.38 kB / 439.5 MB, free: 13 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.592e-06/0.3205, allocations: 8 kB / 439.5 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.3205, allocations: 3.938 kB / 439.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.3205, allocations: 3.984 kB / 439.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002239/0.3228, allocations: 1.152 MB / 440.7 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.941e-06/0.3228, allocations: 3.984 kB / 440.7 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003378/0.3231, allocations: 71.92 kB / 440.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007375/0.3238, allocations: 236.7 kB / 441 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.256e-05/0.3239, allocations: 15.98 kB / 441 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003955/0.3278, allocations: 2.707 MB / 443.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.3278, allocations: 0 / 443.7 MB, free: 8.641 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001872/0.3297, allocations: 0.9567 MB / 444.6 MB, free: 7.656 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001932/0.3299, allocations: 71.78 kB / 444.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.281e-05/0.33, allocations: 19.88 kB / 444.7 MB, free: 7.566 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.3303, allocations: 23.97 kB / 444.8 MB, free: 7.543 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001676/0.3304, allocations: 76.3 kB / 444.8 MB, free: 7.469 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.509e-05/0.3305, allocations: 15.98 kB / 444.9 MB, free: 7.453 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002451/0.3307, allocations: 200.6 kB / 445 MB, free: 7.258 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3307, allocations: 4 kB / 445.1 MB, free: 7.254 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006301/0.3313, allocations: 155.9 kB / 445.2 MB, free: 7.102 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.002389/0.3337, allocations: 1.547 MB / 446.7 MB, free: 5.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.3352, allocations: 0.6713 MB / 447.4 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.3352, allocations: 0 / 447.4 MB, free: 4.832 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008554/0.3361, allocations: 464.2 kB / 447.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.3365, allocations: 47.41 kB / 447.9 MB, free: 4.332 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006219/0.3427, allocations: 3.812 MB / 451.7 MB, free: 428 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002273/0.343, allocations: 194.8 kB / 451.9 MB, free: 212 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002287/0.3432, allocations: 66.94 kB / 452 MB, free: 148 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001863/0.3434, allocations: 99.39 kB / 452.1 MB, free: 48 kB / 350.1 MB Notification: Performance of SimCode: time 8.81e-07/0.3434, allocations: 0 / 452.1 MB, free: 48 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04757/0.391, allocations: 10.85 MB / 462.9 MB, free: 5.379 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.91/13.3, allocations: 2.75 kB / 462.9 MB, free: 5.379 MB / 366.1 MB " [Timeout remaining time 647] (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: 15.796569393016398]