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.001526/0.001526, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.001551/0.001551, allocations: 215.8 kB / 23.73 MB, free: 4.16 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.439/1.439, allocations: 230.6 MB / 257.5 MB, free: 7.809 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.001565/0.001565, allocations: 51.92 kB / 377.7 MB, free: 2.953 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2394, allocations: 53.36 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo2): time 0.004295/0.2437, allocations: 2.691 MB / 433.8 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002216/0.2459, allocations: 1.217 MB / 435 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001512/0.246, allocations: 11.88 kB / 435 MB, free: 2.703 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.2463, allocations: 87.27 kB / 435.1 MB, free: 2.617 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005503/0.2469, allocations: 227.1 kB / 435.3 MB, free: 2.398 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000564/0.2475, allocations: 259.5 kB / 435.6 MB, free: 2.145 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007764/0.2482, allocations: 0.7133 MB / 436.3 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.2484, allocations: 87.91 kB / 436.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004948/0.2489, allocations: 327.1 kB / 436.7 MB, free: 1.016 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004739/0.2494, allocations: 354.8 kB / 437 MB, free: 0.668 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001042/0.2495, allocations: 60 kB / 437.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002846/0.2498, allocations: 148 kB / 437.2 MB, free: 476 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002063/0.25, allocations: 171.5 kB / 437.4 MB, free: 304 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002455/0.2502, allocations: 231 kB / 437.6 MB, free: 72 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000874/0.2511, allocations: 0.7217 MB / 438.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2511, allocations: 3.938 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2511, allocations: 4 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.2511, allocations: 4 kB / 438.3 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.001683/0.2528, allocations: 0.7777 MB / 439.1 MB, free: 14.53 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.683e-05/0.2529, allocations: 12.02 kB / 439.1 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001033/0.253, allocations: 78.72 kB / 439.2 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000427/0.2534, allocations: 76.62 kB / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006537/0.254, allocations: 304.7 kB / 439.6 MB, free: 14.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001748/0.2542, allocations: 152.4 kB / 439.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.647e-05/0.2543, allocations: 52.27 kB / 439.8 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001153/0.2555, allocations: 0.5854 MB / 440.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/0.2555, allocations: 7.984 kB / 440.4 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.423e-05/0.2555, allocations: 16 kB / 440.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.008e-05/0.2555, allocations: 8 kB / 440.4 MB, free: 13.17 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.257, allocations: 0.5972 MB / 441 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002593/0.2596, allocations: 1.126 MB / 442.1 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001223/0.2608, allocations: 0.4899 MB / 442.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000662/0.2615, allocations: 290.2 kB / 442.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.471e-05/0.2615, allocations: 8.5 kB / 442.9 MB, free: 10.6 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.41e-05/0.2615, allocations: 43.05 kB / 442.9 MB, free: 10.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=62): time 2.305e-06/0.2615, allocations: 7.875 kB / 443 MB, free: 10.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=70): time 0.007304/0.2688, allocations: 2.426 MB / 445.4 MB, free: 8.074 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.97e-05/0.2689, allocations: 89.75 kB / 445.5 MB, free: 7.969 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004744/0.2694, allocations: 352.5 kB / 445.8 MB, free: 7.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.166e-05/0.2695, allocations: 45.7 kB / 445.9 MB, free: 7.562 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.2696, allocations: 165.8 kB / 446 MB, free: 7.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002124/0.2698, allocations: 242 kB / 446.3 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002224/0.27, allocations: 126.2 kB / 446.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.2702, allocations: 350.8 kB / 446.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006444/0.2708, allocations: 269.2 kB / 447 MB, free: 6.414 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007054/0.2715, allocations: 356.2 kB / 447.3 MB, free: 6.047 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/0.2727, allocations: 495.5 kB / 447.8 MB, free: 5.555 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.2727, allocations: 4 kB / 447.8 MB, free: 5.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=80) (initialization): time 0.001884/0.2746, allocations: 0.8219 MB / 448.6 MB, free: 4.719 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.922e-05/0.2746, allocations: 8 kB / 448.7 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.2746, allocations: 0 / 448.7 MB, free: 4.711 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001123/0.2757, allocations: 440.4 kB / 449.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004061/0.2761, allocations: 87.81 kB / 449.2 MB, free: 4.191 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00137/0.2775, allocations: 1.019 MB / 450.2 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004769/0.278, allocations: 59.92 kB / 450.2 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.659e-05/0.278, allocations: 31.92 kB / 450.3 MB, free: 3.059 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.0002656/0.2783, allocations: 181.8 kB / 450.5 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001216/0.2784, allocations: 43.72 kB / 450.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001664/0.2786, allocations: 67.86 kB / 450.6 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.554e-06/0.2786, allocations: 8 kB / 450.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.2786, allocations: 0 / 450.6 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.2786, allocations: 3.984 kB / 450.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003416/0.282, allocations: 1.571 MB / 452.1 MB, free: 1.113 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.453e-06/0.282, allocations: 4 kB / 452.1 MB, free: 1.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003977/0.2824, allocations: 75.88 kB / 452.2 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001015/0.2834, allocations: 416.6 kB / 452.6 MB, free: 0.625 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.757e-05/0.2835, allocations: 23.97 kB / 452.7 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001366/0.2849, allocations: 0.9758 MB / 453.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.968e-06/0.2849, allocations: 4.031 kB / 453.6 MB, free: 15.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002634/0.2875, allocations: 1.208 MB / 454.8 MB, free: 14.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002842/0.2878, allocations: 111.6 kB / 454.9 MB, free: 14.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001045/0.2879, allocations: 20 kB / 455 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004587/0.2883, allocations: 47.94 kB / 455 MB, free: 14.2 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002067/0.2885, allocations: 100.5 kB / 455.1 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.794e-05/0.2886, allocations: 31.92 kB / 455.1 MB, free: 14.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003533/0.289, allocations: 259 kB / 455.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.289, allocations: 0 / 455.4 MB, free: 13.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005226/0.2895, allocations: 147.8 kB / 455.5 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.004428/0.2939, allocations: 2.066 MB / 457.6 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001744/0.2957, allocations: 0.6312 MB / 458.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.2957, allocations: 0 / 458.2 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009371/0.2966, allocations: 348.6 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.0006432/0.2972, allocations: 68.5 kB / 458.6 MB, free: 10.68 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009545/0.3068, allocations: 4.86 MB / 463.5 MB, free: 5.723 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.307, allocations: 225.9 kB / 463.7 MB, free: 5.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003399/0.3074, allocations: 79.36 kB / 463.8 MB, free: 5.402 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002948/0.3077, allocations: 143.4 kB / 463.9 MB, free: 5.262 MB / 366.1 MB Notification: Performance of SimCode: time 1.723e-06/0.3077, allocations: 8 kB / 464 MB, free: 5.254 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04729/0.355, allocations: 13.74 MB / 477.7 MB, free: 7.598 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.03/13.39, allocations: 4.062 kB / 477.7 MB, free: 7.594 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.9198227962479]