Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001343/0.001343, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002017/0.002017, allocations: 202.2 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.435/1.435, allocations: 230.5 MB / 257.4 MB, free: 7.766 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 71.83 kB / 377.7 MB, free: 2.812 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2092/0.2111, allocations: 53.41 MB / 431.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003957/0.2151, allocations: 2.323 MB / 433.5 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001867/0.2169, allocations: 1.014 MB / 434.5 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001409/0.2171, allocations: 7.938 kB / 434.5 MB, free: 3.086 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002583/0.2173, allocations: 71.48 kB / 434.5 MB, free: 3.016 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000425/0.2178, allocations: 154.8 kB / 434.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003744/0.2181, allocations: 159.7 kB / 434.9 MB, free: 2.711 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005017/0.2186, allocations: 474.7 kB / 435.3 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000137/0.2188, allocations: 48.86 kB / 435.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002379/0.219, allocations: 203.5 kB / 435.6 MB, free: 1.996 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003188/0.2193, allocations: 235.2 kB / 435.8 MB, free: 1.766 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.593e-05/0.2194, allocations: 40 kB / 435.8 MB, free: 1.727 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002486/0.2197, allocations: 116 kB / 435.9 MB, free: 1.613 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001336/0.2198, allocations: 111.7 kB / 436.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.2199, allocations: 159.3 kB / 436.2 MB, free: 1.348 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005775/0.2205, allocations: 0.496 MB / 436.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.357e-06/0.2205, allocations: 0 / 436.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.2205, allocations: 0 / 436.7 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.262e-06/0.2205, allocations: 4 kB / 436.7 MB, free: 0.8477 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.001143/0.2217, allocations: 0.5946 MB / 437.3 MB, free: 228 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.698e-05/0.2217, allocations: 11.98 kB / 437.3 MB, free: 216 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.828e-05/0.2218, allocations: 66.73 kB / 437.4 MB, free: 140 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002923/0.2221, allocations: 52.72 kB / 437.4 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005231/0.2226, allocations: 239.4 kB / 437.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000159/0.2228, allocations: 140 kB / 437.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.2228, allocations: 28.38 kB / 437.8 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007692/0.2236, allocations: 412.2 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.2236, allocations: 7.953 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.469e-05/0.2237, allocations: 16 kB / 438.3 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.2237, allocations: 8 kB / 438.3 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008546/0.2245, allocations: 410.2 kB / 438.7 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002109/0.2266, allocations: 1.13 MB / 439.8 MB, free: 13.59 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007188/0.2274, allocations: 328.9 kB / 440.1 MB, free: 13.27 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003755/0.2277, allocations: 164.8 kB / 440.3 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.503e-05/0.2278, allocations: 8.719 kB / 440.3 MB, free: 13.09 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.2278, allocations: 30.56 kB / 440.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 1.873e-06/0.2278, allocations: 4 kB / 440.3 MB, free: 13.05 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004682/0.2325, allocations: 1.667 MB / 442 MB, free: 11.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.987e-05/0.2325, allocations: 84.86 kB / 442.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003243/0.2329, allocations: 250.8 kB / 442.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.342e-05/0.2329, allocations: 33.7 kB / 442.3 MB, free: 10.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001033/0.233, allocations: 140.8 kB / 442.5 MB, free: 10.79 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001378/0.2331, allocations: 158.8 kB / 442.6 MB, free: 10.63 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.2333, allocations: 94.06 kB / 442.7 MB, free: 10.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.2334, allocations: 334.8 kB / 443.1 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000373/0.2338, allocations: 164.7 kB / 443.2 MB, free: 10.04 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004325/0.2342, allocations: 255.6 kB / 443.5 MB, free: 9.766 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006961/0.2349, allocations: 331.2 kB / 443.8 MB, free: 9.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2349, allocations: 4.031 kB / 443.8 MB, free: 9.422 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001169/0.2361, allocations: 0.5396 MB / 444.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.845e-05/0.2361, allocations: 11.94 kB / 444.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.271e-06/0.2361, allocations: 0 / 444.3 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007905/0.2369, allocations: 301.5 kB / 444.6 MB, free: 8.562 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002497/0.2372, allocations: 59.89 kB / 444.7 MB, free: 8.504 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003935/0.2411, allocations: 2.747 MB / 447.4 MB, free: 5.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002678/0.2414, allocations: 23.98 kB / 447.5 MB, free: 5.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/0.2414, allocations: 15.98 kB / 447.5 MB, free: 5.602 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.0002114/0.2416, allocations: 169.7 kB / 447.7 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.288e-05/0.2417, allocations: 27.81 kB / 447.7 MB, free: 5.398 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.65e-05/0.2418, allocations: 39 kB / 447.7 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.959e-06/0.2418, allocations: 4 kB / 447.7 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.2418, allocations: 0 / 447.7 MB, free: 5.355 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.73e-06/0.2418, allocations: 7.984 kB / 447.7 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001947/0.2438, allocations: 1.015 MB / 448.7 MB, free: 4.281 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.065e-06/0.2438, allocations: 4 kB / 448.7 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002239/0.244, allocations: 43.91 kB / 448.8 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007126/0.2447, allocations: 285 kB / 449.1 MB, free: 3.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.752e-05/0.2447, allocations: 15.92 kB / 449.1 MB, free: 3.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003798/0.2485, allocations: 2.695 MB / 451.8 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.2485, allocations: 4 kB / 451.8 MB, free: 1.125 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00156/0.2501, allocations: 0.8001 MB / 452.6 MB, free: 316 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001693/0.2503, allocations: 67.81 kB / 452.7 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.291e-05/0.2503, allocations: 19.92 kB / 452.7 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002602/0.2506, allocations: 19.98 kB / 452.7 MB, free: 208 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001736/0.2508, allocations: 71.84 kB / 452.8 MB, free: 136 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.661e-05/0.2508, allocations: 19.98 kB / 452.8 MB, free: 116 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002578/0.2511, allocations: 180.5 kB / 453 MB, free: 15.94 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.2511, allocations: 4.062 kB / 453 MB, free: 15.93 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005955/0.2517, allocations: 135.9 kB / 453.1 MB, free: 15.8 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.003316/0.255, allocations: 1.669 MB / 454.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001344/0.2563, allocations: 0.594 MB / 455.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.2563, allocations: 0 / 455.4 MB, free: 13.62 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00082/0.2571, allocations: 413.5 kB / 455.8 MB, free: 13.2 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004406/0.2576, allocations: 50.5 kB / 455.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005637/0.2632, allocations: 3.41 MB / 459.2 MB, free: 9.625 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001962/0.2634, allocations: 171.8 kB / 459.4 MB, free: 9.434 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002445/0.2637, allocations: 70.92 kB / 459.5 MB, free: 9.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001761/0.2638, allocations: 91.39 kB / 459.5 MB, free: 9.277 MB / 366.1 MB Notification: Performance of SimCode: time 6.91e-07/0.2638, allocations: 0 / 459.5 MB, free: 9.277 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05616/0.32, allocations: 10.47 MB / 470 MB, free: 14.87 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.25/13.57, allocations: 8.047 kB / 470 MB, free: 14.86 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Mechanics_Rotational_Examples_LossyGearDemo3.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv. Warning: Get data of variable gear.mode from file Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.022662655916065]