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.001342/0.001342, allocations: 111.1 kB / 20.44 MB, free: 1.184 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.001488/0.001488, allocations: 208.4 kB / 23.73 MB, free: 4.387 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: 7.773 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.001598/0.001598, allocations: 47.92 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2289/0.2305, allocations: 53.38 MB / 431.1 MB, free: 6.621 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003921/0.2344, allocations: 2.323 MB / 433.4 MB, free: 4.293 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001781/0.2362, allocations: 1.003 MB / 434.4 MB, free: 3.285 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.2363, allocations: 7.938 kB / 434.4 MB, free: 3.277 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002656/0.2365, allocations: 71.42 kB / 434.5 MB, free: 3.207 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004371/0.237, allocations: 158.8 kB / 434.6 MB, free: 3.055 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003786/0.2374, allocations: 159.7 kB / 434.8 MB, free: 2.898 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005293/0.2379, allocations: 474.7 kB / 435.3 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001445/0.238, allocations: 44.86 kB / 435.3 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002433/0.2383, allocations: 211.4 kB / 435.5 MB, free: 2.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003173/0.2386, allocations: 231.2 kB / 435.7 MB, free: 1.953 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.282e-05/0.2387, allocations: 36 kB / 435.8 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002289/0.2389, allocations: 124 kB / 435.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000131/0.239, allocations: 99.77 kB / 436 MB, free: 1.699 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.2392, allocations: 163.3 kB / 436.1 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005827/0.2398, allocations: 499.9 kB / 436.6 MB, free: 1.051 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.76e-06/0.2398, allocations: 4 kB / 436.6 MB, free: 1.047 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2398, allocations: 4 kB / 436.6 MB, free: 1.043 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.632e-06/0.2398, allocations: 0 / 436.6 MB, free: 1.043 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.001153/0.2409, allocations: 0.5907 MB / 437.2 MB, free: 432 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.697e-05/0.241, allocations: 8.031 kB / 437.2 MB, free: 424 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.304e-05/0.241, allocations: 70.73 kB / 437.3 MB, free: 344 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002961/0.2413, allocations: 52.72 kB / 437.4 MB, free: 292 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005214/0.2419, allocations: 251.6 kB / 437.6 MB, free: 12 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002098/0.2421, allocations: 136 kB / 437.7 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.5e-05/0.2421, allocations: 32.38 kB / 437.8 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007362/0.2429, allocations: 412.2 kB / 438.2 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.502e-05/0.2429, allocations: 7.953 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.581e-05/0.2429, allocations: 8 kB / 438.2 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.347e-05/0.2429, allocations: 12 kB / 438.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008281/0.2438, allocations: 414.2 kB / 438.6 MB, free: 14.97 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002037/0.2458, allocations: 1.122 MB / 439.7 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006725/0.2465, allocations: 324.5 kB / 440 MB, free: 13.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003702/0.2469, allocations: 176.7 kB / 440.2 MB, free: 13.29 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.2469, allocations: 4.719 kB / 440.2 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.929e-05/0.2469, allocations: 38.56 kB / 440.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.064e-06/0.2469, allocations: 0 / 440.3 MB, free: 13.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004605/0.2515, allocations: 1.663 MB / 441.9 MB, free: 11.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.83e-05/0.2516, allocations: 92.84 kB / 442 MB, free: 11.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003328/0.2519, allocations: 251.4 kB / 442.3 MB, free: 11.15 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.366e-05/0.252, allocations: 33.7 kB / 442.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.2521, allocations: 140.8 kB / 442.4 MB, free: 10.96 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001324/0.2522, allocations: 158.8 kB / 442.6 MB, free: 10.81 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001473/0.2524, allocations: 86.06 kB / 442.7 MB, free: 10.72 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.2525, allocations: 338.8 kB / 443 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003654/0.2529, allocations: 164.8 kB / 443.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004472/0.2533, allocations: 251.6 kB / 443.4 MB, free: 9.949 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006945/0.254, allocations: 335.2 kB / 443.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.254, allocations: 0 / 443.7 MB, free: 9.609 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001143/0.2552, allocations: 0.5435 MB / 444.3 MB, free: 9.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.992e-05/0.2552, allocations: 8 kB / 444.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.2552, allocations: 0 / 444.3 MB, free: 9.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007811/0.256, allocations: 292.7 kB / 444.6 MB, free: 8.758 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002454/0.2562, allocations: 59.89 kB / 444.6 MB, free: 8.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003947/0.2602, allocations: 2.75 MB / 447.4 MB, free: 5.836 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002692/0.2604, allocations: 23.98 kB / 447.4 MB, free: 5.812 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.498e-05/0.2605, allocations: 19.98 kB / 447.4 MB, free: 5.793 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.0001944/0.2607, allocations: 153.7 kB / 447.6 MB, free: 5.633 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.991e-05/0.2607, allocations: 31.88 kB / 447.6 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.397e-05/0.2608, allocations: 46.98 kB / 447.6 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.614e-06/0.2608, allocations: 11.98 kB / 447.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.645e-06/0.2608, allocations: 0 / 447.7 MB, free: 5.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.2608, allocations: 3.984 kB / 447.7 MB, free: 5.539 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001906/0.2627, allocations: 1.015 MB / 448.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.442e-06/0.2628, allocations: 4 kB / 448.7 MB, free: 4.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.263, allocations: 51.84 kB / 448.7 MB, free: 4.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006974/0.2637, allocations: 280.7 kB / 449 MB, free: 4.141 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.791e-05/0.2637, allocations: 19.92 kB / 449 MB, free: 4.121 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003793/0.2675, allocations: 2.703 MB / 451.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.2675, allocations: 0 / 451.7 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001559/0.2691, allocations: 0.8001 MB / 452.5 MB, free: 500 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001686/0.2692, allocations: 67.78 kB / 452.6 MB, free: 432 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.021e-05/0.2693, allocations: 11.94 kB / 452.6 MB, free: 420 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002571/0.2696, allocations: 27.97 kB / 452.6 MB, free: 392 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001562/0.2697, allocations: 59.88 kB / 452.7 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.651e-05/0.2697, allocations: 23.92 kB / 452.7 MB, free: 308 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002212/0.27, allocations: 184.5 kB / 452.9 MB, free: 124 kB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.27, allocations: 0 / 452.9 MB, free: 124 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006023/0.2706, allocations: 136 kB / 453 MB, free: 15.98 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.00332/0.2739, allocations: 1.677 MB / 454.7 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00134/0.2752, allocations: 0.586 MB / 455.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.2752, allocations: 0 / 455.3 MB, free: 13.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000759/0.276, allocations: 426.1 kB / 455.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004982/0.2765, allocations: 47.69 kB / 455.8 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00554/0.282, allocations: 3.406 MB / 459.2 MB, free: 9.832 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001937/0.2822, allocations: 175.8 kB / 459.3 MB, free: 9.641 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002399/0.2825, allocations: 74.92 kB / 459.4 MB, free: 9.57 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001744/0.2826, allocations: 87.39 kB / 459.5 MB, free: 9.484 MB / 366.1 MB Notification: Performance of SimCode: time 1.012e-06/0.2826, allocations: 0 / 459.5 MB, free: 9.484 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04548/0.3281, allocations: 10.48 MB / 470 MB, free: 15.09 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/13.37, allocations: 0 / 470 MB, free: 15.09 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: 15.845647159032524]