Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.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.001324/0.001324, 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.001451/0.001451, allocations: 187.7 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.42/1.42, 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.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001645/0.001645, allocations: 47.92 kB / 370.4 MB, free: 9.711 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.224/0.2256, allocations: 52.18 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004001/0.2296, allocations: 2.574 MB / 425.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00203/0.2316, allocations: 1.034 MB / 426.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001407/0.2318, allocations: 4 kB / 426.2 MB, free: 10.78 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002479/0.232, allocations: 79.34 kB / 426.2 MB, free: 10.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006196/0.2327, allocations: 194.8 kB / 426.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000491/0.2331, allocations: 247.6 kB / 426.7 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006661/0.2338, allocations: 0.643 MB / 427.3 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.234, allocations: 83.86 kB / 427.4 MB, free: 9.531 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003915/0.2344, allocations: 295.1 kB / 427.7 MB, free: 9.242 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004132/0.2348, allocations: 326.9 kB / 428 MB, free: 8.922 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.303e-05/0.2349, allocations: 52 kB / 428.1 MB, free: 8.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002602/0.2352, allocations: 135.9 kB / 428.2 MB, free: 8.738 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000173/0.2353, allocations: 147.6 kB / 428.3 MB, free: 8.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002242/0.2355, allocations: 211.1 kB / 428.5 MB, free: 8.387 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007283/0.2363, allocations: 0.6555 MB / 429.2 MB, free: 7.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.2363, allocations: 4 kB / 429.2 MB, free: 7.727 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.562e-06/0.2363, allocations: 0 / 429.2 MB, free: 7.727 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.2363, allocations: 0 / 429.2 MB, free: 7.727 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: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001549/0.2378, allocations: 0.735 MB / 429.9 MB, free: 6.961 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.2379, allocations: 12.03 kB / 430 MB, free: 6.949 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001026/0.238, allocations: 82.7 kB / 430 MB, free: 6.859 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003574/0.2383, allocations: 64.64 kB / 430.1 MB, free: 6.797 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006053/0.2389, allocations: 316.7 kB / 430.4 MB, free: 6.461 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001725/0.2391, allocations: 152.4 kB / 430.6 MB, free: 6.285 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.433e-05/0.2392, allocations: 40.38 kB / 430.6 MB, free: 6.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.2403, allocations: 0.5855 MB / 431.2 MB, free: 5.645 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.2403, allocations: 4 kB / 431.2 MB, free: 5.641 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.256e-05/0.2403, allocations: 16 kB / 431.2 MB, free: 5.625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.2403, allocations: 8 kB / 431.2 MB, free: 5.617 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001322/0.2417, allocations: 0.6245 MB / 431.8 MB, free: 4.992 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002422/0.2441, allocations: 1.126 MB / 433 MB, free: 3.82 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001124/0.2452, allocations: 0.5056 MB / 433.5 MB, free: 3.305 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006127/0.2458, allocations: 302.1 kB / 433.8 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.172e-05/0.2459, allocations: 8.5 kB / 433.8 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.2459, allocations: 39.06 kB / 433.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of pre-optimization done (n=61): time 2.174e-06/0.2459, allocations: 0 / 433.8 MB, free: 2.953 MB / 334.1 MB Notification: Performance of matching and sorting (n=69): time 0.006792/0.2527, allocations: 2.567 MB / 436.4 MB, free: 348 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.645e-05/0.2528, allocations: 93.69 kB / 436.5 MB, free: 236 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004288/0.2532, allocations: 336.2 kB / 436.8 MB, free: 15.89 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.43e-05/0.2533, allocations: 45.69 kB / 436.8 MB, free: 15.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001228/0.2534, allocations: 153.8 kB / 437 MB, free: 15.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002031/0.2536, allocations: 249.9 kB / 437.2 MB, free: 15.44 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002201/0.2538, allocations: 114.3 kB / 437.3 MB, free: 15.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001635/0.254, allocations: 354.8 kB / 437.7 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006117/0.2546, allocations: 285.2 kB / 438 MB, free: 14.69 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006722/0.2553, allocations: 380.2 kB / 438.3 MB, free: 14.3 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.2563, allocations: 0.5268 MB / 438.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.2563, allocations: 0 / 438.9 MB, free: 13.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=79) (initialization): time 0.001787/0.2581, allocations: 0.8696 MB / 439.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.2581, allocations: 11.94 kB / 439.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.2582, allocations: 3.938 kB / 439.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001073/0.2592, allocations: 467.3 kB / 440.2 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003776/0.2596, allocations: 87.88 kB / 440.3 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001374/0.261, allocations: 1.08 MB / 441.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004761/0.2615, allocations: 59.92 kB / 441.4 MB, free: 11.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.187e-05/0.2615, allocations: 24 kB / 441.5 MB, free: 11.14 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,32)} Notification: Performance of prepare postOptimizeDAE: time 0.0002673/0.2618, allocations: 177.8 kB / 441.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.2619, allocations: 43.72 kB / 441.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001658/0.2621, allocations: 71.75 kB / 441.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.2621, allocations: 8 kB / 441.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.2621, allocations: 0 / 441.7 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.2621, allocations: 3.984 kB / 441.8 MB, free: 10.83 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003355/0.2654, allocations: 1.618 MB / 443.4 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.078e-06/0.2654, allocations: 0 / 443.4 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003902/0.2658, allocations: 79.91 kB / 443.4 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009934/0.2668, allocations: 448.5 kB / 443.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.102e-05/0.2669, allocations: 23.92 kB / 443.9 MB, free: 8.609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001487/0.2684, allocations: 1.037 MB / 444.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.681e-06/0.2684, allocations: 8.016 kB / 445 MB, free: 7.539 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002599/0.271, allocations: 1.297 MB / 446.3 MB, free: 6.219 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002802/0.2712, allocations: 99.61 kB / 446.3 MB, free: 6.121 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.293e-05/0.2713, allocations: 16 kB / 446.4 MB, free: 6.105 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004413/0.2718, allocations: 67.91 kB / 446.4 MB, free: 6.039 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001938/0.272, allocations: 88.48 kB / 446.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-05/0.272, allocations: 23.98 kB / 446.5 MB, free: 5.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003082/0.2723, allocations: 247 kB / 446.8 MB, free: 5.691 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2723, allocations: 0 / 446.8 MB, free: 5.691 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005024/0.2728, allocations: 147.9 kB / 446.9 MB, free: 5.547 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: 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,29)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003017/0.2758, allocations: 1.877 MB / 448.8 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001576/0.2774, allocations: 0.6663 MB / 449.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.2774, allocations: 128 / 449.5 MB, free: 2.969 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008742/0.2783, allocations: 368.6 kB / 449.8 MB, free: 2.605 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005172/0.2788, allocations: 52.75 kB / 449.9 MB, free: 2.555 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00863/0.2874, allocations: 4.979 MB / 454.9 MB, free: 13.47 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002248/0.2877, allocations: 225.9 kB / 455.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002281/0.2879, allocations: 63.34 kB / 455.1 MB, free: 13.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00025/0.2882, allocations: 131.4 kB / 455.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2882, allocations: 0 / 455.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0444/0.3325, allocations: 12.99 MB / 468.3 MB, free: 232 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.01/13.34, allocations: 4.75 kB / 468.3 MB, free: 232 kB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.sim & python3 -m fmpy simulate --output-file Modelica_4.0.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_0_0_Modelica_Mechanics_Rotational_Examples_LossyGearDemo2.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo2/LossyGearDemo2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.mode from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startBackward in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startBackward from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable bearingFriction.startForward in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable bearingFriction.startForward from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! Error: Could not read variable gear.mode in file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv. Warning: Get data of variable gear.mode from file Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 15.79847601801157]