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.001147/0.001147, allocations: 106.7 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001264/0.001264, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.333/1.333, allocations: 227.4 MB / 246.3 MB, free: 9.059 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 59.06 kB / 306.3 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08874/0.08994, allocations: 50.53 MB / 356.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004505/0.09448, allocations: 2.992 MB / 359.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001907/0.09641, allocations: 1.045 MB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002742/0.09671, allocations: 4 kB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003309/0.09709, allocations: 67.55 kB / 360.9 MB, free: 10.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004317/0.09753, allocations: 131.2 kB / 361 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003861/0.09793, allocations: 163.8 kB / 361.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006557/0.0986, allocations: 0.5812 MB / 361.8 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002193/0.09882, allocations: 98.59 kB / 361.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003866/0.09922, allocations: 235.1 kB / 362.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004231/0.09965, allocations: 279 kB / 362.4 MB, free: 8.664 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001231/0.09979, allocations: 28 kB / 362.4 MB, free: 8.637 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002285/0.1, allocations: 83.95 kB / 362.5 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000173/0.1002, allocations: 103.6 kB / 362.6 MB, free: 8.453 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000237/0.1004, allocations: 214.9 kB / 362.8 MB, free: 8.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005758/0.101, allocations: 0.557 MB / 363.3 MB, free: 7.684 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.101, allocations: 0 / 363.3 MB, free: 7.684 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.1011, allocations: 0 / 363.3 MB, free: 7.684 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.385e-05/0.1011, allocations: 0 / 363.3 MB, free: 7.684 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.001543/0.1026, allocations: 0.7745 MB / 364.1 MB, free: 6.863 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.642e-05/0.1027, allocations: 12.03 kB / 364.1 MB, free: 6.852 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.1028, allocations: 44.38 kB / 364.2 MB, free: 6.809 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004176/0.1032, allocations: 322.5 kB / 364.5 MB, free: 6.457 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.288e-05/0.1033, allocations: 33.31 kB / 364.5 MB, free: 6.422 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.707e-05/0.1033, allocations: 36.38 kB / 364.6 MB, free: 6.387 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009091/0.1043, allocations: 446.6 kB / 365 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.103e-05/0.1043, allocations: 7.906 kB / 365 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.676e-05/0.1043, allocations: 12 kB / 365 MB, free: 5.926 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.1044, allocations: 8 kB / 365 MB, free: 5.918 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009947/0.1054, allocations: 443.6 kB / 365.4 MB, free: 5.488 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002395/0.1078, allocations: 1.285 MB / 366.7 MB, free: 4.129 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009071/0.1087, allocations: 400.3 kB / 367.1 MB, free: 3.727 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004985/0.1092, allocations: 253.6 kB / 367.4 MB, free: 3.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.05e-05/0.1093, allocations: 8.422 kB / 367.4 MB, free: 3.473 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.063e-05/0.1093, allocations: 35 kB / 367.4 MB, free: 3.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.763e-06/0.1093, allocations: 4 kB / 367.4 MB, free: 3.426 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.005614/0.1149, allocations: 2.244 MB / 369.7 MB, free: 1.047 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.974e-05/0.115, allocations: 67.78 kB / 369.7 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003021/0.1153, allocations: 274.5 kB / 370 MB, free: 0.6875 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.654e-05/0.1153, allocations: 41.7 kB / 370 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.1155, allocations: 164.8 kB / 370.2 MB, free: 488 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.1156, allocations: 189.3 kB / 370.4 MB, free: 296 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001849/0.1158, allocations: 98.23 kB / 370.5 MB, free: 188 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.1681/0.2839, allocations: 343.4 kB / 370.8 MB, free: 19.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006945/0.2846, allocations: 216.5 kB / 371 MB, free: 19.98 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005548/0.2852, allocations: 288 kB / 371.3 MB, free: 19.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008572/0.286, allocations: 399.9 kB / 371.7 MB, free: 19.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.2861, allocations: 1.188 kB / 371.7 MB, free: 19.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001849/0.2879, allocations: 0.7319 MB / 372.4 MB, free: 19.79 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.043e-05/0.2879, allocations: 6 kB / 372.4 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.415e-06/0.288, allocations: 0.7188 kB / 372.4 MB, free: 19.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001144/0.2891, allocations: 433.9 kB / 372.9 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002851/0.2894, allocations: 69.05 kB / 372.9 MB, free: 19.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002252/0.2917, allocations: 3.453 MB / 376.4 MB, free: 16.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005492/0.2922, allocations: 81.53 kB / 376.5 MB, free: 16.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.716e-05/0.2923, allocations: 23.16 kB / 376.5 MB, free: 16.36 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.0002298/0.2925, allocations: 170.1 kB / 376.6 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.603e-05/0.2926, allocations: 36.75 kB / 376.7 MB, free: 16.2 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00159/0.2942, allocations: 0.7207 MB / 377.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.974e-06/0.2943, allocations: 6.219 kB / 377.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.586e-06/0.2943, allocations: 0 / 377.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.324e-06/0.2943, allocations: 4.047 kB / 377.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002286/0.2966, allocations: 1.288 MB / 378.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.2966, allocations: 0 / 378.7 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002812/0.2969, allocations: 55.48 kB / 378.8 MB, free: 15.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009917/0.2979, allocations: 418.6 kB / 379.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.629e-05/0.2979, allocations: 18.27 kB / 379.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002274/0.3002, allocations: 3.423 MB / 382.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3002, allocations: 3.828 kB / 382.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001982/0.3022, allocations: 1.026 MB / 383.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001975/0.3024, allocations: 163.3 kB / 383.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.514e-05/0.3025, allocations: 15.72 kB / 383.8 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004761/0.303, allocations: 76.25 kB / 383.9 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000252/0.3033, allocations: 90.89 kB / 384 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.922e-05/0.3033, allocations: 24.02 kB / 384 MB, free: 11.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002005/0.3035, allocations: 192.2 kB / 384.2 MB, free: 10.99 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.3035, allocations: 4 kB / 384.2 MB, free: 10.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005537/0.3041, allocations: 118.7 kB / 384.3 MB, free: 10.97 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.0008396/0.3049, allocations: 374.5 kB / 384.7 MB, free: 10.79 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001477/0.3064, allocations: 0.7915 MB / 385.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3064, allocations: 9.469 kB / 385.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008547/0.3073, allocations: 0.5314 MB / 386 MB, free: 10.04 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005327/0.3079, allocations: 67 kB / 386.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001963/0.3098, allocations: 1.188 MB / 387.3 MB, free: 9.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002849/0.3101, allocations: 0.8116 MB / 388.1 MB, free: 8.535 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001531/0.3103, allocations: 38.69 kB / 388.1 MB, free: 8.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.263e-05/0.3104, allocations: 29.5 kB / 388.1 MB, free: 8.52 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3104, allocations: 0 / 388.1 MB, free: 8.52 MB / 302.1 MB Notification: Performance of Templates: time 0.01661/0.327, allocations: 9.4 MB / 397.5 MB, free: 4.969 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/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