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.002083/0.002083, allocations: 122.5 kB / 18.5 MB, free: 4.52 MB / 14.72 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.002275/0.002275, allocations: 215.2 kB / 21.46 MB, free: 1.566 MB / 14.72 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.434/1.434, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 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 0.001841/0.001841, allocations: 59.89 kB / 373.8 MB, free: 9.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1051/0.107, allocations: 53.33 MB / 427.1 MB, free: 4.477 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005085/0.112, allocations: 3.195 MB / 430.3 MB, free: 1.266 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002011/0.1141, allocations: 1.134 MB / 431.5 MB, free: 128 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001636/0.1142, allocations: 7.938 kB / 431.5 MB, free: 120 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003377/0.1146, allocations: 83.23 kB / 431.6 MB, free: 36 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2147/0.3292, allocations: 182.2 kB / 431.7 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006738/0.3299, allocations: 198.2 kB / 431.9 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001052/0.331, allocations: 0.6742 MB / 432.6 MB, free: 8.094 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002437/0.3312, allocations: 91.64 kB / 432.7 MB, free: 8.074 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005169/0.3317, allocations: 297.9 kB / 433 MB, free: 8.039 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004678/0.3322, allocations: 327.7 kB / 433.3 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.743e-05/0.3323, allocations: 48.34 kB / 433.4 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002726/0.3326, allocations: 114 kB / 433.5 MB, free: 7.984 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000173/0.3327, allocations: 138.6 kB / 433.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002782/0.333, allocations: 261.3 kB / 433.9 MB, free: 7.895 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008424/0.3338, allocations: 0.654 MB / 434.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.577e-06/0.3338, allocations: 1.969 kB / 434.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.62e-07/0.3338, allocations: 1.031 kB / 434.5 MB, free: 7.793 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.217e-06/0.3339, allocations: 1.781 kB / 434.5 MB, free: 7.793 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.002021/0.3359, allocations: 0.8388 MB / 435.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.462e-05/0.3359, allocations: 11.03 kB / 435.4 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004297/0.3364, allocations: 67.28 kB / 435.4 MB, free: 7.227 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006667/0.337, allocations: 355.8 kB / 435.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.981e-05/0.3371, allocations: 29.59 kB / 435.8 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.3372, allocations: 49.23 kB / 435.9 MB, free: 6.984 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001442/0.3386, allocations: 468.2 kB / 436.3 MB, free: 6.941 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.57e-05/0.3387, allocations: 5.812 kB / 436.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.281e-05/0.3388, allocations: 16.84 kB / 436.3 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.68e-05/0.3388, allocations: 13.75 kB / 436.4 MB, free: 6.938 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0016/0.3404, allocations: 471 kB / 436.8 MB, free: 6.934 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003359/0.3437, allocations: 1.135 MB / 437.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001291/0.345, allocations: 398 kB / 438.3 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008145/0.3458, allocations: 248.2 kB / 438.6 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.768e-05/0.3459, allocations: 10.73 kB / 438.6 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.153e-05/0.3459, allocations: 38.59 kB / 438.6 MB, free: 6.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.805e-06/0.3459, allocations: 0.5 kB / 438.6 MB, free: 6.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.007807/0.3537, allocations: 2.329 MB / 441 MB, free: 4.914 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.134e-05/0.3538, allocations: 62.17 kB / 441 MB, free: 4.844 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004879/0.3543, allocations: 308.9 kB / 441.3 MB, free: 4.684 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.448e-05/0.3543, allocations: 44.33 kB / 441.4 MB, free: 4.641 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001513/0.3545, allocations: 183.7 kB / 441.5 MB, free: 4.484 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002298/0.3547, allocations: 220.3 kB / 441.8 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003207/0.355, allocations: 110 kB / 441.9 MB, free: 4.258 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.645e-05/0.3551, allocations: 352.8 kB / 442.2 MB, free: 3.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007537/0.3559, allocations: 225.4 kB / 442.4 MB, free: 3.844 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007692/0.3567, allocations: 281.7 kB / 442.7 MB, free: 3.723 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.3579, allocations: 396 kB / 443.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.957e-06/0.3579, allocations: 1.812 kB / 443.1 MB, free: 3.551 MB / 350.1 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.002523/0.3604, allocations: 0.7404 MB / 443.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.124e-05/0.3604, allocations: 5.312 kB / 443.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.627e-06/0.3604, allocations: 3.891 kB / 443.8 MB, free: 3.238 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001295/0.3617, allocations: 376.8 kB / 444.2 MB, free: 3.105 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000538/0.3622, allocations: 86.7 kB / 444.3 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001609/0.3638, allocations: 1.406 MB / 445.7 MB, free: 1.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007933/0.3646, allocations: 74.94 kB / 445.8 MB, free: 1.883 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.862e-05/0.3647, allocations: 19.5 kB / 445.8 MB, free: 1.879 MB / 350.1 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.0003002/0.365, allocations: 174.1 kB / 446 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001591/0.3652, allocations: 51.98 kB / 446 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001452/0.3653, allocations: 64.78 kB / 446.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.448e-05/0.3654, allocations: 5.688 kB / 446.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.141e-05/0.3654, allocations: 0.7031 kB / 446.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.15e-05/0.3654, allocations: 3.922 kB / 446.1 MB, free: 1.652 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002945/0.3683, allocations: 1.438 MB / 447.5 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.129e-06/0.3683, allocations: 1.828 kB / 447.5 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003738/0.3687, allocations: 82.84 kB / 447.6 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007698/0.3695, allocations: 345.5 kB / 447.9 MB, free: 0.7852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.665e-05/0.3695, allocations: 28.19 kB / 448 MB, free: 0.7695 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001331/0.3709, allocations: 1.364 MB / 449.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3709, allocations: 0.8438 kB / 449.3 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002158/0.373, allocations: 1.06 MB / 450.4 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002683/0.3733, allocations: 172.2 kB / 450.6 MB, free: 14.9 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001102/0.3734, allocations: 21.89 kB / 450.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005116/0.3739, allocations: 60.45 kB / 450.6 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002238/0.3741, allocations: 93.77 kB / 450.7 MB, free: 14.86 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.869e-05/0.3742, allocations: 32.61 kB / 450.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002658/0.3745, allocations: 217.5 kB / 451 MB, free: 14.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3745, allocations: 0 / 451 MB, free: 14.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005754/0.375, allocations: 127.5 kB / 451.1 MB, free: 14.72 MB / 366.1 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.001396/0.3764, allocations: 382.1 kB / 451.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001406/0.3778, allocations: 0.5389 MB / 452 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.571e-06/0.3778, allocations: 4.062 kB / 452 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008062/0.3787, allocations: 324.7 kB / 452.3 MB, free: 14.27 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006841/0.3793, allocations: 99.52 kB / 452.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004103/0.3834, allocations: 1.489 MB / 453.9 MB, free: 13.45 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005033/0.3839, allocations: 0.8263 MB / 454.8 MB, free: 12.75 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002105/0.3842, allocations: 41.19 kB / 454.8 MB, free: 12.73 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001368/0.3843, allocations: 42.45 kB / 454.8 MB, free: 12.72 MB / 366.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3843, allocations: 0 / 454.8 MB, free: 12.72 MB / 366.1 MB Notification: Performance of Templates: time 0.01798/0.4023, allocations: 10.14 MB / 465 MB, free: 8.32 MB / 366.1 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.959961481392384]