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.001113/0.001114, allocations: 95.72 kB / 16.93 MB, free: 5.984 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.001788/0.001788, allocations: 180.7 kB / 17.82 MB, free: 5.652 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.427/1.427, allocations: 205.4 MB / 224 MB, free: 13.17 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.0004456/0.0004456, allocations: 11.28 kB / 280.7 MB, free: 3.754 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0889/0.08936, allocations: 47.58 MB / 328.3 MB, free: 4.102 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002709/0.09211, allocations: 2.27 MB / 330.6 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00148/0.09362, allocations: 0.9168 MB / 331.5 MB, free: 0.8906 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001283/0.09378, allocations: 4 kB / 331.5 MB, free: 0.8867 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001249/0.09391, allocations: 39.69 kB / 331.6 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002587/0.09418, allocations: 131.6 kB / 331.7 MB, free: 0.7188 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003461/0.09453, allocations: 163.6 kB / 331.8 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003708/0.09491, allocations: 348.5 kB / 332.2 MB, free: 224 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001946/0.09512, allocations: 90.02 kB / 332.3 MB, free: 128 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002599/0.09539, allocations: 215.4 kB / 332.5 MB, free: 15.91 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002796/0.09567, allocations: 239.2 kB / 332.7 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.72e-05/0.09573, allocations: 20 kB / 332.7 MB, free: 15.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001462/0.09588, allocations: 67.94 kB / 332.8 MB, free: 15.59 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.402e-05/0.09599, allocations: 83.7 kB / 332.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.386e-05/0.09608, allocations: 93.45 kB / 333 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003504/0.09644, allocations: 379.3 kB / 333.3 MB, free: 15.04 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.554e-06/0.09645, allocations: 0 / 333.3 MB, free: 15.04 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.302e-06/0.09646, allocations: 0 / 333.3 MB, free: 15.04 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.341e-06/0.09647, allocations: 0 / 333.3 MB, free: 15.04 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.001232/0.0977, allocations: 0.6899 MB / 334 MB, free: 14.3 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.09775, allocations: 12.03 kB / 334 MB, free: 14.29 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.192e-05/0.09783, allocations: 39.53 kB / 334.1 MB, free: 14.25 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003551/0.09819, allocations: 301.4 kB / 334.4 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.887e-05/0.09824, allocations: 29 kB / 334.4 MB, free: 13.88 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.816e-05/0.09832, allocations: 32 kB / 334.4 MB, free: 13.85 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007654/0.09909, allocations: 442.3 kB / 334.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.113e-05/0.09912, allocations: 7.844 kB / 334.9 MB, free: 13.41 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.639e-05/0.09918, allocations: 16 kB / 334.9 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.09919, allocations: 8 kB / 334.9 MB, free: 13.38 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008503/0.1, allocations: 475.7 kB / 335.4 MB, free: 12.92 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.1024, allocations: 1.293 MB / 336.7 MB, free: 11.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008427/0.1033, allocations: 372.5 kB / 337 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.508e-05/0.1033, allocations: 4.375 kB / 337 MB, free: 11.18 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.1034, allocations: 34.94 kB / 337.1 MB, free: 11.14 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 5.641e-06/0.1034, allocations: 4 kB / 337.1 MB, free: 11.13 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.005417/0.1088, allocations: 2.373 MB / 339.4 MB, free: 8.625 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/0.1089, allocations: 63.78 kB / 339.5 MB, free: 8.551 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.1091, allocations: 250.6 kB / 339.7 MB, free: 8.301 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.394e-05/0.1092, allocations: 41.69 kB / 339.8 MB, free: 8.254 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.883e-05/0.1093, allocations: 168.6 kB / 339.9 MB, free: 8.086 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001345/0.1094, allocations: 169.7 kB / 340.1 MB, free: 7.918 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.17e-05/0.1095, allocations: 12 kB / 340.1 MB, free: 7.906 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001656/0.1096, allocations: 342.8 kB / 340.5 MB, free: 7.562 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004604/0.1101, allocations: 237 kB / 340.7 MB, free: 7.328 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000524/0.1106, allocations: 303.2 kB / 341 MB, free: 7.016 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004484/0.1111, allocations: 206.1 kB / 341.2 MB, free: 6.816 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.1111, allocations: 0 / 341.2 MB, free: 6.816 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001549/0.1127, allocations: 0.7626 MB / 341.9 MB, free: 6.035 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.1127, allocations: 4 kB / 342 MB, free: 6.031 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.398e-06/0.1127, allocations: 8.125 kB / 342 MB, free: 6.023 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00111/0.1138, allocations: 0.5528 MB / 342.5 MB, free: 5.461 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002866/0.1141, allocations: 71.91 kB / 342.6 MB, free: 5.391 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002929/0.1171, allocations: 3.467 MB / 346.1 MB, free: 1.637 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005024/0.1176, allocations: 104 kB / 346.2 MB, free: 1.535 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.209e-05/0.1176, allocations: 19.98 kB / 346.2 MB, free: 1.516 MB / 286.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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002325/0.1179, allocations: 165.6 kB / 346.3 MB, free: 1.344 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.471e-05/0.118, allocations: 47.42 kB / 346.4 MB, free: 1.297 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001429/0.1194, allocations: 0.7288 MB / 347.1 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/0.1194, allocations: 8 kB / 347.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.076e-06/0.1194, allocations: 0 / 347.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.1194, allocations: 0 / 347.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002069/0.1215, allocations: 1.275 MB / 348.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1215, allocations: 0 / 348.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002674/0.1218, allocations: 67.89 kB / 348.5 MB, free: 15.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009112/0.1227, allocations: 0.5293 MB / 349 MB, free: 14.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.076e-05/0.1228, allocations: 23.97 kB / 349 MB, free: 14.57 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002539/0.1253, allocations: 3.44 MB / 352.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1253, allocations: 0 / 352.5 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001794/0.1271, allocations: 1.051 MB / 353.5 MB, free: 9.762 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001866/0.1273, allocations: 156.7 kB / 353.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.025e-05/0.1274, allocations: 19.95 kB / 353.7 MB, free: 9.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004746/0.1279, allocations: 103.9 kB / 353.8 MB, free: 9.469 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.1281, allocations: 104.2 kB / 353.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.746e-05/0.1282, allocations: 23.97 kB / 353.9 MB, free: 9.344 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.1283, allocations: 178 kB / 354.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1283, allocations: 0 / 354.1 MB, free: 9.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004932/0.1288, allocations: 120 kB / 354.2 MB, free: 9.055 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002518/0.1291, allocations: 151.1 kB / 354.3 MB, free: 8.898 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001465/0.1306, allocations: 0.8137 MB / 355.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.1306, allocations: 0 / 355.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008439/0.1315, allocations: 0.5449 MB / 355.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003989/0.1319, allocations: 52.66 kB / 355.8 MB, free: 7.438 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001905/0.1338, allocations: 1.156 MB / 356.9 MB, free: 6.254 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003333/0.1341, allocations: 0.8035 MB / 357.7 MB, free: 5.422 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000139/0.1343, allocations: 31.28 kB / 357.7 MB, free: 5.387 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.163e-05/0.1344, allocations: 31.42 kB / 357.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1344, allocations: 0 / 357.8 MB, free: 5.355 MB / 302.1 MB Notification: Performance of Templates: time 0.01309/0.1475, allocations: 8.999 MB / 366.8 MB, free: 12.36 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile Environment - environmentSimulation: (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 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches