Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.001654/0.001654, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001967/0.001967, allocations: 210.4 kB / 23.73 MB, free: 4.523 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.457/1.457, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.LossyGearDemo2,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 55.92 kB / 377.7 MB, free: 3.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2525, allocations: 53.36 MB / 431.1 MB, free: 6.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004826/0.2574, allocations: 2.692 MB / 433.8 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002668/0.26, allocations: 1.217 MB / 435 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002344/0.2603, allocations: 7.938 kB / 435 MB, free: 2.738 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003658/0.2606, allocations: 95.27 kB / 435.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006812/0.2613, allocations: 222.5 kB / 435.3 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006377/0.262, allocations: 255.5 kB / 435.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008452/0.2628, allocations: 0.7133 MB / 436.3 MB, free: 1.465 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002176/0.263, allocations: 87.91 kB / 436.3 MB, free: 1.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005341/0.2636, allocations: 335.1 kB / 436.7 MB, free: 1.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005087/0.2641, allocations: 386.8 kB / 437 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001104/0.2642, allocations: 60 kB / 437.1 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003656/0.2645, allocations: 152 kB / 437.3 MB, free: 468 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000249/0.2648, allocations: 175.5 kB / 437.4 MB, free: 292 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002863/0.2651, allocations: 227 kB / 437.6 MB, free: 64 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001197/0.2663, allocations: 0.7206 MB / 438.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.788e-05/0.2663, allocations: 4 kB / 438.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.645e-06/0.2663, allocations: 0 / 438.4 MB, free: 15.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.295e-05/0.2663, allocations: 0 / 438.4 MB, free: 15.34 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 100 * Number of variables: 100 Notification: Performance of Generate backend data structure: time 0.001903/0.2682, allocations: 0.7854 MB / 439.2 MB, free: 14.52 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.828e-05/0.2683, allocations: 8.031 kB / 439.2 MB, free: 14.51 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001157/0.2684, allocations: 82.72 kB / 439.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004271/0.2688, allocations: 76.62 kB / 439.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007048/0.2695, allocations: 316.7 kB / 439.6 MB, free: 14.01 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001944/0.2697, allocations: 152.4 kB / 439.8 MB, free: 13.84 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001079/0.2698, allocations: 40.33 kB / 439.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001167/0.271, allocations: 0.5894 MB / 440.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.112e-05/0.271, allocations: 0 / 440.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.338e-05/0.2711, allocations: 16 kB / 440.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.269e-05/0.2711, allocations: 16 kB / 440.4 MB, free: 13.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001348/0.2724, allocations: 0.5933 MB / 441 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0027/0.2751, allocations: 1.134 MB / 442.2 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001214/0.2763, allocations: 0.4938 MB / 442.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006321/0.277, allocations: 284.7 kB / 442.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.87e-05/0.277, allocations: 16.48 kB / 443 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.319e-05/0.2771, allocations: 39.06 kB / 443 MB, free: 10.54 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.324e-06/0.2771, allocations: 0 / 443 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.006945/0.284, allocations: 2.43 MB / 445.4 MB, free: 8.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.227e-05/0.2841, allocations: 85.77 kB / 445.5 MB, free: 7.969 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004827/0.2846, allocations: 348.5 kB / 445.8 MB, free: 7.617 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.06e-05/0.2846, allocations: 45.7 kB / 445.9 MB, free: 7.566 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001362/0.2848, allocations: 173.7 kB / 446.1 MB, free: 7.391 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002288/0.285, allocations: 249.9 kB / 446.3 MB, free: 7.145 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002233/0.2852, allocations: 126.3 kB / 446.4 MB, free: 7.016 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001626/0.2854, allocations: 346.8 kB / 446.8 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006371/0.286, allocations: 269.2 kB / 447 MB, free: 6.406 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007034/0.2867, allocations: 360.2 kB / 447.4 MB, free: 6.035 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001108/0.2878, allocations: 495.5 kB / 447.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.277e-06/0.2878, allocations: 0 / 447.9 MB, free: 5.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.00187/0.2897, allocations: 0.818 MB / 448.7 MB, free: 4.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.2897, allocations: 8 kB / 448.7 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.253e-06/0.2897, allocations: 0 / 448.7 MB, free: 4.707 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/0.2909, allocations: 444.4 kB / 449.1 MB, free: 4.27 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.2913, allocations: 87.88 kB / 449.2 MB, free: 4.184 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001369/0.2927, allocations: 1.019 MB / 450.2 MB, free: 3.141 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005155/0.2932, allocations: 60.03 kB / 450.3 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.596e-05/0.2933, allocations: 27.92 kB / 450.3 MB, free: 3.055 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 15 (bearingFriction.free,gear.ideal,bearingFriction.mode,$PRE.bearingFriction.mode,bearingFriction.locked,bearingFriction.startBackward,$PRE.bearingFriction.startBackward,bearingFriction.startForward,$PRE.bearingFriction.startForward,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 (46): * Single equations (assignments): 45 * 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,33)} Notification: Performance of prepare postOptimizeDAE: time 0.0002757/0.2935, allocations: 181.8 kB / 450.5 MB, free: 2.867 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.2937, allocations: 43.72 kB / 450.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001842/0.2938, allocations: 67.86 kB / 450.6 MB, free: 2.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.773e-06/0.2938, allocations: 8 kB / 450.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.2939, allocations: 7.938 kB / 450.6 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.2939, allocations: 3.984 kB / 450.6 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003356/0.2972, allocations: 1.563 MB / 452.2 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.258e-06/0.2972, allocations: 4.031 kB / 452.2 MB, free: 1.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000395/0.2976, allocations: 79.88 kB / 452.3 MB, free: 1.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001008/0.2986, allocations: 416.5 kB / 452.7 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.246e-05/0.2987, allocations: 19.98 kB / 452.7 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001321/0.3, allocations: 0.9828 MB / 453.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3, allocations: 0 / 453.7 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002591/0.3026, allocations: 1.204 MB / 454.9 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003191/0.3029, allocations: 111.6 kB / 455 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001046/0.303, allocations: 24.12 kB / 455 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004407/0.3035, allocations: 47.94 kB / 455.1 MB, free: 14.19 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002217/0.3037, allocations: 100.4 kB / 455.2 MB, free: 14.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.485e-05/0.3037, allocations: 27.92 kB / 455.2 MB, free: 14.06 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003417/0.3041, allocations: 259 kB / 455.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3041, allocations: 0 / 455.4 MB, free: 13.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005412/0.3046, allocations: 147.9 kB / 455.6 MB, free: 13.66 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: 9 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode,bearingFriction.startForward,bearingFriction.startBackward,bearingFriction.locked,bearingFriction.mode) * Number of discrete states: 4 (bearingFriction.mode,bearingFriction.startBackward,bearingFriction.startForward,gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (39): * Single equations (assignments): 38 * 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,30)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004311/0.3089, allocations: 2.066 MB / 457.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00174/0.3107, allocations: 0.6273 MB / 458.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.3107, allocations: 0 / 458.3 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008666/0.3115, allocations: 352.7 kB / 458.6 MB, free: 10.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006139/0.3121, allocations: 70.02 kB / 458.7 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009175/0.3213, allocations: 4.865 MB / 463.6 MB, free: 5.711 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000251/0.3216, allocations: 218 kB / 463.8 MB, free: 5.477 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003069/0.3219, allocations: 83.34 kB / 463.8 MB, free: 5.395 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002827/0.3222, allocations: 151.3 kB / 464 MB, free: 5.246 MB / 366.1 MB Notification: Performance of SimCode: time 8.72e-07/0.3222, allocations: 0 / 464 MB, free: 5.246 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04759/0.3698, allocations: 13.89 MB / 477.9 MB, free: 7.438 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/13.34, allocations: 6.75 kB / 477.9 MB, free: 7.434 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_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_LossyGearDemo2.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable bearingFriction.mode in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.893184340005973]