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.001165/0.001165, allocations: 104.5 kB / 18.35 MB, free: 4.645 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.001073/0.001073, allocations: 191 kB / 19.29 MB, free: 3.715 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.367/1.367, allocations: 205.1 MB / 225.2 MB, free: 12.24 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.001245/0.001245, allocations: 52.41 kB / 282.1 MB, free: 2.449 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1055, allocations: 46.63 MB / 328.7 MB, free: 3.75 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004101/0.1097, allocations: 2.798 MB / 331.5 MB, free: 0.9297 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001519/0.1112, allocations: 0.928 MB / 332.5 MB, free: 15.99 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001369/0.1114, allocations: 8 kB / 332.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002307/0.1116, allocations: 67.38 kB / 332.5 MB, free: 15.92 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002211/0.1118, allocations: 103.1 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004591/0.1123, allocations: 215.6 kB / 332.8 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005069/0.1128, allocations: 0.5696 MB / 333.4 MB, free: 15.04 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002286/0.1131, allocations: 110.7 kB / 333.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002595/0.1133, allocations: 251.2 kB / 333.8 MB, free: 14.67 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003226/0.1137, allocations: 275 kB / 334 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.719e-05/0.1137, allocations: 44 kB / 334.1 MB, free: 14.36 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001924/0.1139, allocations: 99.94 kB / 334.2 MB, free: 14.26 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001347/0.1141, allocations: 111.6 kB / 334.3 MB, free: 14.15 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002211/0.1143, allocations: 215 kB / 334.5 MB, free: 13.94 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005727/0.1149, allocations: 0.5334 MB / 335 MB, free: 13.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.1149, allocations: 0 / 335 MB, free: 13.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.1149, allocations: 0 / 335 MB, free: 13.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.237e-06/0.1149, 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.001493/0.1164, allocations: 0.7407 MB / 335.8 MB, free: 12.62 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.1165, allocations: 8.031 kB / 335.8 MB, free: 12.61 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.896e-05/0.1166, allocations: 40.47 kB / 335.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004707/0.1171, allocations: 310.6 kB / 336.1 MB, free: 12.22 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.964e-05/0.1171, allocations: 25.38 kB / 336.1 MB, free: 12.2 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.264e-05/0.1172, allocations: 36.38 kB / 336.2 MB, free: 12.16 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008472/0.1181, allocations: 446.6 kB / 336.6 MB, free: 11.72 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.035e-05/0.1181, allocations: 3.906 kB / 336.6 MB, free: 11.71 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.341e-05/0.1181, allocations: 16 kB / 336.6 MB, free: 11.7 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.342e-05/0.1182, allocations: 8 kB / 336.6 MB, free: 11.69 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009477/0.1191, allocations: 459.7 kB / 337.1 MB, free: 11.24 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002281/0.1214, allocations: 1.257 MB / 338.4 MB, free: 9.91 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000803/0.1222, allocations: 371.6 kB / 338.7 MB, free: 9.539 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004654/0.1227, allocations: 253.2 kB / 339 MB, free: 9.289 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.306e-05/0.1228, allocations: 12.3 kB / 339 MB, free: 9.277 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.1228, allocations: 42.94 kB / 339 MB, free: 9.227 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 1.563e-06/0.1228, allocations: 0 / 339 MB, free: 9.227 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.005111/0.1279, allocations: 2.252 MB / 341.3 MB, free: 6.836 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.415e-05/0.128, allocations: 55.84 kB / 341.3 MB, free: 6.77 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002546/0.1282, allocations: 250.6 kB / 341.6 MB, free: 6.52 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.21e-05/0.1283, allocations: 41.7 kB / 341.6 MB, free: 6.473 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.1284, allocations: 164.6 kB / 341.8 MB, free: 6.309 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001434/0.1286, allocations: 169.7 kB / 341.9 MB, free: 6.141 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001829/0.1288, allocations: 102.1 kB / 342 MB, free: 6.031 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1289, allocations: 346.8 kB / 342.4 MB, free: 5.684 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005061/0.1294, allocations: 229 kB / 342.6 MB, free: 5.461 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005357/0.13, allocations: 307.1 kB / 342.9 MB, free: 5.145 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000765/0.1308, allocations: 415.7 kB / 343.3 MB, free: 4.727 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1308, allocations: 0 / 343.3 MB, free: 4.727 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001537/0.1323, allocations: 0.7625 MB / 344.1 MB, free: 3.945 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.622e-05/0.1323, allocations: 4 kB / 344.1 MB, free: 3.941 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.1324, allocations: 0 / 344.1 MB, free: 3.941 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.1334, allocations: 0.5452 MB / 344.6 MB, free: 3.387 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002906/0.1337, allocations: 75.89 kB / 344.7 MB, free: 3.312 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002811/0.1366, allocations: 3.656 MB / 348.3 MB, free: 15.35 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004791/0.1371, allocations: 76.09 kB / 348.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.054e-05/0.1371, allocations: 19.98 kB / 348.4 MB, free: 15.26 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.0002065/0.1373, allocations: 165.7 kB / 348.6 MB, free: 15.09 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.428e-05/0.1374, allocations: 39.53 kB / 348.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/0.139, allocations: 0.7286 MB / 349.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.733e-06/0.139, allocations: 4 kB / 349.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.139, allocations: 3.938 kB / 349.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.139, allocations: 0 / 349.4 MB, free: 14.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002177/0.1412, allocations: 1.258 MB / 350.6 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.1412, allocations: 0 / 350.6 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002817/0.1415, allocations: 59.89 kB / 350.7 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009931/0.1425, allocations: 0.5372 MB / 351.2 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.664e-05/0.1426, allocations: 15.98 kB / 351.2 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002827/0.1454, allocations: 3.626 MB / 354.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.1454, allocations: 0 / 354.9 MB, free: 8.418 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001927/0.1473, allocations: 1.025 MB / 355.9 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002297/0.1476, allocations: 160.7 kB / 356.1 MB, free: 7.191 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.513e-05/0.1477, allocations: 16 kB / 356.1 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004562/0.1481, allocations: 75.84 kB / 356.1 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002047/0.1484, allocations: 96.22 kB / 356.2 MB, free: 7.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.368e-05/0.1484, allocations: 19.98 kB / 356.3 MB, free: 6.988 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001651/0.1486, allocations: 178 kB / 356.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1486, allocations: 0 / 356.4 MB, free: 6.812 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005184/0.1491, allocations: 124 kB / 356.6 MB, free: 6.691 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.0003002/0.1494, allocations: 147.2 kB / 356.7 MB, free: 6.539 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001565/0.151, allocations: 0.8057 MB / 357.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.126e-06/0.151, allocations: 0 / 357.5 MB, free: 5.711 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008816/0.1519, allocations: 0.5373 MB / 358 MB, free: 5.145 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004915/0.1524, allocations: 56.45 kB / 358.1 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001949/0.1544, allocations: 0.9685 MB / 359.1 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004392/0.1548, allocations: 0.7957 MB / 359.9 MB, free: 3.273 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.155, allocations: 39.28 kB / 359.9 MB, free: 3.234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.593e-05/0.155, allocations: 31.44 kB / 359.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.155, allocations: 0 / 359.9 MB, free: 3.203 MB / 302.1 MB Notification: Performance of Templates: time 0.01579/0.1709, allocations: 9.983 MB / 369.9 MB, free: 9.211 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 gbode -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