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.001612/0.001612, 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.001968/0.001968, allocations: 213.6 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.45/1.45, 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.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.001542/0.001542, allocations: 52.06 kB / 377.8 MB, free: 3.125 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2442/0.2457, allocations: 53.37 MB / 431.1 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004525/0.2502, allocations: 2.879 MB / 434 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002337/0.2526, allocations: 1.291 MB / 435.3 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001733/0.2528, allocations: 11.94 kB / 435.3 MB, free: 2.789 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003335/0.2531, allocations: 91.27 kB / 435.4 MB, free: 2.699 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005369/0.2536, allocations: 219.3 kB / 435.6 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00054/0.2542, allocations: 255.5 kB / 435.9 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007896/0.255, allocations: 0.7133 MB / 436.6 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002006/0.2552, allocations: 95.84 kB / 436.7 MB, free: 1.422 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005183/0.2557, allocations: 331.1 kB / 437 MB, free: 1.098 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00052/0.2562, allocations: 394.8 kB / 437.4 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001003/0.2563, allocations: 60 kB / 437.4 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002823/0.2566, allocations: 152 kB / 437.6 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002034/0.2568, allocations: 167.5 kB / 437.8 MB, free: 348 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002649/0.257, allocations: 270.7 kB / 438 MB, free: 76 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008548/0.2579, allocations: 0.7219 MB / 438.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.322e-06/0.2579, allocations: 4 kB / 438.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.2579, allocations: 0 / 438.7 MB, free: 15.35 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.205e-06/0.2579, allocations: 0 / 438.7 MB, free: 15.35 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.001651/0.2596, allocations: 0.7816 MB / 439.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.2596, allocations: 8.031 kB / 439.5 MB, free: 14.53 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001069/0.2597, allocations: 86.72 kB / 439.6 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00042/0.2601, allocations: 72.62 kB / 439.7 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006221/0.2608, allocations: 312.7 kB / 440 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001793/0.2609, allocations: 152.4 kB / 440.1 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.148e-05/0.261, allocations: 40.33 kB / 440.2 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.2621, allocations: 0.5682 MB / 440.8 MB, free: 13.24 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.387e-05/0.2622, allocations: 3.984 kB / 440.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.402e-05/0.2622, allocations: 16 kB / 440.8 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.2622, allocations: 8 kB / 440.8 MB, free: 13.21 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001346/0.2636, allocations: 0.6089 MB / 441.4 MB, free: 12.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002526/0.2661, allocations: 1.243 MB / 442.6 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00118/0.2673, allocations: 0.5012 MB / 443.1 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006032/0.2679, allocations: 274.2 kB / 443.4 MB, free: 10.53 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.369e-05/0.2679, allocations: 8.5 kB / 443.4 MB, free: 10.52 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.582e-05/0.268, allocations: 43.06 kB / 443.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 1.913e-06/0.268, allocations: 0 / 443.4 MB, free: 10.47 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.006744/0.2747, allocations: 2.434 MB / 445.9 MB, free: 7.992 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.855e-05/0.2748, allocations: 89.77 kB / 446 MB, free: 7.887 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004853/0.2753, allocations: 348.5 kB / 446.3 MB, free: 7.535 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.412e-05/0.2754, allocations: 41.7 kB / 446.4 MB, free: 7.488 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.2755, allocations: 169.7 kB / 446.5 MB, free: 7.316 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002169/0.2757, allocations: 249.9 kB / 446.8 MB, free: 7.07 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002232/0.2759, allocations: 122.3 kB / 446.9 MB, free: 6.945 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001648/0.2761, allocations: 350.8 kB / 447.2 MB, free: 6.594 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000618/0.2767, allocations: 273.2 kB / 447.5 MB, free: 6.328 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000672/0.2774, allocations: 326.5 kB / 447.8 MB, free: 5.996 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.2785, allocations: 0.4917 MB / 448.3 MB, free: 5.496 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2785, allocations: 4.031 kB / 448.3 MB, free: 5.492 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001855/0.2803, allocations: 0.818 MB / 449.1 MB, free: 4.664 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.2804, allocations: 8 kB / 449.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.083e-06/0.2804, allocations: 0 / 449.1 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001128/0.2815, allocations: 440.4 kB / 449.6 MB, free: 4.223 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003868/0.2819, allocations: 91.81 kB / 449.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001407/0.2833, allocations: 1.023 MB / 450.7 MB, free: 3.086 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004997/0.2838, allocations: 59.97 kB / 450.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.579e-05/0.2838, allocations: 27.92 kB / 450.8 MB, free: 3 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.0002806/0.2841, allocations: 181.7 kB / 450.9 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00012/0.2842, allocations: 47.7 kB / 451 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001671/0.2844, allocations: 71.92 kB / 451.1 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-05/0.2844, allocations: 8 kB / 451.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.594e-06/0.2844, allocations: 0 / 451.1 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.2844, allocations: 3.984 kB / 451.1 MB, free: 2.684 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003394/0.2878, allocations: 1.656 MB / 452.7 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.131e-06/0.2878, allocations: 8 kB / 452.7 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003813/0.2882, allocations: 79.88 kB / 452.8 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001009/0.2892, allocations: 416.6 kB / 453.2 MB, free: 480 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.61e-05/0.2893, allocations: 23.97 kB / 453.2 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001326/0.2906, allocations: 0.9828 MB / 454.2 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.998e-06/0.2906, allocations: 3.984 kB / 454.2 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002626/0.2933, allocations: 1.208 MB / 455.4 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000305/0.2936, allocations: 111.6 kB / 455.5 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001065/0.2937, allocations: 28.05 kB / 455.6 MB, free: 14.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004398/0.2941, allocations: 47.94 kB / 455.6 MB, free: 14.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002116/0.2943, allocations: 88.48 kB / 455.7 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.93e-05/0.2944, allocations: 31.91 kB / 455.7 MB, free: 13.91 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003729/0.2947, allocations: 255 kB / 456 MB, free: 13.65 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2947, allocations: 0 / 456 MB, free: 13.65 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005454/0.2953, allocations: 143.9 kB / 456.1 MB, free: 13.51 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.004174/0.2995, allocations: 2.044 MB / 458.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001619/0.3011, allocations: 0.6312 MB / 458.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.766e-06/0.3011, allocations: 0 / 458.8 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008432/0.3019, allocations: 340.6 kB / 459.1 MB, free: 10.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000566/0.3025, allocations: 78.98 kB / 459.2 MB, free: 10.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008984/0.3115, allocations: 4.872 MB / 464.1 MB, free: 5.551 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005149/0.312, allocations: 0.8252 MB / 464.9 MB, free: 4.699 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002949/0.3123, allocations: 79.36 kB / 465 MB, free: 4.621 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002754/0.3126, allocations: 147.4 kB / 465.1 MB, free: 4.477 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3126, allocations: 0 / 465.1 MB, free: 4.477 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04918/0.3617, allocations: 15.16 MB / 480.3 MB, free: 5.402 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.39/13.75, allocations: 11.61 kB / 480.3 MB, free: 5.395 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: 16.260746789001132]