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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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: translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001376/0.001376, allocations: 117.6 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001575/0.001575, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.355/1.355, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001078/0.001079, allocations: 59.89 kB / 358.7 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2574, allocations: 50.55 MB / 409.2 MB, free: 1.598 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.007113/0.2645, allocations: 2.953 MB / 412.2 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003127/0.2677, allocations: 1.048 MB / 413.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002832/0.268, allocations: 7.938 kB / 413.2 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004292/0.2685, allocations: 75.31 kB / 413.3 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006236/0.2691, allocations: 162.8 kB / 413.5 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006686/0.2698, allocations: 183.7 kB / 413.7 MB, free: 13.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009682/0.2708, allocations: 0.5892 MB / 414.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003444/0.2712, allocations: 130.6 kB / 414.4 MB, free: 12.43 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005295/0.2717, allocations: 267.2 kB / 414.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005653/0.2723, allocations: 279 kB / 414.9 MB, free: 11.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000126/0.2724, allocations: 48 kB / 415 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003034/0.2728, allocations: 107.9 kB / 415.1 MB, free: 11.74 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002311/0.273, allocations: 127.6 kB / 415.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003386/0.2734, allocations: 230.9 kB / 415.4 MB, free: 11.39 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009671/0.2744, allocations: 0.5852 MB / 416 MB, free: 10.81 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.2744, allocations: 0 / 416 MB, free: 10.81 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.2744, allocations: 0 / 416 MB, free: 10.81 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.096e-06/0.2744, allocations: 0 / 416 MB, free: 10.81 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.00247/0.2769, allocations: 0.772 MB / 416.8 MB, free: 9.984 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.407e-05/0.277, allocations: 8.031 kB / 416.8 MB, free: 9.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001798/0.2772, allocations: 48.38 kB / 416.8 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007308/0.2779, allocations: 330.4 kB / 417.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.342e-05/0.278, allocations: 25.38 kB / 417.2 MB, free: 9.543 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.2781, allocations: 40.38 kB / 417.2 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001539/0.2797, allocations: 442.6 kB / 417.6 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.915e-05/0.2797, allocations: 4 kB / 417.6 MB, free: 9.059 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.824e-05/0.2798, allocations: 12 kB / 417.7 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.668e-05/0.2799, allocations: 11.98 kB / 417.7 MB, free: 9.035 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001858/0.2817, allocations: 451.6 kB / 418.1 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004187/0.2859, allocations: 1.277 MB / 419.4 MB, free: 7.25 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001635/0.2876, allocations: 400.3 kB / 419.8 MB, free: 6.844 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009515/0.2886, allocations: 242.1 kB / 420 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.785e-05/0.2886, allocations: 4.438 kB / 420 MB, free: 6.602 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.051e-05/0.2887, allocations: 39 kB / 420.1 MB, free: 6.555 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.387e-06/0.2887, allocations: 4 kB / 420.1 MB, free: 6.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.008832/0.2976, allocations: 2.26 MB / 422.3 MB, free: 4.156 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.485e-05/0.2976, allocations: 63.78 kB / 422.4 MB, free: 4.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003746/0.298, allocations: 270.6 kB / 422.6 MB, free: 3.812 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.28e-05/0.2981, allocations: 41.7 kB / 422.7 MB, free: 3.766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001279/0.2982, allocations: 168.7 kB / 422.9 MB, free: 3.594 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00019/0.2984, allocations: 181.5 kB / 423 MB, free: 3.414 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000238/0.2987, allocations: 102.1 kB / 423.1 MB, free: 3.309 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000212/0.2989, allocations: 346.8 kB / 423.5 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007104/0.2996, allocations: 217 kB / 423.7 MB, free: 2.746 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006816/0.3003, allocations: 291.2 kB / 424 MB, free: 2.445 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/0.3014, allocations: 387.8 kB / 424.3 MB, free: 2.047 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3014, allocations: 11.94 kB / 424.4 MB, free: 2.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001562/0.303, allocations: 0.7274 MB / 425.1 MB, free: 1.289 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.303, allocations: 4 kB / 425.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.303, allocations: 0 / 425.1 MB, free: 1.285 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001038/0.3041, allocations: 434.2 kB / 425.5 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002764/0.3044, allocations: 67.91 kB / 425.6 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003202/0.3076, allocations: 3.652 MB / 429.2 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005536/0.3081, allocations: 75.92 kB / 429.3 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.342e-05/0.3082, allocations: 16 kB / 429.3 MB, free: 12.74 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.0002886/0.3085, allocations: 182.6 kB / 429.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001036/0.3086, allocations: 35.62 kB / 429.5 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001629/0.3102, allocations: 0.7316 MB / 430.3 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.102e-06/0.3102, allocations: 8 kB / 430.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.3103, allocations: 0 / 430.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.3103, allocations: 3.984 kB / 430.3 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002213/0.3125, allocations: 1.293 MB / 431.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3125, allocations: 0 / 431.6 MB, free: 10.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002706/0.3128, allocations: 51.97 kB / 431.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009339/0.3137, allocations: 410.1 kB / 432 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.669e-05/0.3138, allocations: 19.97 kB / 432 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002861/0.3167, allocations: 3.606 MB / 435.6 MB, free: 6.012 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.3167, allocations: 4.156 kB / 435.7 MB, free: 6.008 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/0.3187, allocations: 1.021 MB / 436.7 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00023/0.3189, allocations: 164.6 kB / 436.8 MB, free: 4.781 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.647e-05/0.319, allocations: 20 kB / 436.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005073/0.3195, allocations: 71.91 kB / 436.9 MB, free: 4.691 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002292/0.3198, allocations: 96.34 kB / 437 MB, free: 4.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.632e-05/0.3198, allocations: 23.98 kB / 437 MB, free: 4.574 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002108/0.32, allocations: 194 kB / 437.2 MB, free: 4.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.32, allocations: 0 / 437.2 MB, free: 4.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005553/0.3206, allocations: 124 kB / 437.4 MB, free: 4.262 MB / 350.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.0008907/0.3215, allocations: 381 kB / 437.7 MB, free: 3.996 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001602/0.3231, allocations: 0.789 MB / 438.5 MB, free: 3.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3231, allocations: 4 kB / 438.5 MB, free: 3.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008966/0.324, allocations: 0.5345 MB / 439.1 MB, free: 2.621 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005886/0.3247, allocations: 76.42 kB / 439.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.3267, allocations: 1.006 MB / 440.1 MB, free: 1.516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003839/0.3271, allocations: 0.8163 MB / 440.9 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001649/0.3273, allocations: 31.28 kB / 441 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.791e-05/0.3274, allocations: 35.42 kB / 441 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of SimCode: time 2.164e-06/0.3274, allocations: 0 / 441 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of Templates: time 0.01561/0.343, allocations: 10.08 MB / 451.1 MB, free: 6.559 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (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 & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches