Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001116/0.001116, allocations: 109.4 kB / 18.34 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001161/0.001161, allocations: 192.1 kB / 19.28 MB, free: 3.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.306/1.306, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00132/0.00132, allocations: 55.92 kB / 282.1 MB, free: 2.445 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08513/0.08647, allocations: 46.62 MB / 328.7 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003867/0.09037, allocations: 2.814 MB / 331.5 MB, free: 0.9219 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001504/0.09189, allocations: 0.9319 MB / 332.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001381/0.09204, allocations: 4 kB / 332.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002497/0.09231, allocations: 63.44 kB / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002194/0.09254, allocations: 107.1 kB / 332.6 MB, free: 15.81 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004725/0.09302, allocations: 223.5 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005266/0.09356, allocations: 0.5618 MB / 333.4 MB, free: 15.03 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002228/0.09379, allocations: 106.7 kB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002754/0.09407, allocations: 239.3 kB / 333.7 MB, free: 14.68 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003371/0.09442, allocations: 286.9 kB / 334 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.678e-05/0.0945, allocations: 44 kB / 334.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001891/0.09469, allocations: 91.95 kB / 334.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001463/0.09485, allocations: 115.6 kB / 334.3 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002173/0.09507, allocations: 211 kB / 334.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005827/0.09566, allocations: 0.5374 MB / 335 MB, free: 13.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.09568, allocations: 0 / 335 MB, free: 13.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.09569, allocations: 0 / 335 MB, free: 13.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.0957, allocations: 0 / 335 MB, free: 13.41 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001762/0.09747, allocations: 0.7407 MB / 335.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.828e-05/0.09752, allocations: 8.031 kB / 335.8 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.614e-05/0.09762, allocations: 40.47 kB / 335.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004274/0.09805, allocations: 306.6 kB / 336.1 MB, free: 12.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.74e-05/0.0981, allocations: 25.38 kB / 336.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.918e-05/0.09819, allocations: 36.36 kB / 336.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008079/0.099, allocations: 454.6 kB / 336.6 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.997e-05/0.09903, allocations: 7.906 kB / 336.6 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.06e-05/0.09908, allocations: 16 kB / 336.6 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.588e-06/0.09909, allocations: 8 kB / 336.6 MB, free: 11.68 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009028/0.1, allocations: 455.6 kB / 337.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002237/0.1022, allocations: 1.261 MB / 338.3 MB, free: 9.902 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008108/0.1031, allocations: 367.7 kB / 338.7 MB, free: 9.535 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004863/0.1036, allocations: 249.2 kB / 338.9 MB, free: 9.289 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.947e-05/0.1036, allocations: 4.375 kB / 338.9 MB, free: 9.285 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.522e-05/0.1037, allocations: 38.94 kB / 339 MB, free: 9.238 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 1.814e-06/0.1037, allocations: 0 / 339 MB, free: 9.238 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.004934/0.1086, allocations: 2.26 MB / 341.2 MB, free: 6.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.693e-05/0.1087, allocations: 67.83 kB / 341.3 MB, free: 6.762 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002588/0.1089, allocations: 250.6 kB / 341.6 MB, free: 6.512 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.363e-05/0.109, allocations: 41.7 kB / 341.6 MB, free: 6.465 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000113/0.1091, allocations: 168.6 kB / 341.8 MB, free: 6.297 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.1093, allocations: 169.7 kB / 341.9 MB, free: 6.129 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001814/0.1094, allocations: 102.1 kB / 342 MB, free: 6.02 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.1096, allocations: 338.8 kB / 342.4 MB, free: 5.68 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004761/0.1101, allocations: 237 kB / 342.6 MB, free: 5.449 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005163/0.1106, allocations: 299.2 kB / 342.9 MB, free: 5.141 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007768/0.1114, allocations: 427.6 kB / 343.3 MB, free: 4.711 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.734e-06/0.1114, allocations: 0 / 343.3 MB, free: 4.711 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001523/0.1129, allocations: 0.7509 MB / 344.1 MB, free: 3.941 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.1129, allocations: 8 kB / 344.1 MB, free: 3.934 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.1129, allocations: 0 / 344.1 MB, free: 3.934 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001049/0.114, allocations: 0.5491 MB / 344.6 MB, free: 3.375 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002767/0.1143, allocations: 71.91 kB / 344.7 MB, free: 3.305 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002761/0.1171, allocations: 3.656 MB / 348.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004679/0.1175, allocations: 80.06 kB / 348.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.446e-05/0.1176, allocations: 16 kB / 348.4 MB, free: 15.25 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 (46): * Single equations (assignments): 43 * 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,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0001983/0.1178, allocations: 161.8 kB / 348.6 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.601e-05/0.1179, allocations: 39.53 kB / 348.6 MB, free: 15.04 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001482/0.1194, allocations: 0.7247 MB / 349.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.1194, allocations: 4 kB / 349.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.996e-06/0.1194, allocations: 0 / 349.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.1194, allocations: 7.984 kB / 349.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002064/0.1215, allocations: 1.258 MB / 350.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.896e-06/0.1215, allocations: 0 / 350.6 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002726/0.1218, allocations: 55.91 kB / 350.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009447/0.1227, allocations: 0.5372 MB / 351.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.694e-05/0.1228, allocations: 19.98 kB / 351.2 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002531/0.1253, allocations: 3.626 MB / 354.9 MB, free: 8.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.1254, allocations: 4.031 kB / 354.9 MB, free: 8.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001822/0.1272, allocations: 1.029 MB / 355.9 MB, free: 7.355 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001956/0.1274, allocations: 160.8 kB / 356 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.297e-05/0.1275, allocations: 16 kB / 356.1 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004343/0.1279, allocations: 71.83 kB / 356.1 MB, free: 7.094 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002039/0.1281, allocations: 92.3 kB / 356.2 MB, free: 7.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.296e-05/0.1282, allocations: 19.97 kB / 356.2 MB, free: 6.984 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001556/0.1283, allocations: 182 kB / 356.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1284, allocations: 0 / 356.4 MB, free: 6.805 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004725/0.1288, allocations: 124 kB / 356.5 MB, free: 6.684 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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000212/0.129, allocations: 143.1 kB / 356.7 MB, free: 6.535 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001568/0.1306, allocations: 0.8135 MB / 357.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1306, allocations: 0 / 357.5 MB, free: 5.699 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008698/0.1315, allocations: 0.5412 MB / 358 MB, free: 5.129 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004796/0.132, allocations: 48.53 kB / 358.1 MB, free: 5.082 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00186/0.1339, allocations: 0.9609 MB / 359 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003524/0.1342, allocations: 0.7996 MB / 359.8 MB, free: 3.27 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001211/0.1344, allocations: 31.28 kB / 359.9 MB, free: 3.238 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.137e-05/0.1345, allocations: 35.42 kB / 359.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1345, allocations: 0 / 359.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of Templates: time 0.01453/0.149, allocations: 9.975 MB / 369.9 MB, free: 9.219 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches