Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001317/0.001317, allocations: 79.73 kB / 21.25 MB, free: 396 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001426/0.001426, allocations: 165 kB / 24.5 MB, free: 3.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.416/1.416, allocations: 177.1 MB / 204.7 MB, free: 9.008 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002218/0.002218, allocations: 64.55 kB / 325.5 MB, free: 236 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.102/0.1042, allocations: 53.39 MB / 378.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005086/0.1093, allocations: 2.785 MB / 381.7 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002604/0.1119, allocations: 1.006 MB / 382.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003909/0.1123, allocations: 7.938 kB / 382.7 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005574/0.1128, allocations: 79.3 kB / 382.8 MB, free: 11.64 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007315/0.1136, allocations: 166.9 kB / 382.9 MB, free: 11.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006332/0.1142, allocations: 187.7 kB / 383.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001017/0.1152, allocations: 0.6047 MB / 383.7 MB, free: 10.68 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002711/0.1155, allocations: 82.97 kB / 383.8 MB, free: 10.59 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005474/0.116, allocations: 259.3 kB / 384.1 MB, free: 10.34 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006229/0.1167, allocations: 271 kB / 384.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001939/0.1169, allocations: 52 kB / 384.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003948/0.1173, allocations: 99.97 kB / 384.5 MB, free: 9.926 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003321/0.1176, allocations: 135.6 kB / 384.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003609/0.1179, allocations: 195.1 kB / 384.8 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009074/0.1189, allocations: 0.5838 MB / 385.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.043e-06/0.1189, allocations: 7.938 kB / 385.4 MB, free: 9.008 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.1189, allocations: 3.938 kB / 385.4 MB, free: 9.004 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.1189, allocations: 0 / 385.4 MB, free: 9.004 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001608/0.1205, allocations: 0.7116 MB / 386.1 MB, free: 8.262 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.1205, allocations: 15.98 kB / 386.1 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001222/0.1206, allocations: 44.66 kB / 386.2 MB, free: 8.203 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005245/0.1212, allocations: 273.2 kB / 386.4 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.484e-05/0.1212, allocations: 25.38 kB / 386.5 MB, free: 7.887 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.281e-05/0.1213, allocations: 40.36 kB / 386.5 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009041/0.1222, allocations: 438.6 kB / 386.9 MB, free: 7.414 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.437e-05/0.1222, allocations: 7.891 kB / 386.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.881e-05/0.1223, allocations: 16 kB / 386.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.1223, allocations: 8 kB / 387 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00102/0.1233, allocations: 443.7 kB / 387.4 MB, free: 6.949 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002469/0.1258, allocations: 1.066 MB / 388.5 MB, free: 5.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000941/0.1267, allocations: 373.1 kB / 388.8 MB, free: 5.461 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005118/0.1272, allocations: 230.3 kB / 389 MB, free: 5.234 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.804e-05/0.1273, allocations: 8.438 kB / 389 MB, free: 5.223 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.473e-05/0.1273, allocations: 39.06 kB / 389.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.655e-06/0.1273, allocations: 0 / 389.1 MB, free: 5.176 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005714/0.133, allocations: 1.953 MB / 391 MB, free: 3.164 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.465e-05/0.1331, allocations: 63.89 kB / 391.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.1334, allocations: 269.7 kB / 391.4 MB, free: 2.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.753e-05/0.1335, allocations: 41.7 kB / 391.4 MB, free: 2.773 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001356/0.1336, allocations: 172.9 kB / 391.6 MB, free: 2.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001728/0.1338, allocations: 198.4 kB / 391.8 MB, free: 2.402 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001862/0.134, allocations: 98.33 kB / 391.9 MB, free: 2.301 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.1341, allocations: 346.8 kB / 392.2 MB, free: 1.953 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005472/0.1347, allocations: 217.2 kB / 392.4 MB, free: 1.742 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005888/0.1353, allocations: 292.1 kB / 392.7 MB, free: 1.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009357/0.1362, allocations: 398.9 kB / 393.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.1362, allocations: 0 / 393.1 MB, free: 1.031 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001737/0.1379, allocations: 0.7144 MB / 393.8 MB, free: 308 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.453e-05/0.138, allocations: 12.02 kB / 393.8 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.138, allocations: 7.938 kB / 393.8 MB, free: 288 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001192/0.1392, allocations: 424.4 kB / 394.2 MB, free: 15.86 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002947/0.1395, allocations: 71.89 kB / 394.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003336/0.1428, allocations: 3.381 MB / 397.7 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005597/0.1434, allocations: 83.94 kB / 397.8 MB, free: 12.09 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.887e-05/0.1434, allocations: 16 kB / 397.8 MB, free: 12.07 MB / 366.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 (44): * Single equations (assignments): 41 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002727/0.1437, allocations: 166.4 kB / 398 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.989e-05/0.1438, allocations: 39.77 kB / 398 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001767/0.1456, allocations: 0.7068 MB / 398.7 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.881e-06/0.1456, allocations: 7.938 kB / 398.7 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.1456, allocations: 0 / 398.7 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.153e-05/0.1456, allocations: 15.92 kB / 398.7 MB, free: 11.12 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002389/0.148, allocations: 1.112 MB / 399.8 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.326e-06/0.148, allocations: 0 / 399.8 MB, free: 9.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002908/0.1483, allocations: 47.97 kB / 399.9 MB, free: 9.918 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001047/0.1493, allocations: 411 kB / 400.3 MB, free: 9.508 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.608e-05/0.1493, allocations: 19.98 kB / 400.3 MB, free: 9.488 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003296/0.1526, allocations: 3.362 MB / 403.7 MB, free: 5.898 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.1526, allocations: 7.969 kB / 403.7 MB, free: 5.891 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002224/0.1549, allocations: 1.012 MB / 404.7 MB, free: 4.855 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002334/0.1551, allocations: 87.67 kB / 404.8 MB, free: 4.77 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.278e-05/0.1552, allocations: 15.98 kB / 404.8 MB, free: 4.754 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005188/0.1557, allocations: 71.91 kB / 404.9 MB, free: 4.684 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002373/0.1559, allocations: 92.31 kB / 404.9 MB, free: 4.594 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.569e-05/0.156, allocations: 31.97 kB / 405 MB, free: 4.562 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002162/0.1562, allocations: 185.2 kB / 405.2 MB, free: 4.379 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1562, allocations: 0 / 405.2 MB, free: 4.379 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005613/0.1568, allocations: 131.9 kB / 405.3 MB, free: 4.25 MB / 366.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,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001547/0.1583, allocations: 406.9 kB / 405.7 MB, free: 3.973 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00197/0.1603, allocations: 0.748 MB / 406.4 MB, free: 3.199 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.1603, allocations: 4.25 kB / 406.4 MB, free: 3.195 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001019/0.1613, allocations: 0.5104 MB / 406.9 MB, free: 2.66 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006041/0.1619, allocations: 72.31 kB / 407 MB, free: 2.59 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.1642, allocations: 1.027 MB / 408 MB, free: 1.535 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002639/0.1645, allocations: 208.2 kB / 408.2 MB, free: 1.305 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001693/0.1646, allocations: 31.28 kB / 408.3 MB, free: 1.277 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001061/0.1648, allocations: 36.48 kB / 408.3 MB, free: 1.242 MB / 366.1 MB Notification: Performance of SimCode: time 6.71e-07/0.1648, allocations: 0 / 408.3 MB, free: 1.242 MB / 366.1 MB Notification: Performance of Templates: time 0.01737/0.1821, allocations: 8.768 MB / 417.1 MB, free: 8.539 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.736369815887883]