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.001305/0.001305, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001419/0.001419, allocations: 204.6 kB / 23.72 MB, free: 4.391 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.399/1.399, allocations: 230.5 MB / 257.4 MB, free: 7.742 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.001944/0.001944, allocations: 63.89 kB / 377.7 MB, free: 2.84 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2164/0.2183, allocations: 53.4 MB / 431.1 MB, free: 6.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00441/0.2227, allocations: 2.775 MB / 433.9 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001815/0.2246, allocations: 1.021 MB / 434.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001602/0.2247, allocations: 7.938 kB / 434.9 MB, free: 2.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002746/0.225, allocations: 79.3 kB / 435 MB, free: 2.582 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003601/0.2254, allocations: 154.9 kB / 435.2 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000359/0.2257, allocations: 195.7 kB / 435.4 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006254/0.2263, allocations: 0.5969 MB / 436 MB, free: 1.637 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001794/0.2265, allocations: 80.66 kB / 436 MB, free: 1.559 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003273/0.2268, allocations: 267.2 kB / 436.3 MB, free: 1.297 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003696/0.2272, allocations: 271 kB / 436.6 MB, free: 1.031 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.534e-05/0.2273, allocations: 44 kB / 436.6 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001932/0.2275, allocations: 104 kB / 436.7 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000168/0.2277, allocations: 131.6 kB / 436.8 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002081/0.2279, allocations: 207.1 kB / 437 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006815/0.2286, allocations: 0.5876 MB / 437.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.2286, allocations: 0 / 437.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2286, allocations: 0 / 437.6 MB, free: 15.96 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.009e-05/0.2286, allocations: 3.984 kB / 437.6 MB, free: 15.96 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.001455/0.23, allocations: 0.7077 MB / 438.3 MB, free: 15.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.2301, allocations: 15.97 kB / 438.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001345/0.2302, allocations: 79.7 kB / 438.4 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001058/0.2303, allocations: 52.61 kB / 438.5 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005021/0.2308, allocations: 260.8 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.686e-05/0.2308, allocations: 33.38 kB / 438.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.341e-05/0.2309, allocations: 40.36 kB / 438.8 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008837/0.2318, allocations: 446.5 kB / 439.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.177e-05/0.2318, allocations: 3.984 kB / 439.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.577e-05/0.2319, allocations: 19.94 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.2319, allocations: 8 kB / 439.3 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009991/0.2329, allocations: 447.6 kB / 439.7 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0025/0.2354, allocations: 1.132 MB / 440.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008999/0.2363, allocations: 388.3 kB / 441.2 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004834/0.2368, allocations: 222.1 kB / 441.4 MB, free: 12.01 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.398e-05/0.2368, allocations: 8.438 kB / 441.4 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.533e-05/0.2368, allocations: 42.92 kB / 441.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.204e-06/0.2368, allocations: 0 / 441.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005456/0.2423, allocations: 1.967 MB / 443.4 MB, free: 9.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.582e-05/0.2424, allocations: 55.84 kB / 443.5 MB, free: 9.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003145/0.2427, allocations: 265.8 kB / 443.8 MB, free: 9.586 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.812e-05/0.2427, allocations: 45.69 kB / 443.8 MB, free: 9.535 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001283/0.2429, allocations: 176.9 kB / 444 MB, free: 9.355 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001731/0.243, allocations: 194.4 kB / 444.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001822/0.2432, allocations: 102.3 kB / 444.3 MB, free: 9.059 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001689/0.2434, allocations: 342.8 kB / 444.6 MB, free: 8.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005025/0.2439, allocations: 221.2 kB / 444.8 MB, free: 8.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005691/0.2445, allocations: 296.1 kB / 445.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008366/0.2453, allocations: 402.7 kB / 445.5 MB, free: 7.781 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2453, allocations: 0 / 445.5 MB, free: 7.781 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001626/0.2469, allocations: 0.7142 MB / 446.2 MB, free: 7.051 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.884e-05/0.2469, allocations: 8 kB / 446.2 MB, free: 7.043 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.2469, allocations: 4.125 kB / 446.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001067/0.248, allocations: 425.3 kB / 446.6 MB, free: 6.617 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002676/0.2483, allocations: 67.91 kB / 446.7 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003332/0.2516, allocations: 3.443 MB / 450.2 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005543/0.2522, allocations: 80.27 kB / 450.2 MB, free: 2.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.201e-05/0.2522, allocations: 16 kB / 450.2 MB, free: 2.758 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.0002825/0.2525, allocations: 165.8 kB / 450.4 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001102/0.2526, allocations: 39.7 kB / 450.4 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/0.2543, allocations: 0.7068 MB / 451.2 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.964e-06/0.2543, allocations: 4 kB / 451.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.2543, allocations: 0 / 451.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.2544, allocations: 7.969 kB / 451.2 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002416/0.2568, allocations: 1.174 MB / 452.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.331e-06/0.2568, allocations: 0 / 452.3 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003478/0.2571, allocations: 55.91 kB / 452.4 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001036/0.2582, allocations: 402.3 kB / 452.8 MB, free: 132 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.875e-05/0.2582, allocations: 23.92 kB / 452.8 MB, free: 108 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003636/0.2619, allocations: 3.412 MB / 456.2 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.127e-06/0.2619, allocations: 7.984 kB / 456.2 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002146/0.264, allocations: 1.015 MB / 457.2 MB, free: 11.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002822/0.2643, allocations: 87.88 kB / 457.3 MB, free: 11.3 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.154e-05/0.2644, allocations: 27.94 kB / 457.4 MB, free: 11.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004707/0.2649, allocations: 67.91 kB / 457.4 MB, free: 11.21 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002271/0.2651, allocations: 96.3 kB / 457.5 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.525e-05/0.2651, allocations: 19.98 kB / 457.5 MB, free: 11.1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.000268/0.2654, allocations: 197.2 kB / 457.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2654, allocations: 0 / 457.7 MB, free: 10.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005478/0.2659, allocations: 123.9 kB / 457.9 MB, free: 10.79 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.003829/0.2698, allocations: 1.83 MB / 459.7 MB, free: 9.047 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.2715, allocations: 0.7561 MB / 460.4 MB, free: 8.262 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2715, allocations: 3.938 kB / 460.4 MB, free: 8.258 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009297/0.2724, allocations: 0.5142 MB / 461 MB, free: 7.719 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005996/0.273, allocations: 79.98 kB / 461 MB, free: 7.645 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007472/0.2805, allocations: 4.299 MB / 465.3 MB, free: 3.219 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002322/0.2807, allocations: 212.8 kB / 465.5 MB, free: 2.984 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001577/0.2809, allocations: 27.3 kB / 465.6 MB, free: 2.961 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002125/0.2811, allocations: 127.3 kB / 465.7 MB, free: 2.836 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2811, allocations: 0 / 465.7 MB, free: 2.836 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04928/0.3304, allocations: 13.1 MB / 478.8 MB, free: 5.828 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.95/14.28, allocations: 8.062 kB / 478.8 MB, free: 5.82 MB / 382.1 MB " [Timeout remaining time 645] (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: 17.044153286144137]