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.001266/0.001266, allocations: 73.02 kB / 21.24 MB, free: 0.5547 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.001389/0.001389, allocations: 159.2 kB / 24.5 MB, free: 3.715 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.464/1.464, allocations: 177.2 MB / 204.9 MB, free: 9.004 MB / 190.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.001557/0.001557, allocations: 51.89 kB / 325.6 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08991/0.09147, allocations: 53.34 MB / 378.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00437/0.09584, allocations: 2.773 MB / 381.7 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001778/0.09762, allocations: 1.025 MB / 382.7 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001377/0.09776, allocations: 8 kB / 382.7 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000284/0.09804, allocations: 75.31 kB / 382.8 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000362/0.0984, allocations: 162.9 kB / 382.9 MB, free: 11.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003565/0.09876, allocations: 195.7 kB / 383.1 MB, free: 11.41 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000638/0.0994, allocations: 0.593 MB / 383.7 MB, free: 10.81 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001836/0.09958, allocations: 82.97 kB / 383.8 MB, free: 10.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003199/0.0999, allocations: 271.2 kB / 384.1 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003901/0.1003, allocations: 267 kB / 384.3 MB, free: 10.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.913e-05/0.1004, allocations: 48 kB / 384.4 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000186/0.1006, allocations: 99.97 kB / 384.5 MB, free: 10.06 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001877/0.1008, allocations: 127.6 kB / 384.6 MB, free: 9.934 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002187/0.101, allocations: 199.1 kB / 384.8 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006732/0.1016, allocations: 0.5954 MB / 385.4 MB, free: 9.141 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1016, allocations: 4 kB / 385.4 MB, free: 9.137 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1017, allocations: 0 / 385.4 MB, free: 9.137 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.1017, allocations: 0 / 385.4 MB, free: 9.137 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.00153/0.1032, allocations: 0.7116 MB / 386.1 MB, free: 8.395 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.477e-05/0.1032, allocations: 8.031 kB / 386.1 MB, free: 8.387 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001164/0.1033, allocations: 48.66 kB / 386.2 MB, free: 8.34 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004936/0.1038, allocations: 265.2 kB / 386.4 MB, free: 8.055 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.686e-05/0.1039, allocations: 29.38 kB / 386.4 MB, free: 8.027 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.075e-05/0.104, allocations: 40.36 kB / 386.5 MB, free: 7.988 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009052/0.1049, allocations: 446.6 kB / 386.9 MB, free: 7.547 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.552e-05/0.1049, allocations: 7.953 kB / 386.9 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.473e-05/0.1049, allocations: 12 kB / 386.9 MB, free: 7.527 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.826e-05/0.1049, allocations: 12 kB / 387 MB, free: 7.516 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.106, allocations: 439.7 kB / 387.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002355/0.1083, allocations: 1.066 MB / 388.4 MB, free: 5.969 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000945/0.1093, allocations: 366.1 kB / 388.8 MB, free: 5.602 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005051/0.1098, allocations: 234.2 kB / 389 MB, free: 5.371 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.173e-05/0.1098, allocations: 20.38 kB / 389.1 MB, free: 5.348 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.944e-05/0.1098, allocations: 35.06 kB / 389.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.603e-06/0.1098, allocations: 0 / 389.1 MB, free: 5.305 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.0056/0.1154, allocations: 1.957 MB / 391 MB, free: 3.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.552e-05/0.1155, allocations: 59.91 kB / 391.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002998/0.1158, allocations: 273.7 kB / 391.4 MB, free: 2.945 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.113e-05/0.1159, allocations: 45.7 kB / 391.4 MB, free: 2.895 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001307/0.116, allocations: 168.9 kB / 391.6 MB, free: 2.723 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001675/0.1162, allocations: 194.4 kB / 391.8 MB, free: 2.531 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000174/0.1163, allocations: 94.33 kB / 391.9 MB, free: 2.434 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001722/0.1165, allocations: 346.8 kB / 392.2 MB, free: 2.086 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005058/0.117, allocations: 217.2 kB / 392.4 MB, free: 1.875 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005729/0.1176, allocations: 300 kB / 392.7 MB, free: 1.559 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008535/0.1184, allocations: 395 kB / 393.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1184, allocations: 0 / 393.1 MB, free: 1.156 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001625/0.1201, allocations: 0.7182 MB / 393.8 MB, free: 436 kB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.1201, allocations: 8 kB / 393.8 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.49e-06/0.1201, allocations: 0 / 393.8 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/0.1212, allocations: 426.5 kB / 394.2 MB, free: 15.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002732/0.1215, allocations: 59.91 kB / 394.3 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003154/0.1246, allocations: 3.4 MB / 397.7 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005162/0.1251, allocations: 88.08 kB / 397.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.683e-05/0.1252, allocations: 20 kB / 397.8 MB, free: 12.2 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.0002152/0.1254, allocations: 166.3 kB / 398 MB, free: 12.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.672e-05/0.1255, allocations: 39.77 kB / 398 MB, free: 11.99 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001664/0.1272, allocations: 0.6991 MB / 398.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/0.1272, allocations: 4 kB / 398.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.716e-06/0.1272, allocations: 4 kB / 398.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.037e-06/0.1272, allocations: 7.922 kB / 398.7 MB, free: 11.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002333/0.1295, allocations: 1.12 MB / 399.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.1295, allocations: 0 / 399.8 MB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002902/0.1298, allocations: 55.91 kB / 399.9 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009826/0.1308, allocations: 402.3 kB / 400.3 MB, free: 9.633 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.116e-05/0.1308, allocations: 23.97 kB / 400.3 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003053/0.1339, allocations: 3.37 MB / 403.7 MB, free: 6.012 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.1339, allocations: 3.938 kB / 403.7 MB, free: 6.008 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002061/0.136, allocations: 1.004 MB / 404.7 MB, free: 4.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002041/0.1362, allocations: 91.66 kB / 404.8 MB, free: 4.891 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.098e-05/0.1362, allocations: 16 kB / 404.8 MB, free: 4.875 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004998/0.1367, allocations: 71.97 kB / 404.9 MB, free: 4.805 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002175/0.137, allocations: 100.3 kB / 405 MB, free: 4.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.572e-05/0.137, allocations: 19.98 kB / 405 MB, free: 4.688 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001977/0.1372, allocations: 189.2 kB / 405.2 MB, free: 4.504 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1372, allocations: 0 / 405.2 MB, free: 4.504 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004887/0.1377, allocations: 119.9 kB / 405.3 MB, free: 4.387 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.001415/0.1391, allocations: 408 kB / 405.7 MB, free: 4.133 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00164/0.1408, allocations: 0.7597 MB / 406.4 MB, free: 3.348 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.1408, allocations: 0 / 406.4 MB, free: 3.348 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009147/0.1417, allocations: 0.5105 MB / 406.9 MB, free: 2.812 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005491/0.1422, allocations: 83.22 kB / 407 MB, free: 2.734 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002082/0.1443, allocations: 1.016 MB / 408 MB, free: 1.684 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002087/0.1445, allocations: 200.2 kB / 408.2 MB, free: 1.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001256/0.1446, allocations: 35.27 kB / 408.3 MB, free: 1.43 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.717e-05/0.1447, allocations: 40.48 kB / 408.3 MB, free: 1.391 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1447, allocations: 0 / 408.3 MB, free: 1.391 MB / 366.1 MB Notification: Performance of Templates: time 0.01515/0.1599, allocations: 8.777 MB / 417.1 MB, free: 8.695 MB / 382.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 -s ida -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: 4.54872634797357]