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.001531/0.001531, allocations: 103.2 kB / 17.16 MB, free: 6.316 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.001657/0.001657, allocations: 190 kB / 18.07 MB, free: 5.414 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.788/1.788, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001131/0.001131, allocations: 51.91 kB / 280 MB, free: 3.586 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1024/0.1036, allocations: 46.63 MB / 326.6 MB, free: 4.891 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004135/0.1077, allocations: 2.836 MB / 329.4 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002094/0.1099, allocations: 0.9358 MB / 330.4 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004107/0.1103, allocations: 7.938 kB / 330.4 MB, free: 1.078 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003535/0.1107, allocations: 39.7 kB / 330.4 MB, free: 1.039 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004193/0.1111, allocations: 99.3 kB / 330.5 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006261/0.1118, allocations: 179.7 kB / 330.7 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008228/0.1126, allocations: 0.5384 MB / 331.2 MB, free: 232 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002444/0.1129, allocations: 102.6 kB / 331.3 MB, free: 124 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003684/0.1133, allocations: 223.2 kB / 331.5 MB, free: 15.9 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003287/0.1136, allocations: 259 kB / 331.8 MB, free: 15.65 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.661e-05/0.1137, allocations: 28 kB / 331.8 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001831/0.1139, allocations: 75.89 kB / 331.9 MB, free: 15.55 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001323/0.114, allocations: 95.64 kB / 332 MB, free: 15.45 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002024/0.1142, allocations: 207 kB / 332.2 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005227/0.1147, allocations: 0.4986 MB / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.1148, allocations: 3.938 kB / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1148, allocations: 0 / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.523e-06/0.1148, allocations: 0 / 332.7 MB, free: 14.75 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.001496/0.1163, allocations: 0.7408 MB / 333.4 MB, free: 13.96 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.248e-05/0.1163, allocations: 8.031 kB / 333.4 MB, free: 13.95 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.1164, allocations: 44.47 kB / 333.5 MB, free: 13.91 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004014/0.1169, allocations: 302.6 kB / 333.8 MB, free: 13.57 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.939e-05/0.1169, allocations: 29.38 kB / 333.8 MB, free: 13.54 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.318e-05/0.117, allocations: 32.38 kB / 333.8 MB, free: 13.5 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008946/0.1179, allocations: 450.6 kB / 334.3 MB, free: 13.06 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.1179, allocations: 3.906 kB / 334.3 MB, free: 13.05 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.927e-05/0.118, allocations: 16 kB / 334.3 MB, free: 13.04 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.118, allocations: 8 kB / 334.3 MB, free: 13.03 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009463/0.119, allocations: 455.6 kB / 334.8 MB, free: 12.59 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00239/0.1214, allocations: 1.265 MB / 336 MB, free: 11.25 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008608/0.1222, allocations: 371.7 kB / 336.4 MB, free: 10.88 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000476/0.1227, allocations: 249.2 kB / 336.6 MB, free: 10.63 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.703e-05/0.1228, allocations: 8.375 kB / 336.6 MB, free: 10.62 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.971e-05/0.1228, allocations: 38.92 kB / 336.7 MB, free: 10.58 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 2.064e-06/0.1228, allocations: 0 / 336.7 MB, free: 10.58 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.005278/0.1281, allocations: 2.252 MB / 338.9 MB, free: 8.188 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.287e-05/0.1282, allocations: 63.78 kB / 339 MB, free: 8.113 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002458/0.1284, allocations: 254.6 kB / 339.2 MB, free: 7.855 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.795e-05/0.1285, allocations: 41.7 kB / 339.3 MB, free: 7.809 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.1286, allocations: 168.6 kB / 339.4 MB, free: 7.641 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001404/0.1288, allocations: 169.7 kB / 339.6 MB, free: 7.473 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001731/0.1289, allocations: 102.1 kB / 339.7 MB, free: 7.367 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.1291, allocations: 338.8 kB / 340 MB, free: 7.027 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004755/0.1296, allocations: 237 kB / 340.3 MB, free: 6.797 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000526/0.1301, allocations: 299.2 kB / 340.6 MB, free: 6.484 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008277/0.1309, allocations: 423.7 kB / 341 MB, free: 6.055 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1309, allocations: 0 / 341 MB, free: 6.055 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001656/0.1326, allocations: 0.7548 MB / 341.7 MB, free: 5.285 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.286e-05/0.1326, allocations: 8 kB / 341.7 MB, free: 5.277 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.1327, allocations: 0 / 341.7 MB, free: 5.277 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001243/0.1339, allocations: 0.5486 MB / 342.3 MB, free: 4.723 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002786/0.1342, allocations: 71.84 kB / 342.4 MB, free: 4.652 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003062/0.1373, allocations: 3.464 MB / 345.8 MB, free: 0.8945 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004693/0.1378, allocations: 75.89 kB / 345.9 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.847e-05/0.1378, allocations: 20 kB / 345.9 MB, free: 0.8008 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 (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.0002553/0.1381, allocations: 177.3 kB / 346.1 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.357e-05/0.1382, allocations: 35.62 kB / 346.1 MB, free: 0.582 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001675/0.1399, allocations: 0.7209 MB / 346.8 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.1399, allocations: 4 kB / 346.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.797e-06/0.1399, allocations: 0 / 346.9 MB, free: 15.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.316e-06/0.1399, allocations: 11.92 kB / 346.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002112/0.142, allocations: 1.267 MB / 348.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.142, allocations: 0 / 348.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002728/0.1423, allocations: 51.97 kB / 348.2 MB, free: 14.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001007/0.1433, allocations: 0.5333 MB / 348.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.831e-05/0.1434, allocations: 19.97 kB / 348.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003174/0.1466, allocations: 3.432 MB / 352.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.1466, allocations: 0 / 352.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/0.1486, allocations: 1.028 MB / 353.2 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002203/0.1488, allocations: 160.7 kB / 353.3 MB, free: 8.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.079e-05/0.1489, allocations: 19.94 kB / 353.4 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004676/0.1494, allocations: 71.84 kB / 353.4 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002388/0.1496, allocations: 88.28 kB / 353.5 MB, free: 8.754 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.699e-05/0.1497, allocations: 23.97 kB / 353.5 MB, free: 8.73 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002085/0.1499, allocations: 174 kB / 353.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1499, allocations: 0 / 353.7 MB, free: 8.559 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006133/0.1505, allocations: 132 kB / 353.8 MB, free: 8.43 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.0003927/0.1509, allocations: 139.2 kB / 354 MB, free: 8.285 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001733/0.1527, allocations: 0.8058 MB / 354.8 MB, free: 7.457 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1527, allocations: 0 / 354.8 MB, free: 7.457 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008963/0.1536, allocations: 0.5333 MB / 355.3 MB, free: 6.895 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005808/0.1542, allocations: 60.53 kB / 355.4 MB, free: 6.836 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00204/0.1562, allocations: 1.12 MB / 356.5 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003485/0.1566, allocations: 0.7957 MB / 357.3 MB, free: 4.867 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001474/0.1567, allocations: 31.28 kB / 357.3 MB, free: 4.836 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.939e-05/0.1568, allocations: 35.42 kB / 357.4 MB, free: 4.801 MB / 302.1 MB Notification: Performance of SimCode: time 2.805e-06/0.1568, allocations: 0 / 357.4 MB, free: 4.801 MB / 302.1 MB Notification: Performance of Templates: time 0.01498/0.1718, allocations: 9.351 MB / 366.7 MB, free: 11.44 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 -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/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