Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.001545/0.001545, allocations: 110 kB / 20.43 MB, free: 1.453 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.001399/0.001399, allocations: 212.5 kB / 23.74 MB, free: 4.66 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.38/1.38, allocations: 230.5 MB / 257.4 MB, free: 7.977 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.SimpleGearShift,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001811/0.001811, allocations: 71.89 kB / 377.8 MB, free: 3.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2289, allocations: 53.41 MB / 431.2 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004819/0.2337, allocations: 2.989 MB / 434.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002039/0.2357, allocations: 1.072 MB / 435.2 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002621/0.236, allocations: 7.938 kB / 435.2 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000349/0.2363, allocations: 79.3 kB / 435.3 MB, free: 2.527 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004717/0.2368, allocations: 154.9 kB / 435.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003961/0.2372, allocations: 187.7 kB / 435.7 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006616/0.2379, allocations: 0.6047 MB / 436.3 MB, free: 1.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001931/0.2381, allocations: 82.97 kB / 436.3 MB, free: 1.5 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003258/0.2384, allocations: 271.2 kB / 436.6 MB, free: 1.234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004024/0.2388, allocations: 295 kB / 436.9 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.046e-05/0.2389, allocations: 44 kB / 436.9 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001795/0.2391, allocations: 99.98 kB / 437 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001668/0.2392, allocations: 135.6 kB / 437.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002282/0.2395, allocations: 230.9 kB / 437.4 MB, free: 456 kB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006857/0.2401, allocations: 0.5919 MB / 438 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.2401, allocations: 0 / 438 MB, free: 15.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.2401, allocations: 0 / 438 MB, free: 15.86 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.2402, allocations: 0 / 438 MB, free: 15.86 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.001413/0.2416, allocations: 0.7116 MB / 438.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.2416, allocations: 12.03 kB / 438.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001208/0.2417, allocations: 83.64 kB / 438.8 MB, free: 15.01 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.2418, allocations: 56.61 kB / 438.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004718/0.2423, allocations: 260.9 kB / 439.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.772e-05/0.2423, allocations: 29.38 kB / 439.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.406e-05/0.2424, allocations: 40.38 kB / 439.2 MB, free: 14.61 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008559/0.2433, allocations: 446.4 kB / 439.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.876e-05/0.2433, allocations: 0 / 439.6 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.495e-05/0.2433, allocations: 16 kB / 439.6 MB, free: 14.15 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.2434, allocations: 8 kB / 439.6 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009697/0.2443, allocations: 455.6 kB / 440.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002365/0.2467, allocations: 1.233 MB / 441.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008725/0.2476, allocations: 383.9 kB / 441.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000478/0.248, allocations: 230.1 kB / 441.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.377e-05/0.2481, allocations: 12.38 kB / 441.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.681e-05/0.2481, allocations: 42.94 kB / 442 MB, free: 11.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.593e-06/0.2481, allocations: 3.938 kB / 442 MB, free: 11.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005179/0.2533, allocations: 1.959 MB / 443.9 MB, free: 9.703 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.2533, allocations: 55.84 kB / 444 MB, free: 9.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003087/0.2537, allocations: 269.8 kB / 444.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.283e-05/0.2537, allocations: 41.7 kB / 444.3 MB, free: 9.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.2538, allocations: 180.9 kB / 444.5 MB, free: 9.137 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001615/0.254, allocations: 190.5 kB / 444.6 MB, free: 8.949 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001758/0.2542, allocations: 98.28 kB / 444.7 MB, free: 8.848 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.2543, allocations: 346.8 kB / 445.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004757/0.2548, allocations: 221.2 kB / 445.3 MB, free: 8.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005362/0.2554, allocations: 292.1 kB / 445.6 MB, free: 7.984 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008034/0.2562, allocations: 398.7 kB / 446 MB, free: 7.574 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.2562, allocations: 4 kB / 446 MB, free: 7.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.00157/0.2577, allocations: 0.7104 MB / 446.7 MB, free: 6.844 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.513e-05/0.2577, allocations: 4 kB / 446.7 MB, free: 6.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.844e-06/0.2577, allocations: 4.125 kB / 446.7 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.2588, allocations: 433.3 kB / 447.1 MB, free: 6.406 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002611/0.259, allocations: 67.91 kB / 447.2 MB, free: 6.34 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003162/0.2622, allocations: 3.442 MB / 450.6 MB, free: 2.641 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004646/0.2626, allocations: 71.91 kB / 450.7 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.045e-05/0.2627, allocations: 16.09 kB / 450.7 MB, free: 2.555 MB / 350.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.0002239/0.2629, allocations: 174.4 kB / 450.9 MB, free: 2.375 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.867e-05/0.263, allocations: 43.64 kB / 450.9 MB, free: 2.332 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001586/0.2646, allocations: 0.7068 MB / 451.6 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.996e-06/0.2646, allocations: 8 kB / 451.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.2646, allocations: 0 / 451.6 MB, free: 1.609 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.2646, allocations: 3.984 kB / 451.6 MB, free: 1.605 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/0.2669, allocations: 1.256 MB / 452.9 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.2669, allocations: 0 / 452.9 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002574/0.2672, allocations: 47.97 kB / 452.9 MB, free: 248 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000946/0.2681, allocations: 402.2 kB / 453.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/0.2681, allocations: 27.91 kB / 453.4 MB, free: 15.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003036/0.2712, allocations: 3.408 MB / 456.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-06/0.2712, allocations: 4.062 kB / 456.8 MB, free: 12.15 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002029/0.2732, allocations: 1.011 MB / 457.8 MB, free: 11.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.2734, allocations: 87.72 kB / 457.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.34e-05/0.2735, allocations: 23.94 kB / 457.9 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004468/0.2739, allocations: 67.91 kB / 458 MB, free: 10.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002053/0.2742, allocations: 96.3 kB / 458.1 MB, free: 10.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.551e-05/0.2742, allocations: 23.98 kB / 458.1 MB, free: 10.82 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002105/0.2744, allocations: 193.2 kB / 458.3 MB, free: 10.63 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2744, allocations: 3.938 kB / 458.3 MB, free: 10.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004812/0.2749, allocations: 127.9 kB / 458.4 MB, free: 10.5 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.003561/0.2784, allocations: 1.815 MB / 460.2 MB, free: 8.77 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00158/0.28, allocations: 0.7597 MB / 461 MB, free: 7.98 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.28, allocations: 4.25 kB / 461 MB, free: 7.977 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008639/0.2809, allocations: 0.5065 MB / 461.5 MB, free: 7.445 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000524/0.2814, allocations: 84.31 kB / 461.6 MB, free: 7.363 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006985/0.2884, allocations: 4.288 MB / 465.9 MB, free: 2.945 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004849/0.2889, allocations: 0.8124 MB / 466.7 MB, free: 2.102 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001498/0.289, allocations: 43.27 kB / 466.7 MB, free: 2.059 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001989/0.2892, allocations: 119.4 kB / 466.8 MB, free: 1.941 MB / 366.1 MB Notification: Performance of SimCode: time 8.01e-07/0.2892, allocations: 0 / 466.8 MB, free: 1.941 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04925/0.3385, allocations: 14.35 MB / 481.2 MB, free: 3.688 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.33/13.67, allocations: 4 kB / 481.2 MB, free: 3.684 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift_fmu --startTime=0 --stopTime=5 --stepSize=0.01 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_SimpleGearShift.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 15.973590177018195]