Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001357/0.001357, allocations: 115.1 kB / 18.45 MB, free: 4.566 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001449/0.001449, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.546/1.546, allocations: 230.6 MB / 254.8 MB, free: 15.22 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 47.94 kB / 374.1 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1136/0.1153, allocations: 53.33 MB / 427.5 MB, free: 4.289 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00547/0.1207, allocations: 2.955 MB / 430.4 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002256/0.123, allocations: 1.06 MB / 431.5 MB, free: 252 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003517/0.1234, allocations: 7.938 kB / 431.5 MB, free: 244 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004017/0.1238, allocations: 79.34 kB / 431.6 MB, free: 164 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005489/0.1243, allocations: 162.8 kB / 431.7 MB, free: 0 / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004653/0.1248, allocations: 175.7 kB / 431.9 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006616/0.1254, allocations: 0.6046 MB / 432.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002172/0.1256, allocations: 86.62 kB / 432.6 MB, free: 15.13 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003525/0.126, allocations: 271.2 kB / 432.9 MB, free: 14.87 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003878/0.1264, allocations: 298.9 kB / 433.2 MB, free: 14.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.544e-05/0.1265, allocations: 44 kB / 433.2 MB, free: 14.53 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002094/0.1267, allocations: 104 kB / 433.3 MB, free: 14.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000175/0.1269, allocations: 127.6 kB / 433.4 MB, free: 14.3 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002328/0.1271, allocations: 234.8 kB / 433.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007298/0.1278, allocations: 0.5915 MB / 434.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1278, allocations: 0 / 434.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.52e-07/0.1278, allocations: 0 / 434.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.362e-05/0.1278, allocations: 0 / 434.2 MB, free: 13.48 MB / 366.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.1294, allocations: 0.783 MB / 435 MB, free: 12.64 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.103e-05/0.1295, allocations: 12.03 kB / 435 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001209/0.1296, allocations: 48.66 kB / 435.1 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006055/0.1302, allocations: 330.6 kB / 435.4 MB, free: 12.22 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.715e-05/0.1302, allocations: 25.38 kB / 435.4 MB, free: 12.2 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.817e-05/0.1303, allocations: 40.36 kB / 435.5 MB, free: 12.16 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009278/0.1313, allocations: 442.6 kB / 435.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.062e-05/0.1313, allocations: 3.953 kB / 435.9 MB, free: 11.72 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.968e-05/0.1313, allocations: 12 kB / 435.9 MB, free: 11.71 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.1314, allocations: 8 kB / 435.9 MB, free: 11.7 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001057/0.1324, allocations: 447.7 kB / 436.4 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002551/0.135, allocations: 1.277 MB / 437.6 MB, free: 9.918 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009547/0.1359, allocations: 376.3 kB / 438 MB, free: 9.535 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005167/0.1364, allocations: 226.1 kB / 438.2 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.239e-05/0.1365, allocations: 16.42 kB / 438.3 MB, free: 9.297 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.593e-05/0.1365, allocations: 43 kB / 438.3 MB, free: 9.246 MB / 366.1 MB Notification: Performance of pre-optimization done (n=50): time 1.723e-06/0.1365, allocations: 0 / 438.3 MB, free: 9.246 MB / 366.1 MB Notification: Performance of matching and sorting (n=54): time 0.006186/0.1427, allocations: 2.241 MB / 440.5 MB, free: 6.871 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.1428, allocations: 59.78 kB / 440.6 MB, free: 6.801 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003672/0.1431, allocations: 270.7 kB / 440.9 MB, free: 6.531 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.271e-05/0.1432, allocations: 49.7 kB / 440.9 MB, free: 6.477 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001628/0.1434, allocations: 168.9 kB / 441.1 MB, free: 6.305 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001916/0.1436, allocations: 198.4 kB / 441.3 MB, free: 6.109 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001962/0.1437, allocations: 102.1 kB / 441.4 MB, free: 6.004 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002418/0.144, allocations: 346.8 kB / 441.7 MB, free: 5.656 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005249/0.1445, allocations: 221 kB / 441.9 MB, free: 5.438 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006911/0.1452, allocations: 291.2 kB / 442.2 MB, free: 5.141 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00103/0.1462, allocations: 399.7 kB / 442.6 MB, free: 4.73 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1462, allocations: 0 / 442.6 MB, free: 4.73 MB / 366.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001804/0.148, allocations: 0.7197 MB / 443.3 MB, free: 3.992 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.8e-05/0.1481, allocations: 12 kB / 443.3 MB, free: 3.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.1481, allocations: 3.938 kB / 443.3 MB, free: 3.977 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001152/0.1492, allocations: 422.3 kB / 443.7 MB, free: 3.555 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002985/0.1495, allocations: 71.89 kB / 443.8 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2004/0.3499, allocations: 3.628 MB / 447.4 MB, free: 23.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007754/0.3507, allocations: 77.38 kB / 447.5 MB, free: 23.6 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.409e-05/0.3508, allocations: 22.16 kB / 447.5 MB, free: 23.6 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.0002527/0.351, allocations: 166.3 kB / 447.7 MB, free: 23.49 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.3511, allocations: 40.48 kB / 447.7 MB, free: 23.49 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001792/0.3529, allocations: 0.7123 MB / 448.5 MB, free: 23.42 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.3529, allocations: 7.5 kB / 448.5 MB, free: 23.42 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.3529, allocations: 1.906 kB / 448.5 MB, free: 23.42 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.562e-06/0.3529, allocations: 4.562 kB / 448.5 MB, free: 23.42 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002228/0.3552, allocations: 1.272 MB / 449.7 MB, free: 23.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.977e-06/0.3552, allocations: 5.062 kB / 449.7 MB, free: 23.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002694/0.3554, allocations: 53.28 kB / 449.8 MB, free: 23.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008977/0.3563, allocations: 411.3 kB / 450.2 MB, free: 23.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.3e-05/0.3564, allocations: 25.39 kB / 450.2 MB, free: 23.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002107/0.3585, allocations: 3.611 MB / 453.8 MB, free: 19.75 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.442e-06/0.3585, allocations: 1.812 kB / 453.8 MB, free: 19.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001927/0.3604, allocations: 1.013 MB / 454.8 MB, free: 19.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/0.3606, allocations: 160.3 kB / 455 MB, free: 19.15 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.532e-05/0.3607, allocations: 26.16 kB / 455 MB, free: 19.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005011/0.3612, allocations: 69.72 kB / 455.1 MB, free: 19.13 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002207/0.3614, allocations: 90.59 kB / 455.2 MB, free: 19.11 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.499e-05/0.3614, allocations: 28.22 kB / 455.2 MB, free: 19.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001787/0.3616, allocations: 191.3 kB / 455.4 MB, free: 19 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3616, allocations: 3.469 kB / 455.4 MB, free: 19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005059/0.3621, allocations: 123.3 kB / 455.5 MB, free: 18.98 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.0014/0.3635, allocations: 389.5 kB / 455.9 MB, free: 18.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.3651, allocations: 0.7575 MB / 456.7 MB, free: 18.47 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3651, allocations: 3.75 kB / 456.7 MB, free: 18.47 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008792/0.366, allocations: 0.51 MB / 457.2 MB, free: 18.16 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005669/0.3666, allocations: 73.59 kB / 457.2 MB, free: 18.14 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002017/0.3686, allocations: 1.046 MB / 458.3 MB, free: 17.53 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002831/0.3689, allocations: 0.8105 MB / 459.1 MB, free: 16.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001228/0.369, allocations: 37.97 kB / 459.1 MB, free: 16.81 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.369, allocations: 0 / 459.1 MB, free: 16.81 MB / 366.1 MB Notification: Performance of Templates: time 0.01462/0.3836, allocations: 9.507 MB / 468.6 MB, free: 14.39 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 8.949788872996578]