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.0009556/0.000955, allocations: 90.66 kB / 17.3 MB, free: 6.344 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.001455/0.001455, allocations: 184.4 kB / 18.21 MB, free: 5.527 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.562/1.562, allocations: 205.4 MB / 224.4 MB, free: 13.07 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.0004441/0.0004442, allocations: 12 kB / 281.4 MB, free: 3.438 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1028/0.1032, allocations: 47.59 MB / 329 MB, free: 3.77 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00333/0.1066, allocations: 2.47 MB / 331.4 MB, free: 1.281 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001958/0.1086, allocations: 0.9202 MB / 332.4 MB, free: 360 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002435/0.1089, allocations: 11.94 kB / 332.4 MB, free: 348 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002508/0.1092, allocations: 43.69 kB / 332.4 MB, free: 304 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002937/0.1095, allocations: 95.3 kB / 332.5 MB, free: 208 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004978/0.11, allocations: 179.7 kB / 332.7 MB, free: 28 kB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005926/0.1106, allocations: 0.5384 MB / 333.2 MB, free: 15.49 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002259/0.1108, allocations: 94.59 kB / 333.3 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002859/0.1111, allocations: 219.1 kB / 333.5 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003319/0.1114, allocations: 251 kB / 333.8 MB, free: 14.93 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.458e-05/0.1115, allocations: 24 kB / 333.8 MB, free: 14.91 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.1117, allocations: 71.89 kB / 333.9 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001235/0.1118, allocations: 87.64 kB / 333.9 MB, free: 14.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001966/0.112, allocations: 216.7 kB / 334.2 MB, free: 14.53 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004763/0.1125, allocations: 0.4985 MB / 334.7 MB, free: 14.03 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1125, allocations: 4 kB / 334.7 MB, free: 14.03 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1125, allocations: 0 / 334.7 MB, free: 14.03 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.762e-06/0.1125, allocations: 0 / 334.7 MB, free: 14.03 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.001335/0.1139, allocations: 0.6902 MB / 335.3 MB, free: 13.29 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.332e-05/0.1139, allocations: 8.031 kB / 335.4 MB, free: 13.28 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.867e-05/0.114, allocations: 40.47 kB / 335.4 MB, free: 13.24 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003789/0.1144, allocations: 306.6 kB / 335.7 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.273e-05/0.1145, allocations: 25.38 kB / 335.7 MB, free: 12.87 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.185e-05/0.1146, allocations: 40.31 kB / 335.8 MB, free: 12.83 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008781/0.1154, allocations: 454.6 kB / 336.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.213e-05/0.1155, allocations: 3.906 kB / 336.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.233e-05/0.1156, allocations: 16 kB / 336.2 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.154e-05/0.1156, allocations: 8 kB / 336.2 MB, free: 12.36 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009229/0.1165, allocations: 471.7 kB / 336.7 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002252/0.1188, allocations: 1.296 MB / 338 MB, free: 10.53 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007743/0.1196, allocations: 383.7 kB / 338.4 MB, free: 10.14 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004685/0.12, allocations: 257.2 kB / 338.6 MB, free: 9.891 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.539e-05/0.1201, allocations: 4.375 kB / 338.6 MB, free: 9.887 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.1201, allocations: 46.92 kB / 338.7 MB, free: 9.832 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 1.853e-06/0.1201, allocations: 0 / 338.7 MB, free: 9.832 MB / 286.1 MB Notification: Performance of matching and sorting (n=49): time 0.005304/0.1254, allocations: 2.373 MB / 341 MB, free: 7.32 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.943e-05/0.1255, allocations: 59.84 kB / 341.1 MB, free: 7.25 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002402/0.1257, allocations: 250.5 kB / 341.3 MB, free: 6.996 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 5.068e-05/0.1258, allocations: 41.7 kB / 341.4 MB, free: 6.949 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001053/0.1259, allocations: 168.6 kB / 341.5 MB, free: 6.781 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001406/0.1261, allocations: 173.7 kB / 341.7 MB, free: 6.609 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.229e-05/0.1261, allocations: 41.7 kB / 341.8 MB, free: 6.562 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001286/0.1263, allocations: 346.8 kB / 342.1 MB, free: 6.215 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004792/0.1268, allocations: 241 kB / 342.3 MB, free: 5.98 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005196/0.1273, allocations: 311.2 kB / 342.6 MB, free: 5.656 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008101/0.1281, allocations: 431.7 kB / 343.1 MB, free: 5.223 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.1281, allocations: 0 / 343.1 MB, free: 5.223 MB / 286.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001586/0.1297, allocations: 0.7704 MB / 343.8 MB, free: 4.434 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1297, allocations: 8 kB / 343.8 MB, free: 4.426 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.981e-06/0.1298, allocations: 4.125 kB / 343.8 MB, free: 4.422 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001061/0.1308, allocations: 0.545 MB / 344.4 MB, free: 3.867 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002719/0.1311, allocations: 83.77 kB / 344.5 MB, free: 3.785 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002777/0.1339, allocations: 3.459 MB / 347.9 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005249/0.1344, allocations: 108 kB / 348 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.193e-05/0.1345, allocations: 19.98 kB / 348 MB, free: 15.91 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.0002262/0.1347, allocations: 169.3 kB / 348.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.559e-05/0.1348, allocations: 39.53 kB / 348.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001526/0.1363, allocations: 0.7404 MB / 349 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.291e-05/0.1364, allocations: 4 kB / 349 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1364, allocations: 0 / 349 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.1364, allocations: 3.938 kB / 349 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002078/0.1385, allocations: 1.282 MB / 350.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.1385, allocations: 0 / 350.3 MB, free: 13.58 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002818/0.1388, allocations: 71.88 kB / 350.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009411/0.1397, allocations: 0.5216 MB / 350.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.193e-05/0.1398, allocations: 23.97 kB / 350.9 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002694/0.1425, allocations: 3.432 MB / 354.3 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1425, allocations: 0 / 354.3 MB, free: 9.234 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001868/0.1444, allocations: 1.051 MB / 355.4 MB, free: 8.156 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001737/0.1445, allocations: 152.7 kB / 355.5 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.027e-05/0.1446, allocations: 20 kB / 355.5 MB, free: 7.969 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005128/0.1451, allocations: 107.8 kB / 355.7 MB, free: 7.863 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001933/0.1454, allocations: 88.36 kB / 355.7 MB, free: 7.777 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.676e-05/0.1454, allocations: 19.98 kB / 355.8 MB, free: 7.758 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001657/0.1456, allocations: 182 kB / 355.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1456, allocations: 0 / 355.9 MB, free: 7.578 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005134/0.1461, allocations: 128 kB / 356.1 MB, free: 7.453 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.0002336/0.1463, allocations: 147 kB / 356.2 MB, free: 7.301 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001517/0.1479, allocations: 0.8253 MB / 357 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.1479, allocations: 0 / 357 MB, free: 6.453 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008864/0.1488, allocations: 0.545 MB / 357.6 MB, free: 5.879 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000547/0.1493, allocations: 56.53 kB / 357.6 MB, free: 5.824 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002063/0.1514, allocations: 1.195 MB / 358.8 MB, free: 4.605 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004022/0.1518, allocations: 0.8035 MB / 359.6 MB, free: 3.773 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001443/0.152, allocations: 35.27 kB / 359.7 MB, free: 3.734 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.705e-05/0.1521, allocations: 27.42 kB / 359.7 MB, free: 3.707 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1521, allocations: 3.938 kB / 359.7 MB, free: 3.703 MB / 302.1 MB Notification: Performance of Templates: time 0.01528/0.1673, allocations: 9.268 MB / 369 MB, free: 10.43 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