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.001208/0.001208, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.001397/0.001397, allocations: 208.3 kB / 23.73 MB, free: 4.523 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.372/1.372, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.001508/0.001508, allocations: 43.94 kB / 377.7 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2362, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004222/0.2404, allocations: 2.763 MB / 433.8 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001698/0.2421, allocations: 1.021 MB / 434.9 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.2422, allocations: 7.938 kB / 434.9 MB, free: 2.824 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002623/0.2425, allocations: 79.3 kB / 434.9 MB, free: 2.746 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003651/0.2429, allocations: 158.9 kB / 435.1 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003514/0.2432, allocations: 199.7 kB / 435.3 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005913/0.2438, allocations: 0.593 MB / 435.9 MB, free: 1.797 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001734/0.244, allocations: 88.66 kB / 436 MB, free: 1.711 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003158/0.2443, allocations: 275.2 kB / 436.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003794/0.2447, allocations: 291 kB / 436.5 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.879e-05/0.2447, allocations: 48 kB / 436.6 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001687/0.2449, allocations: 104 kB / 436.7 MB, free: 1.008 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001694/0.2451, allocations: 127.6 kB / 436.8 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.2453, allocations: 199.1 kB / 437 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00064/0.2459, allocations: 0.5915 MB / 437.6 MB, free: 96 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.2459, allocations: 4 kB / 437.6 MB, free: 92 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2459, allocations: 0 / 437.6 MB, free: 92 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.2459, allocations: 0 / 437.6 MB, free: 92 kB / 334.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.001489/0.2474, allocations: 0.7116 MB / 438.3 MB, free: 15.35 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.2475, allocations: 12.03 kB / 438.3 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001359/0.2476, allocations: 87.69 kB / 438.4 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001054/0.2477, allocations: 48.61 kB / 438.4 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004743/0.2482, allocations: 264.9 kB / 438.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.425e-05/0.2482, allocations: 29.38 kB / 438.7 MB, free: 14.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.396e-05/0.2483, allocations: 36.38 kB / 438.8 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008782/0.2492, allocations: 442.4 kB / 439.2 MB, free: 14.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.026e-05/0.2492, allocations: 4 kB / 439.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.72e-05/0.2492, allocations: 16 kB / 439.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.472e-05/0.2493, allocations: 15.94 kB / 439.2 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009859/0.2502, allocations: 447.6 kB / 439.7 MB, free: 13.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00237/0.2526, allocations: 1.14 MB / 440.8 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008697/0.2535, allocations: 369.5 kB / 441.2 MB, free: 12.36 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004778/0.254, allocations: 230.1 kB / 441.4 MB, free: 12.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.051e-05/0.254, allocations: 8.438 kB / 441.4 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.226e-05/0.254, allocations: 42.94 kB / 441.4 MB, free: 12.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.924e-06/0.254, allocations: 4 kB / 441.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005364/0.2594, allocations: 1.959 MB / 443.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.219e-05/0.2594, allocations: 55.84 kB / 443.5 MB, free: 9.984 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002969/0.2597, allocations: 273.8 kB / 443.7 MB, free: 9.711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.739e-05/0.2598, allocations: 41.7 kB / 443.8 MB, free: 9.664 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000128/0.2599, allocations: 180.9 kB / 444 MB, free: 9.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.2601, allocations: 190.4 kB / 444.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001847/0.2603, allocations: 102.3 kB / 444.2 MB, free: 9.188 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.2604, allocations: 342.8 kB / 444.6 MB, free: 8.844 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004866/0.2609, allocations: 221.2 kB / 444.8 MB, free: 8.629 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005283/0.2614, allocations: 288.1 kB / 445.1 MB, free: 8.332 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008098/0.2623, allocations: 406.7 kB / 445.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.864e-06/0.2623, allocations: 0 / 445.5 MB, free: 7.914 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001589/0.2638, allocations: 0.726 MB / 446.2 MB, free: 7.172 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2639, allocations: 4 kB / 446.2 MB, free: 7.168 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.346e-06/0.2639, allocations: 4 kB / 446.2 MB, free: 7.164 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.2649, allocations: 418.4 kB / 446.6 MB, free: 6.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.2652, allocations: 71.89 kB / 446.7 MB, free: 6.676 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003076/0.2683, allocations: 3.438 MB / 450.1 MB, free: 2.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005056/0.2688, allocations: 71.94 kB / 450.2 MB, free: 2.914 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.793e-05/0.2688, allocations: 23.98 kB / 450.2 MB, free: 2.891 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.0002283/0.2691, allocations: 162.6 kB / 450.4 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001024/0.2692, allocations: 47.7 kB / 450.4 MB, free: 2.676 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001654/0.2708, allocations: 0.7146 MB / 451.1 MB, free: 1.953 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.2708, allocations: 4 kB / 451.1 MB, free: 1.949 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.2708, allocations: 4 kB / 451.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2708, allocations: 0 / 451.1 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002331/0.2732, allocations: 1.174 MB / 452.3 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.2732, allocations: 4 kB / 452.3 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002821/0.2734, allocations: 59.91 kB / 452.4 MB, free: 0.6484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009915/0.2744, allocations: 394.3 kB / 452.8 MB, free: 260 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.411e-05/0.2745, allocations: 23.91 kB / 452.8 MB, free: 236 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002969/0.2775, allocations: 3.399 MB / 456.2 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2775, allocations: 4.312 kB / 456.2 MB, free: 12.57 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002033/0.2795, allocations: 1.019 MB / 457.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002245/0.2797, allocations: 83.67 kB / 457.3 MB, free: 11.45 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.265e-05/0.2798, allocations: 23.92 kB / 457.3 MB, free: 11.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004878/0.2803, allocations: 79.91 kB / 457.4 MB, free: 11.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.2805, allocations: 92.31 kB / 457.5 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.997e-05/0.2806, allocations: 27.97 kB / 457.5 MB, free: 11.23 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002038/0.2808, allocations: 189.2 kB / 457.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2808, allocations: 0 / 457.7 MB, free: 11.04 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005045/0.2813, allocations: 123.9 kB / 457.8 MB, free: 10.92 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.003661/0.2849, allocations: 1.842 MB / 459.7 MB, free: 9.199 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001682/0.2866, allocations: 0.7558 MB / 460.4 MB, free: 8.414 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2866, allocations: 0 / 460.4 MB, free: 8.414 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009433/0.2876, allocations: 0.5144 MB / 460.9 MB, free: 7.875 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006036/0.2882, allocations: 74.75 kB / 461 MB, free: 7.805 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007408/0.2956, allocations: 4.307 MB / 465.3 MB, free: 3.371 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000223/0.2958, allocations: 204.8 kB / 465.5 MB, free: 3.145 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001548/0.296, allocations: 35.28 kB / 465.5 MB, free: 3.113 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002055/0.2962, allocations: 123.3 kB / 465.7 MB, free: 2.992 MB / 366.1 MB Notification: Performance of SimCode: time 8.52e-07/0.2962, allocations: 4 kB / 465.7 MB, free: 2.988 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04759/0.3438, allocations: 13.25 MB / 478.9 MB, free: 5.863 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.55/12.9, allocations: 5.703 kB / 478.9 MB, free: 5.863 MB / 382.1 MB " [Timeout remaining time 647] (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: 15.230118906998541]