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.001313/0.001313, allocations: 120.4 kB / 20.44 MB, free: 1.461 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.001847/0.001847, allocations: 212.1 kB / 23.74 MB, free: 4.695 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.429/1.429, allocations: 230.5 MB / 257.4 MB, free: 8.195 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.001827/0.001827, allocations: 59.91 kB / 377.8 MB, free: 3.121 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2535/0.2553, allocations: 53.41 MB / 431.2 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.00412/0.2594, allocations: 2.485 MB / 433.7 MB, free: 4.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001964/0.2614, allocations: 1.073 MB / 434.7 MB, free: 3.141 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.2615, allocations: 4 kB / 434.7 MB, free: 3.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002923/0.2618, allocations: 63.48 kB / 434.8 MB, free: 3.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004383/0.2623, allocations: 162.7 kB / 435 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000389/0.2627, allocations: 159.6 kB / 435.1 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005381/0.2632, allocations: 478.7 kB / 435.6 MB, free: 2.293 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.2633, allocations: 48.92 kB / 435.6 MB, free: 2.242 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002592/0.2636, allocations: 207.5 kB / 435.8 MB, free: 2.039 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003669/0.264, allocations: 251.2 kB / 436.1 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.192e-05/0.264, allocations: 36 kB / 436.1 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002416/0.2643, allocations: 127.9 kB / 436.2 MB, free: 1.633 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001455/0.2644, allocations: 111.7 kB / 436.3 MB, free: 1.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001759/0.2646, allocations: 171.2 kB / 436.5 MB, free: 1.355 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000625/0.2652, allocations: 0.4908 MB / 437 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2652, allocations: 0 / 437 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2652, allocations: 7.875 kB / 437 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.292e-05/0.2652, allocations: 4 kB / 437 MB, free: 0.8555 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.001297/0.2665, allocations: 0.5946 MB / 437.6 MB, free: 236 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.386e-05/0.2666, allocations: 8.031 kB / 437.6 MB, free: 228 kB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.411e-05/0.2667, allocations: 70.72 kB / 437.7 MB, free: 148 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003178/0.267, allocations: 48.69 kB / 437.7 MB, free: 100 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005842/0.2676, allocations: 243.4 kB / 438 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001818/0.2678, allocations: 144 kB / 438.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.286e-05/0.2678, allocations: 28.36 kB / 438.1 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007505/0.2686, allocations: 390.6 kB / 438.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.2686, allocations: 0 / 438.5 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.552e-05/0.2687, allocations: 12 kB / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.2687, allocations: 4 kB / 438.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008916/0.2696, allocations: 422.2 kB / 438.9 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002266/0.2718, allocations: 1.216 MB / 440.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007142/0.2725, allocations: 325 kB / 440.5 MB, free: 13.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003993/0.2729, allocations: 164.7 kB / 440.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.777e-05/0.273, allocations: 4 kB / 440.6 MB, free: 13.05 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.495e-05/0.273, allocations: 43.27 kB / 440.7 MB, free: 13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=43): time 2.574e-06/0.273, allocations: 0 / 440.7 MB, free: 13 MB / 350.1 MB Notification: Performance of matching and sorting (n=45): time 0.004886/0.2779, allocations: 1.664 MB / 442.3 MB, free: 11.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.278, allocations: 88.86 kB / 442.4 MB, free: 11.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003471/0.2783, allocations: 246.8 kB / 442.7 MB, free: 10.92 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.293e-05/0.2784, allocations: 37.7 kB / 442.7 MB, free: 10.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001119/0.2785, allocations: 148.9 kB / 442.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001439/0.2786, allocations: 158.7 kB / 443 MB, free: 10.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001493/0.2788, allocations: 86.06 kB / 443.1 MB, free: 10.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000172/0.2789, allocations: 338.8 kB / 443.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003799/0.2793, allocations: 160.8 kB / 443.6 MB, free: 9.984 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004477/0.2798, allocations: 229.9 kB / 443.8 MB, free: 9.746 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007201/0.2805, allocations: 335.2 kB / 444.1 MB, free: 9.402 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.2805, allocations: 4.031 kB / 444.1 MB, free: 9.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001184/0.2817, allocations: 0.5357 MB / 444.7 MB, free: 8.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.908e-05/0.2817, allocations: 4 kB / 444.7 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.2817, allocations: 0 / 444.7 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008396/0.2826, allocations: 312.6 kB / 445 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002486/0.2828, allocations: 51.95 kB / 445 MB, free: 8.488 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004166/0.287, allocations: 2.792 MB / 447.8 MB, free: 5.582 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002905/0.2873, allocations: 28 kB / 447.9 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.696e-05/0.2873, allocations: 23.98 kB / 447.9 MB, free: 5.531 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.0002181/0.2875, allocations: 157.3 kB / 448 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.299e-05/0.2876, allocations: 31.81 kB / 448.1 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001081/0.2877, allocations: 42.98 kB / 448.1 MB, free: 5.297 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.2877, allocations: 4 kB / 448.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.2877, allocations: 0 / 448.1 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.2877, allocations: 3.984 kB / 448.1 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00202/0.2897, allocations: 1.073 MB / 449.2 MB, free: 4.164 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.095e-06/0.2897, allocations: 4 kB / 449.2 MB, free: 4.16 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000236/0.29, allocations: 43.97 kB / 449.2 MB, free: 4.117 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007518/0.2907, allocations: 280.7 kB / 449.5 MB, free: 3.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.858e-05/0.2908, allocations: 19.92 kB / 449.5 MB, free: 3.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004137/0.2949, allocations: 2.748 MB / 452.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.2949, allocations: 0 / 452.3 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001638/0.2966, allocations: 0.7963 MB / 453.1 MB, free: 148 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001606/0.2967, allocations: 71.77 kB / 453.1 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.465e-05/0.2968, allocations: 19.88 kB / 453.2 MB, free: 56 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000259/0.297, allocations: 27.97 kB / 453.2 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001983/0.2972, allocations: 63.88 kB / 453.3 MB, free: 15.96 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.731e-05/0.2973, allocations: 15.98 kB / 453.3 MB, free: 15.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002471/0.2975, allocations: 188.5 kB / 453.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2975, allocations: 0 / 453.5 MB, free: 15.77 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000641/0.2982, allocations: 132 kB / 453.6 MB, free: 15.64 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.003393/0.3016, allocations: 1.642 MB / 455.2 MB, free: 14.08 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001358/0.3029, allocations: 0.5977 MB / 455.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3029, allocations: 0 / 455.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007559/0.3037, allocations: 417.8 kB / 456.2 MB, free: 13.04 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.3041, allocations: 39.77 kB / 456.3 MB, free: 13 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005722/0.3098, allocations: 3.402 MB / 459.7 MB, free: 9.484 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004836/0.3103, allocations: 0.7801 MB / 460.4 MB, free: 8.676 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002248/0.3105, allocations: 74.91 kB / 460.5 MB, free: 8.605 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001952/0.3107, allocations: 91.39 kB / 460.6 MB, free: 8.516 MB / 366.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3107, allocations: 0 / 460.6 MB, free: 8.516 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04602/0.3567, allocations: 11.06 MB / 471.7 MB, free: 13.53 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.05/13.41, allocations: 0 / 471.7 MB, free: 13.53 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: 15.89443293700242]