Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.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.001024/0.001024, allocations: 75.75 kB / 21.97 MB, free: 2.602 MB / 18.57 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.001103/0.001103, allocations: 162.7 kB / 25.33 MB, free: 9.469 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9789/0.9789, allocations: 158.6 MB / 187.2 MB, free: 2.535 MB / 170.7 MB " [Timeout remaining time 179] 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.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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=3000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 251 MB, free: 3.598 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.349e-05/3.528e-05, allocations: 5.406 kB / 251 MB, free: 3.594 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004329/0.004364, allocations: 3.035 MB / 254.1 MB, free: 0.5352 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001728/0.006092, allocations: 0.9668 MB / 255 MB, free: 15.56 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002321/0.006324, allocations: 11.94 kB / 255.1 MB, free: 15.55 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002559/0.00658, allocations: 63.31 kB / 255.1 MB, free: 15.48 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002397/0.00682, allocations: 150.8 kB / 255.3 MB, free: 15.34 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006061/0.007426, allocations: 235.4 kB / 255.5 MB, free: 15.11 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005584/0.007984, allocations: 0.6431 MB / 256.1 MB, free: 14.46 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001916/0.008176, allocations: 84.7 kB / 256.2 MB, free: 14.38 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004619/0.008638, allocations: 403.1 kB / 256.6 MB, free: 13.98 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002893/0.008927, allocations: 239.4 kB / 256.8 MB, free: 13.75 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.491e-05/0.008992, allocations: 48 kB / 256.9 MB, free: 13.7 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001784/0.00917, allocations: 99.94 kB / 257 MB, free: 13.6 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.009282, allocations: 127.5 kB / 257.1 MB, free: 13.48 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001472/0.009429, allocations: 183.5 kB / 257.3 MB, free: 13.3 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000501/0.00993, allocations: 474.4 kB / 257.8 MB, free: 12.83 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.009933, allocations: 0 / 257.8 MB, free: 12.83 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.009934, allocations: 0 / 257.8 MB, free: 12.83 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.00994, allocations: 0 / 257.8 MB, free: 12.83 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.0009921/0.01093, allocations: 0.7959 MB / 258.6 MB, free: 12 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.01098, allocations: 11.98 kB / 258.6 MB, free: 11.99 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001299/0.01111, allocations: 84.61 kB / 258.6 MB, free: 11.91 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.01147, allocations: 279.2 kB / 258.9 MB, free: 11.61 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.712e-05/0.0115, allocations: 29.38 kB / 259 MB, free: 11.58 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.863e-05/0.01157, allocations: 48.27 kB / 259 MB, free: 11.53 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005394/0.01211, allocations: 399.6 kB / 259.4 MB, free: 11.13 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.01213, allocations: 4.141 kB / 259.4 MB, free: 11.13 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.163e-05/0.01216, allocations: 16.38 kB / 259.4 MB, free: 11.11 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.243e-05/0.01218, allocations: 11.94 kB / 259.4 MB, free: 11.1 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004294/0.0126, allocations: 317.7 kB / 259.7 MB, free: 10.79 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001249/0.01385, allocations: 0.9078 MB / 260.6 MB, free: 9.84 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005156/0.01437, allocations: 305.1 kB / 260.9 MB, free: 9.531 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002718/0.01464, allocations: 177.1 kB / 261.1 MB, free: 9.355 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.606e-05/0.01468, allocations: 8.5 kB / 261.1 MB, free: 9.348 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.0147, allocations: 45.83 kB / 261.2 MB, free: 9.293 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 2.104e-06/0.01471, allocations: 0 / 261.2 MB, free: 9.293 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.002605/0.01731, allocations: 1.692 MB / 262.9 MB, free: 7.539 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.29e-05/0.01734, allocations: 55.91 kB / 262.9 MB, free: 7.469 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000207/0.01755, allocations: 312.2 kB / 263.2 MB, free: 7.148 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.606e-05/0.01759, allocations: 45.69 kB / 263.3 MB, free: 7.098 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001084/0.0177, allocations: 232.3 kB / 263.5 MB, free: 6.863 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000119/0.01781, allocations: 210.2 kB / 263.7 MB, free: 6.656 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001231/0.01794, allocations: 108 kB / 263.8 MB, free: 6.543 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.01808, allocations: 0.5235 MB / 264.3 MB, free: 6.008 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002373/0.01831, allocations: 161.2 kB / 264.5 MB, free: 5.852 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002418/0.01855, allocations: 210.5 kB / 264.7 MB, free: 5.637 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003638/0.01892, allocations: 299.8 kB / 265 MB, free: 5.34 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.01892, allocations: 4 kB / 265 MB, free: 5.336 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.000863/0.01978, allocations: 0.6367 MB / 265.6 MB, free: 4.684 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.0198, allocations: 4 kB / 265.6 MB, free: 4.68 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.01981, allocations: 0 / 265.6 MB, free: 4.68 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005393/0.02034, allocations: 439 kB / 266 MB, free: 4.242 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000183/0.02053, allocations: 87.84 kB / 266.1 MB, free: 4.156 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000938/0.02147, allocations: 1.818 MB / 268 MB, free: 2.273 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001846/0.02165, allocations: 55.94 kB / 268 MB, free: 2.219 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.955e-05/0.02168, allocations: 20 kB / 268 MB, free: 2.199 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (57): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,8), (1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0001419/0.02182, allocations: 192.5 kB / 268.2 MB, free: 2 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.298e-05/0.02189, allocations: 59.7 kB / 268.3 MB, free: 1.941 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.349e-05/0.02196, allocations: 59.61 kB / 268.3 MB, free: 1.883 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.02196, allocations: 4 kB / 268.3 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.761e-06/0.02197, allocations: 0 / 268.3 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.02197, allocations: 0 / 268.3 MB, free: 1.879 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001473/0.02344, allocations: 1.183 MB / 269.5 MB, free: 0.625 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.409e-06/0.02345, allocations: 4 kB / 269.5 MB, free: 0.6211 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.02364, allocations: 84.05 kB / 269.6 MB, free: 0.5391 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000448/0.02409, allocations: 439 kB / 270 MB, free: 104 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.219e-05/0.02412, allocations: 15.98 kB / 270 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008386/0.02496, allocations: 1.815 MB / 271.9 MB, free: 14.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.016e-06/0.02496, allocations: 3.938 kB / 271.9 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001065/0.02603, allocations: 0.9315 MB / 272.8 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001811/0.02621, allocations: 87.67 kB / 272.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.761e-05/0.02627, allocations: 20 kB / 272.9 MB, free: 13.12 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001708/0.02644, allocations: 43.95 kB / 272.9 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001618/0.0266, allocations: 104.2 kB / 273 MB, free: 12.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.3e-05/0.02663, allocations: 27.97 kB / 273.1 MB, free: 12.95 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001541/0.02679, allocations: 217.1 kB / 273.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02679, allocations: 0 / 273.3 MB, free: 12.73 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003413/0.02713, allocations: 128 kB / 273.4 MB, free: 12.61 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (clutch.mode,clutch.startForward,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,6), (1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001915/0.02732, allocations: 139.1 kB / 273.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006528/0.02797, allocations: 454.2 kB / 274 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.02797, allocations: 0 / 274 MB, free: 12.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003203/0.02829, allocations: 268.1 kB / 274.3 MB, free: 11.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003674/0.02866, allocations: 107 kB / 274.4 MB, free: 11.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002068/0.03073, allocations: 1.214 MB / 275.6 MB, free: 10.38 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.899e-05/0.03081, allocations: 110.5 kB / 275.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001107/0.03092, allocations: 39.27 kB / 275.7 MB, free: 10.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.533e-05/0.031, allocations: 40.44 kB / 275.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of SimCode: time 1.112e-06/0.031, allocations: 0 / 275.8 MB, free: 10.18 MB / 266.7 MB Notification: Performance of Templates: time 0.009995/0.041, allocations: 8.512 MB / 284.3 MB, free: 1.684 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0317065250128508]