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.001004/0.001004, allocations: 97.91 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00101/0.00101, allocations: 203.4 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.516/1.516, allocations: 227.7 MB / 247.5 MB, free: 11.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002485/0.0002488, allocations: 8 kB / 308.4 MB, free: 0.8008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09837/0.09864, allocations: 51.52 MB / 359.9 MB, free: 13.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003367/0.102, allocations: 2.611 MB / 362.5 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001859/0.1039, allocations: 1.025 MB / 363.5 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00026/0.1042, allocations: 11.94 kB / 363.6 MB, free: 9.609 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003325/0.1046, allocations: 59.55 kB / 363.6 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004571/0.105, allocations: 139.1 kB / 363.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004123/0.1055, allocations: 167.7 kB / 363.9 MB, free: 9.25 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006492/0.1061, allocations: 0.5735 MB / 364.5 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002368/0.1064, allocations: 94.59 kB / 364.6 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003856/0.1068, allocations: 235 kB / 364.8 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004351/0.1072, allocations: 263 kB / 365.1 MB, free: 8.086 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.863e-05/0.1073, allocations: 24 kB / 365.1 MB, free: 8.062 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002173/0.1075, allocations: 75.97 kB / 365.2 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001669/0.1077, allocations: 111.6 kB / 365.3 MB, free: 7.879 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002499/0.108, allocations: 224.6 kB / 365.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004518/0.1084, allocations: 427.2 kB / 365.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1084, allocations: 0 / 365.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.196e-06/0.1084, allocations: 0 / 365.9 MB, free: 7.234 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.415e-05/0.1085, allocations: 3.938 kB / 365.9 MB, free: 7.23 MB / 302.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.00145/0.1099, allocations: 0.7215 MB / 366.6 MB, free: 6.461 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.11, allocations: 12.02 kB / 366.6 MB, free: 6.449 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001157/0.1101, allocations: 44.47 kB / 366.7 MB, free: 6.406 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004451/0.1106, allocations: 314.5 kB / 367 MB, free: 6.062 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.035e-05/0.1106, allocations: 29.38 kB / 367 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.754e-05/0.1107, allocations: 40.36 kB / 367.1 MB, free: 5.992 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009322/0.1116, allocations: 454.6 kB / 367.5 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.1117, allocations: 3.906 kB / 367.5 MB, free: 5.539 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.174e-05/0.1117, allocations: 16 kB / 367.5 MB, free: 5.523 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.161e-05/0.1117, allocations: 8 kB / 367.5 MB, free: 5.516 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.1128, allocations: 459.7 kB / 368 MB, free: 5.07 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002532/0.1153, allocations: 1.316 MB / 369.3 MB, free: 3.68 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009129/0.1162, allocations: 416.3 kB / 369.7 MB, free: 3.262 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005004/0.1167, allocations: 250.1 kB / 370 MB, free: 3.016 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.455e-05/0.1168, allocations: 12.44 kB / 370 MB, free: 3.004 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.709e-05/0.1168, allocations: 34.94 kB / 370 MB, free: 2.961 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.843e-06/0.1168, allocations: 0 / 370 MB, free: 2.961 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.005902/0.1228, allocations: 2.373 MB / 372.4 MB, free: 464 kB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001304/0.1229, allocations: 59.78 kB / 372.4 MB, free: 388 kB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003221/0.1232, allocations: 274.6 kB / 372.7 MB, free: 104 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.175e-05/0.1233, allocations: 41.7 kB / 372.7 MB, free: 56 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.1845/0.3078, allocations: 164.9 kB / 372.9 MB, free: 19.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003327/0.3082, allocations: 188 kB / 373.1 MB, free: 19.48 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001643/0.3083, allocations: 48.78 kB / 373.1 MB, free: 19.47 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001249/0.3085, allocations: 344.3 kB / 373.5 MB, free: 19.16 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006819/0.3092, allocations: 228.8 kB / 373.7 MB, free: 19.15 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006828/0.3099, allocations: 301 kB / 374 MB, free: 19.11 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001017/0.3109, allocations: 411.2 kB / 374.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.202e-06/0.3109, allocations: 3.844 kB / 374.4 MB, free: 19.05 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002154/0.3131, allocations: 0.7426 MB / 375.1 MB, free: 18.96 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.3131, allocations: 8.719 kB / 375.1 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.3131, allocations: 3.438 kB / 375.1 MB, free: 18.96 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001267/0.3144, allocations: 435.5 kB / 375.6 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000305/0.3147, allocations: 67.86 kB / 375.6 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002498/0.3172, allocations: 3.46 MB / 379.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006124/0.3179, allocations: 104.8 kB / 379.2 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.113e-05/0.3179, allocations: 23.38 kB / 379.2 MB, free: 15.67 MB / 302.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.0002368/0.3182, allocations: 170.3 kB / 379.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.913e-05/0.3183, allocations: 38.78 kB / 379.4 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001727/0.32, allocations: 0.7428 MB / 380.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/0.32, allocations: 5.062 kB / 380.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.185e-06/0.32, allocations: 1.953 kB / 380.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.706e-06/0.3201, allocations: 2.531 kB / 380.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002439/0.3225, allocations: 1.307 MB / 381.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.3225, allocations: 0 / 381.5 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002807/0.3228, allocations: 66.08 kB / 381.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009665/0.3238, allocations: 406.3 kB / 381.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.009e-05/0.3239, allocations: 21.89 kB / 382 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002492/0.3264, allocations: 3.425 MB / 385.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.3264, allocations: 0 / 385.4 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002141/0.3285, allocations: 1.042 MB / 386.4 MB, free: 10.5 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002216/0.3287, allocations: 166.2 kB / 386.6 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.69e-05/0.3288, allocations: 25.67 kB / 386.6 MB, free: 10.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005516/0.3294, allocations: 102.8 kB / 386.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002397/0.3297, allocations: 93.88 kB / 386.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.197e-05/0.3297, allocations: 25.86 kB / 386.8 MB, free: 10.32 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002084/0.3299, allocations: 191.4 kB / 387 MB, free: 10.21 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3299, allocations: 0 / 387 MB, free: 10.21 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005581/0.3305, allocations: 121.6 kB / 387.1 MB, free: 10.19 MB / 302.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.0008613/0.3314, allocations: 385.8 kB / 387.5 MB, free: 10 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001657/0.333, allocations: 0.8107 MB / 388.3 MB, free: 9.574 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.3331, allocations: 0 / 388.3 MB, free: 9.574 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009198/0.334, allocations: 0.5446 MB / 388.9 MB, free: 9.242 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005902/0.3346, allocations: 71.53 kB / 388.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.3368, allocations: 1.296 MB / 390.2 MB, free: 8.375 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002942/0.3371, allocations: 0.8068 MB / 391.1 MB, free: 7.668 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001212/0.3373, allocations: 31.2 kB / 391.1 MB, free: 7.668 MB / 302.1 MB Notification: Performance of SimCode: time 8.52e-07/0.3373, allocations: 0 / 391.1 MB, free: 7.668 MB / 302.1 MB Notification: Performance of Templates: time 0.01397/0.3512, allocations: 9.379 MB / 400.5 MB, free: 3.742 MB / 302.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches