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.001055/0.001055, allocations: 103.8 kB / 17.63 MB, free: 5.48 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001197/0.001197, allocations: 210.4 kB / 18.58 MB, free: 4.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 227.4 MB / 246.8 MB, free: 10.58 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 58.47 kB / 306.9 MB, free: 0.6172 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0897/0.09085, allocations: 50.53 MB / 357.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004224/0.09511, allocations: 2.954 MB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.0969, allocations: 1.041 MB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001585/0.09708, allocations: 7.938 kB / 361.5 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002755/0.09739, allocations: 79.3 kB / 361.5 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003368/0.09773, allocations: 158.9 kB / 361.7 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003164/0.09806, allocations: 191.6 kB / 361.9 MB, free: 9.637 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004888/0.09856, allocations: 0.5969 MB / 362.5 MB, free: 9.039 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002082/0.09878, allocations: 118.6 kB / 362.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000251/0.09904, allocations: 255.3 kB / 362.8 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003107/0.09936, allocations: 290.9 kB / 363.1 MB, free: 8.375 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.349e-05/0.09945, allocations: 48 kB / 363.2 MB, free: 8.328 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001792/0.09963, allocations: 99.98 kB / 363.3 MB, free: 8.23 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001604/0.0998, allocations: 127.6 kB / 363.4 MB, free: 8.105 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002074/0.1, allocations: 234.9 kB / 363.6 MB, free: 7.875 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005167/0.1005, allocations: 0.5727 MB / 364.2 MB, free: 7.301 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1006, allocations: 0 / 364.2 MB, free: 7.301 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.222e-06/0.1006, allocations: 0 / 364.2 MB, free: 7.301 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.1006, allocations: 0 / 364.2 MB, free: 7.301 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.001472/0.1021, allocations: 0.7758 MB / 365 MB, free: 6.477 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.081e-05/0.1021, allocations: 12.03 kB / 365 MB, free: 6.465 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001389/0.1022, allocations: 48.38 kB / 365 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003841/0.1026, allocations: 314.5 kB / 365.3 MB, free: 6.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.318e-05/0.1027, allocations: 33.38 kB / 365.4 MB, free: 6.039 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.1028, allocations: 36.38 kB / 365.4 MB, free: 6.004 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008079/0.1036, allocations: 442.6 kB / 365.8 MB, free: 5.562 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.1036, allocations: 7.906 kB / 365.9 MB, free: 5.555 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.1037, allocations: 12 kB / 365.9 MB, free: 5.543 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.1037, allocations: 8 kB / 365.9 MB, free: 5.535 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009461/0.1046, allocations: 451.6 kB / 366.3 MB, free: 5.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/0.1069, allocations: 1.289 MB / 367.6 MB, free: 3.734 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008675/0.1078, allocations: 409.2 kB / 368 MB, free: 3.332 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004842/0.1083, allocations: 246.1 kB / 368.2 MB, free: 3.09 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.461e-05/0.1083, allocations: 4.438 kB / 368.2 MB, free: 3.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.555e-05/0.1083, allocations: 39 kB / 368.3 MB, free: 3.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 1.953e-06/0.1084, allocations: 0 / 368.3 MB, free: 3.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=54): time 0.005451/0.1138, allocations: 2.256 MB / 370.5 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.1139, allocations: 63.78 kB / 370.6 MB, free: 0.5703 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.1142, allocations: 270.6 kB / 370.9 MB, free: 308 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.534e-05/0.1142, allocations: 45.69 kB / 370.9 MB, free: 256 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1144, allocations: 160.8 kB / 371.1 MB, free: 92 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.1392/0.2536, allocations: 190.1 kB / 371.3 MB, free: 20.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002123/0.2538, allocations: 98.69 kB / 371.3 MB, free: 20.33 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.739e-05/0.2539, allocations: 342.9 kB / 371.7 MB, free: 20.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005625/0.2545, allocations: 220 kB / 371.9 MB, free: 20.02 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005336/0.2551, allocations: 288.4 kB / 372.2 MB, free: 19.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008104/0.2559, allocations: 396.6 kB / 372.6 MB, free: 19.91 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.365e-06/0.2559, allocations: 0 / 372.6 MB, free: 19.91 MB / 302.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001705/0.2576, allocations: 0.731 MB / 373.3 MB, free: 19.73 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.2576, allocations: 8.281 kB / 373.3 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.2577, allocations: 5.25 kB / 373.3 MB, free: 19.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001165/0.2588, allocations: 433 kB / 373.7 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002883/0.2591, allocations: 68.94 kB / 373.8 MB, free: 19.59 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002295/0.2614, allocations: 3.652 MB / 377.5 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005399/0.262, allocations: 73.22 kB / 377.5 MB, free: 16.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.115e-05/0.262, allocations: 17.78 kB / 377.5 MB, free: 16.1 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.000231/0.2623, allocations: 170.3 kB / 377.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.73e-05/0.2624, allocations: 43.83 kB / 377.8 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001645/0.264, allocations: 0.7215 MB / 378.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.761e-06/0.2641, allocations: 9.438 kB / 378.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/0.2641, allocations: 1.938 kB / 378.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.644e-06/0.2641, allocations: 2.766 kB / 378.5 MB, free: 15.61 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00216/0.2662, allocations: 1.281 MB / 379.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.296e-06/0.2663, allocations: 1.438 kB / 379.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002725/0.2665, allocations: 52.88 kB / 379.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000907/0.2675, allocations: 416.2 kB / 380.2 MB, free: 14.77 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.525e-05/0.2675, allocations: 19.84 kB / 380.2 MB, free: 14.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002044/0.2696, allocations: 3.615 MB / 383.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.713e-06/0.2696, allocations: 160 / 383.9 MB, free: 11.28 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00193/0.2715, allocations: 1.023 MB / 384.9 MB, free: 10.77 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001871/0.2717, allocations: 164.8 kB / 385 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.833e-05/0.2718, allocations: 23.36 kB / 385.1 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004865/0.2723, allocations: 67.84 kB / 385.1 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002127/0.2725, allocations: 100.2 kB / 385.2 MB, free: 10.58 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.416e-05/0.2726, allocations: 19.86 kB / 385.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001996/0.2728, allocations: 195.5 kB / 385.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2728, allocations: 0 / 385.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005491/0.2734, allocations: 125.9 kB / 385.6 MB, free: 10.45 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.0008727/0.2742, allocations: 365.7 kB / 385.9 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.2759, allocations: 0.8087 MB / 386.7 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.2759, allocations: 8 kB / 386.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008292/0.2768, allocations: 0.5345 MB / 387.3 MB, free: 9.516 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005537/0.2774, allocations: 92.42 kB / 387.4 MB, free: 9.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001896/0.2793, allocations: 1.019 MB / 388.4 MB, free: 8.883 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002489/0.2795, allocations: 0.8068 MB / 389.2 MB, free: 8.172 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001572/0.2797, allocations: 36.44 kB / 389.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.61e-05/0.2798, allocations: 34.67 kB / 389.3 MB, free: 8.156 MB / 302.1 MB Notification: Performance of SimCode: time 4.81e-07/0.2798, allocations: 1.188 kB / 389.3 MB, free: 8.156 MB / 302.1 MB Notification: Performance of Templates: time 0.01685/0.2967, allocations: 9.987 MB / 399.2 MB, free: 4.27 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