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.001415/0.001415, allocations: 96.25 kB / 20.96 MB, free: 3.473 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.00214/0.00214, allocations: 156.9 kB / 24.27 MB, free: 172 kB / 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 1.456/1.456, allocations: 177 MB / 204.4 MB, free: 5.633 MB / 186.7 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.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.403e-06/1.403e-06, allocations: 0 / 272.2 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.027e-05/3.167e-05, allocations: 6.312 kB / 272.2 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00517/0.005201, allocations: 2.966 MB / 275.2 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002165/0.007367, allocations: 1.087 MB / 276.2 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.007528, allocations: 15.94 kB / 276.3 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003323/0.00786, allocations: 83.17 kB / 276.3 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004673/0.008327, allocations: 194.5 kB / 276.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004634/0.008791, allocations: 211.6 kB / 276.7 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000815/0.009606, allocations: 0.682 MB / 277.4 MB, free: 12.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002268/0.009833, allocations: 96.61 kB / 277.5 MB, free: 12.47 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006477/0.01048, allocations: 415.1 kB / 277.9 MB, free: 12.06 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004103/0.01089, allocations: 255.4 kB / 278.2 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001023/0.01099, allocations: 52 kB / 278.2 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002195/0.01121, allocations: 103.9 kB / 278.3 MB, free: 11.66 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002074/0.01142, allocations: 147.5 kB / 278.5 MB, free: 11.52 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002524/0.01167, allocations: 187.5 kB / 278.6 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009245/0.0126, allocations: 0.6931 MB / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.0126, allocations: 0 / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.0126, allocations: 0 / 279.3 MB, free: 10.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.634e-06/0.01261, allocations: 0 / 279.3 MB, free: 10.64 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.001637/0.01425, allocations: 0.762 MB / 280.1 MB, free: 9.844 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.982e-05/0.01429, allocations: 11.98 kB / 280.1 MB, free: 9.832 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000309/0.01459, allocations: 104.5 kB / 280.2 MB, free: 9.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005852/0.01518, allocations: 285.5 kB / 280.5 MB, free: 9.422 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.515e-05/0.01523, allocations: 29.38 kB / 280.5 MB, free: 9.391 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.999e-05/0.01533, allocations: 52.27 kB / 280.6 MB, free: 9.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009744/0.0163, allocations: 474.9 kB / 281 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.906e-05/0.01632, allocations: 192 / 281 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.171e-05/0.01637, allocations: 16.38 kB / 281.1 MB, free: 8.855 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.801e-05/0.01639, allocations: 15.94 kB / 281.1 MB, free: 8.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001155/0.01754, allocations: 455.7 kB / 281.5 MB, free: 8.395 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002218/0.01976, allocations: 0.9472 MB / 282.5 MB, free: 7.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009852/0.02075, allocations: 400.5 kB / 282.9 MB, free: 7.004 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005999/0.02135, allocations: 246.1 kB / 283.1 MB, free: 6.766 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.63e-05/0.02139, allocations: 12.5 kB / 283.1 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.382e-05/0.02144, allocations: 43.06 kB / 283.1 MB, free: 6.703 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 1.814e-06/0.02144, allocations: 0 / 283.1 MB, free: 6.703 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.005708/0.02715, allocations: 2.03 MB / 285.2 MB, free: 4.617 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.508e-05/0.0272, allocations: 55.91 kB / 285.2 MB, free: 4.551 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003874/0.02759, allocations: 288.2 kB / 285.5 MB, free: 4.266 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.796e-05/0.02766, allocations: 49.7 kB / 285.6 MB, free: 4.211 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001839/0.02784, allocations: 185.6 kB / 285.7 MB, free: 4.023 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002243/0.02807, allocations: 218.2 kB / 286 MB, free: 3.809 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002128/0.02828, allocations: 114.3 kB / 286.1 MB, free: 3.691 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002184/0.0285, allocations: 350.7 kB / 286.4 MB, free: 3.34 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000537/0.02903, allocations: 225.2 kB / 286.6 MB, free: 3.117 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005711/0.0296, allocations: 276.8 kB / 286.9 MB, free: 2.84 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008797/0.03048, allocations: 398.1 kB / 287.3 MB, free: 2.449 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.255e-06/0.03049, allocations: 0 / 287.3 MB, free: 2.449 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001888/0.03237, allocations: 0.7679 MB / 288.1 MB, free: 1.668 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.847e-05/0.03239, allocations: 4 kB / 288.1 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.0324, allocations: 0 / 288.1 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.03342, allocations: 385.3 kB / 288.4 MB, free: 1.281 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003573/0.03377, allocations: 87.83 kB / 288.5 MB, free: 1.195 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1175/0.1512, allocations: 1.397 MB / 289.9 MB, free: 27.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006473/0.1519, allocations: 72.7 kB / 290 MB, free: 27.97 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.188e-05/0.1519, allocations: 20.23 kB / 290 MB, free: 27.97 MB / 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.0002453/0.1522, allocations: 172.1 kB / 290.2 MB, free: 27.86 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001335/0.1523, allocations: 62.33 kB / 290.2 MB, free: 27.86 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001287/0.1524, allocations: 62.03 kB / 290.3 MB, free: 27.84 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.334e-06/0.1524, allocations: 11.81 kB / 290.3 MB, free: 27.84 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.935e-06/0.1525, allocations: 4.5 kB / 290.3 MB, free: 27.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.1525, allocations: 2.719 kB / 290.3 MB, free: 27.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002568/0.155, allocations: 1.265 MB / 291.6 MB, free: 27.54 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.155, allocations: 2.875 kB / 291.6 MB, free: 27.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003693/0.1554, allocations: 84.78 kB / 291.7 MB, free: 27.54 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007528/0.1562, allocations: 346.2 kB / 292 MB, free: 27.44 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.871e-05/0.1562, allocations: 19.5 kB / 292 MB, free: 27.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001062/0.1573, allocations: 1.377 MB / 293.4 MB, free: 26.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.955e-06/0.1573, allocations: 2.188 kB / 293.4 MB, free: 26.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001936/0.1592, allocations: 1.058 MB / 294.5 MB, free: 25.74 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002045/0.1594, allocations: 94.39 kB / 294.6 MB, free: 25.72 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.974e-05/0.1595, allocations: 25.41 kB / 294.6 MB, free: 25.71 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004301/0.1599, allocations: 61.31 kB / 294.6 MB, free: 25.7 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002321/0.1602, allocations: 99 kB / 294.7 MB, free: 25.68 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-05/0.1602, allocations: 28.48 kB / 294.8 MB, free: 25.67 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001956/0.1604, allocations: 203.5 kB / 295 MB, free: 25.56 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.1604, allocations: 1.719 kB / 295 MB, free: 25.56 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004905/0.1609, allocations: 130.2 kB / 295.1 MB, free: 25.55 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.001628/0.1625, allocations: 408.3 kB / 295.5 MB, free: 25.44 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00119/0.1637, allocations: 0.5469 MB / 296 MB, free: 25.25 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.1637, allocations: 1.344 kB / 296 MB, free: 25.25 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006918/0.1644, allocations: 326 kB / 296.4 MB, free: 25.15 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006586/0.1651, allocations: 123.1 kB / 296.5 MB, free: 25.12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003518/0.1686, allocations: 1.349 MB / 297.8 MB, free: 24.46 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.1688, allocations: 229 kB / 298.1 MB, free: 24.36 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001614/0.169, allocations: 41.98 kB / 298.1 MB, free: 24.35 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001282/0.1691, allocations: 42.08 kB / 298.1 MB, free: 24.34 MB / 266.7 MB Notification: Performance of SimCode: time 8.12e-07/0.1691, allocations: 0 / 298.1 MB, free: 24.34 MB / 266.7 MB Notification: Performance of Templates: time 0.01275/0.1819, allocations: 8.685 MB / 306.8 MB, free: 19.7 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.Friction.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.772076203022152]