Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.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.001106/0.001106, allocations: 79.69 kB / 21.7 MB, free: 2.848 MB / 18.57 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.001261/0.001261, allocations: 167.7 kB / 24.99 MB, free: 8.219 MB / 18.57 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 0.9484/0.9484, allocations: 177 MB / 205.2 MB, free: 5.527 MB / 186.7 MB " [Timeout remaining time 179] 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.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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 273 MB, free: 1.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.357e-05/2.511e-05, allocations: 2.312 kB / 273 MB, free: 1.727 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003277/0.003302, allocations: 3.174 MB / 276.2 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001689/0.004991, allocations: 1.099 MB / 277.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001955/0.005187, allocations: 11.88 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003063/0.005493, allocations: 87.16 kB / 277.4 MB, free: 13.33 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004254/0.005918, allocations: 206.4 kB / 277.6 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003868/0.006305, allocations: 207.6 kB / 277.8 MB, free: 12.92 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006818/0.006987, allocations: 0.6898 MB / 278.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001871/0.007174, allocations: 84.69 kB / 278.5 MB, free: 12.15 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005537/0.007728, allocations: 419.2 kB / 278.9 MB, free: 11.74 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003225/0.00805, allocations: 255.4 kB / 279.2 MB, free: 11.49 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.273e-05/0.008123, allocations: 55.98 kB / 279.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.008299, allocations: 107.9 kB / 279.3 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001467/0.008446, allocations: 147.5 kB / 279.5 MB, free: 11.18 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001764/0.008622, allocations: 191.5 kB / 279.7 MB, free: 11 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006681/0.00929, allocations: 0.4983 MB / 280.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.009294, allocations: 0 / 280.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.009295, allocations: 0 / 280.2 MB, free: 10.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.009302, allocations: 3.938 kB / 280.2 MB, free: 10.49 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.001095/0.0104, allocations: 0.8385 MB / 281 MB, free: 9.617 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.01043, allocations: 11.98 kB / 281 MB, free: 9.605 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002448/0.01068, allocations: 100.5 kB / 281.1 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004007/0.01108, allocations: 309 kB / 281.4 MB, free: 9.172 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.985e-05/0.01112, allocations: 33.38 kB / 281.5 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.3e-05/0.01119, allocations: 44.38 kB / 281.5 MB, free: 9.094 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000624/0.01182, allocations: 378.8 kB / 281.9 MB, free: 8.719 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.01184, allocations: 4.141 kB / 281.9 MB, free: 8.715 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.331e-05/0.01188, allocations: 16.38 kB / 281.9 MB, free: 8.699 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.357e-05/0.01189, allocations: 11.94 kB / 281.9 MB, free: 8.688 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005459/0.01244, allocations: 289.7 kB / 282.2 MB, free: 8.406 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.01391, allocations: 0.9114 MB / 283.1 MB, free: 7.453 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006167/0.01453, allocations: 329 kB / 283.4 MB, free: 7.113 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003107/0.01484, allocations: 161.1 kB / 283.6 MB, free: 6.953 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.62e-05/0.01488, allocations: 12.5 kB / 283.6 MB, free: 6.941 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.0149, allocations: 37.89 kB / 283.6 MB, free: 6.895 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 1.984e-06/0.01491, allocations: 4 kB / 283.6 MB, free: 6.891 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.003355/0.01826, allocations: 1.607 MB / 285.2 MB, free: 5.219 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.104e-05/0.01829, allocations: 63.84 kB / 285.3 MB, free: 5.145 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002627/0.01855, allocations: 318.3 kB / 285.6 MB, free: 4.816 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.786e-05/0.0186, allocations: 45.69 kB / 285.7 MB, free: 4.766 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001117/0.01871, allocations: 232.4 kB / 285.9 MB, free: 4.531 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.01886, allocations: 222.1 kB / 286.1 MB, free: 4.312 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001549/0.01902, allocations: 108 kB / 286.2 MB, free: 4.199 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.01916, allocations: 0.5312 MB / 286.7 MB, free: 3.656 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002851/0.01945, allocations: 145.2 kB / 286.9 MB, free: 3.512 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002908/0.01974, allocations: 190.5 kB / 287.1 MB, free: 3.324 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004287/0.02017, allocations: 271.8 kB / 287.3 MB, free: 3.051 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.02017, allocations: 4 kB / 287.3 MB, free: 3.047 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001032/0.0212, allocations: 0.5742 MB / 287.9 MB, free: 2.457 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.862e-05/0.02122, allocations: 15.16 kB / 287.9 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.481e-06/0.02123, allocations: 0 / 287.9 MB, free: 2.445 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005954/0.02182, allocations: 299.1 kB / 288.2 MB, free: 2.145 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002349/0.02206, allocations: 83.89 kB / 288.3 MB, free: 2.062 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001019/0.02307, allocations: 1.764 MB / 290.1 MB, free: 240 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002594/0.02333, allocations: 60 kB / 290.1 MB, free: 180 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.601e-05/0.02337, allocations: 16 kB / 290.1 MB, free: 164 kB / 266.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 (55): * Single equations (assignments): 53 * 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,10), (1,10)} Notification: Performance of prepare postOptimizeDAE: time 0.1067/0.1301, allocations: 186.7 kB / 290.3 MB, free: 27.95 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.1302, allocations: 62.45 kB / 290.4 MB, free: 27.95 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.598e-05/0.1303, allocations: 57.5 kB / 290.4 MB, free: 27.94 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.1303, allocations: 9.188 kB / 290.4 MB, free: 27.94 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.1303, allocations: 0 / 290.4 MB, free: 27.94 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.1303, allocations: 3.984 kB / 290.4 MB, free: 27.94 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001674/0.132, allocations: 1.134 MB / 291.6 MB, free: 27.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.587e-06/0.132, allocations: 1.344 kB / 291.6 MB, free: 27.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002157/0.1322, allocations: 81.41 kB / 291.7 MB, free: 27.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004822/0.1327, allocations: 290.8 kB / 291.9 MB, free: 27.54 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.086e-05/0.1328, allocations: 26.14 kB / 292 MB, free: 27.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006159/0.1334, allocations: 1.766 MB / 293.7 MB, free: 25.96 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1334, allocations: 5 kB / 293.7 MB, free: 25.95 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009937/0.1344, allocations: 0.8587 MB / 294.6 MB, free: 25.6 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.1345, allocations: 91.19 kB / 294.7 MB, free: 25.58 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.916e-05/0.1346, allocations: 22.16 kB / 294.7 MB, free: 25.57 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001877/0.1348, allocations: 42.44 kB / 294.8 MB, free: 25.56 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000167/0.1349, allocations: 106.7 kB / 294.9 MB, free: 25.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.039e-05/0.135, allocations: 25.72 kB / 294.9 MB, free: 25.53 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001261/0.1351, allocations: 221.9 kB / 295.1 MB, free: 25.39 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1351, allocations: 0 / 295.1 MB, free: 25.39 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003443/0.1354, allocations: 132.6 kB / 295.2 MB, free: 25.37 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,8), (1,10)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0007154/0.1361, allocations: 362.1 kB / 295.6 MB, free: 25.27 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0006826/0.1368, allocations: 427.7 kB / 296 MB, free: 25.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.1368, allocations: 0 / 296 MB, free: 25.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003249/0.1371, allocations: 256.2 kB / 296.3 MB, free: 25.12 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004146/0.1376, allocations: 124 kB / 296.4 MB, free: 25.08 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002085/0.1396, allocations: 1.242 MB / 297.6 MB, free: 24.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.433e-05/0.1397, allocations: 119.6 kB / 297.7 MB, free: 24.36 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001276/0.1399, allocations: 43.33 kB / 297.8 MB, free: 24.35 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.059e-05/0.1399, allocations: 45.69 kB / 297.8 MB, free: 24.33 MB / 266.7 MB Notification: Performance of SimCode: time 9.92e-07/0.14, allocations: 0 / 297.8 MB, free: 24.33 MB / 266.7 MB Notification: Performance of Templates: time 0.009782/0.1497, allocations: 8.701 MB / 306.5 MB, free: 20.46 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/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.0872841430827975]