Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.001243/0.001243, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001448/0.001448, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.409/1.409, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.SimpleGearShift,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 51.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08925/0.09082, allocations: 53.33 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004585/0.0954, allocations: 2.963 MB / 429.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001934/0.09734, allocations: 1.06 MB / 430.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002242/0.09756, allocations: 11.94 kB / 430.3 MB, free: 0.7266 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.09787, allocations: 75.31 kB / 430.4 MB, free: 0.6523 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004268/0.0983, allocations: 162.9 kB / 430.6 MB, free: 0.4922 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004015/0.0987, allocations: 183.7 kB / 430.8 MB, free: 320 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1774/0.2761, allocations: 0.5943 MB / 431.3 MB, free: 7.641 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002448/0.2763, allocations: 80.05 kB / 431.4 MB, free: 7.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003661/0.2767, allocations: 271.6 kB / 431.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003233/0.277, allocations: 294.3 kB / 432 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.625e-05/0.2771, allocations: 47.44 kB / 432 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002142/0.2773, allocations: 100.6 kB / 432.1 MB, free: 7.566 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001397/0.2774, allocations: 130.2 kB / 432.2 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001801/0.2776, allocations: 229.8 kB / 432.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005195/0.2781, allocations: 0.5919 MB / 433.1 MB, free: 7.402 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.2781, allocations: 1.688 kB / 433.1 MB, free: 7.402 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2781, allocations: 0 / 433.1 MB, free: 7.402 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.234e-06/0.2781, allocations: 1.094 kB / 433.1 MB, free: 7.402 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001317/0.2795, allocations: 0.7847 MB / 433.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.668e-05/0.2795, allocations: 9.125 kB / 433.9 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001096/0.2796, allocations: 88.58 kB / 433.9 MB, free: 6.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.955e-05/0.2797, allocations: 47.38 kB / 434 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003986/0.2801, allocations: 323.5 kB / 434.3 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.545e-05/0.2801, allocations: 31.34 kB / 434.3 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.539e-05/0.2802, allocations: 39.83 kB / 434.4 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008235/0.281, allocations: 449.3 kB / 434.8 MB, free: 6.539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.059e-05/0.2811, allocations: 5.797 kB / 434.8 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.49e-05/0.2811, allocations: 18 kB / 434.8 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.2811, allocations: 9.844 kB / 434.9 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009619/0.2821, allocations: 448.5 kB / 435.3 MB, free: 6.531 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002246/0.2843, allocations: 1.294 MB / 436.6 MB, free: 6.105 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008351/0.2852, allocations: 388.9 kB / 437 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004555/0.2856, allocations: 229.7 kB / 437.2 MB, free: 6.066 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.575e-05/0.2857, allocations: 11.52 kB / 437.2 MB, free: 6.062 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.54e-05/0.2857, allocations: 38.27 kB / 437.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.793e-06/0.2857, allocations: 3.25 kB / 437.2 MB, free: 6.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005236/0.2909, allocations: 2.251 MB / 439.5 MB, free: 4.758 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.301e-05/0.2909, allocations: 61.31 kB / 439.6 MB, free: 4.691 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002612/0.2912, allocations: 265.3 kB / 439.8 MB, free: 4.547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.78e-05/0.2912, allocations: 40.03 kB / 439.8 MB, free: 4.508 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.015e-05/0.2913, allocations: 179.2 kB / 440 MB, free: 4.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001163/0.2914, allocations: 189.7 kB / 440.2 MB, free: 4.211 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000169/0.2916, allocations: 101.3 kB / 440.3 MB, free: 4.156 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.237e-05/0.2917, allocations: 347.2 kB / 440.6 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004735/0.2921, allocations: 220.8 kB / 440.9 MB, free: 3.742 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005019/0.2926, allocations: 294.9 kB / 441.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008373/0.2935, allocations: 393.8 kB / 441.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2935, allocations: 0.5 kB / 441.5 MB, free: 3.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001513/0.295, allocations: 0.7213 MB / 442.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.617e-05/0.295, allocations: 6.172 kB / 442.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.295, allocations: 1.094 kB / 442.3 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001031/0.296, allocations: 427 kB / 442.7 MB, free: 2.941 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/0.2963, allocations: 68.19 kB / 442.7 MB, free: 2.938 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002386/0.2987, allocations: 3.643 MB / 446.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005317/0.2992, allocations: 76.48 kB / 446.5 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.677e-05/0.2993, allocations: 21.97 kB / 446.5 MB, free: 15.44 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002428/0.2995, allocations: 178.8 kB / 446.7 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.2996, allocations: 45.81 kB / 446.7 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001703/0.3013, allocations: 0.698 MB / 447.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.3013, allocations: 10.38 kB / 447.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.677e-06/0.3013, allocations: 2.156 kB / 447.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.3013, allocations: 2.109 kB / 447.4 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002414/0.3038, allocations: 1.274 MB / 448.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.796e-06/0.3038, allocations: 4 kB / 448.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002744/0.304, allocations: 60 kB / 448.8 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009942/0.305, allocations: 408.6 kB / 449.2 MB, free: 14.13 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.853e-05/0.3051, allocations: 22.59 kB / 449.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003271/0.3083, allocations: 3.611 MB / 452.8 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.3083, allocations: 1.406 kB / 452.8 MB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/0.3105, allocations: 1.015 MB / 453.8 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002308/0.3107, allocations: 165.5 kB / 454 MB, free: 10 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.311e-05/0.3108, allocations: 18.5 kB / 454 MB, free: 9.988 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005088/0.3113, allocations: 73.5 kB / 454.1 MB, free: 9.977 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002266/0.3116, allocations: 95.11 kB / 454.1 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.706e-05/0.3116, allocations: 20.91 kB / 454.2 MB, free: 9.953 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002151/0.3118, allocations: 191.4 kB / 454.4 MB, free: 9.848 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3118, allocations: 3.656 kB / 454.4 MB, free: 9.848 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000529/0.3123, allocations: 119.5 kB / 454.5 MB, free: 9.832 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003651/0.316, allocations: 1.842 MB / 456.3 MB, free: 8.715 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001656/0.3177, allocations: 0.7545 MB / 457.1 MB, free: 8.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.3177, allocations: 0 / 457.1 MB, free: 8.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009732/0.3186, allocations: 0.5196 MB / 457.6 MB, free: 8 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005644/0.3192, allocations: 76.31 kB / 457.7 MB, free: 7.973 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007568/0.3268, allocations: 4.297 MB / 462 MB, free: 5.375 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004795/0.3272, allocations: 0.809 MB / 462.8 MB, free: 4.664 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001595/0.3274, allocations: 37.77 kB / 462.8 MB, free: 4.652 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002029/0.3276, allocations: 123.1 kB / 462.9 MB, free: 4.566 MB / 366.1 MB Notification: Performance of SimCode: time 1.082e-06/0.3276, allocations: 4 kB / 462.9 MB, free: 4.562 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04601/0.3736, allocations: 13.78 MB / 476.7 MB, free: 12.56 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.78, allocations: 12.8 kB / 476.7 MB, free: 12.55 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.17902918998152]