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.0009457/0.0009457, allocations: 71.77 kB / 22.45 MB, free: 2.09 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.0009646/0.0009646, allocations: 165.1 kB / 25.75 MB, free: 8.535 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.9431/0.9431, allocations: 158.6 MB / 187.5 MB, free: 2.938 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.392e-06/1.392e-06, allocations: 0 / 251.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.44e-05/1.579e-05, allocations: 2.312 kB / 251.1 MB, free: 7.805 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00301/0.003026, allocations: 3.025 MB / 254.1 MB, free: 4.758 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001119/0.004145, allocations: 0.9785 MB / 255.1 MB, free: 3.77 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001268/0.004271, allocations: 8 kB / 255.1 MB, free: 3.762 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001913/0.004463, allocations: 63.31 kB / 255.2 MB, free: 3.699 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001663/0.004629, allocations: 142.8 kB / 255.3 MB, free: 3.559 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.005014, allocations: 231.5 kB / 255.5 MB, free: 3.332 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004056/0.005419, allocations: 0.6508 MB / 256.2 MB, free: 2.68 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.005573, allocations: 88.69 kB / 256.3 MB, free: 2.59 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003023/0.005875, allocations: 391.2 kB / 256.7 MB, free: 2.207 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002438/0.006119, allocations: 247.4 kB / 256.9 MB, free: 1.965 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.47e-05/0.006174, allocations: 48 kB / 257 MB, free: 1.918 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001221/0.006296, allocations: 95.95 kB / 257 MB, free: 1.824 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 9.315e-05/0.006389, allocations: 131.6 kB / 257.2 MB, free: 1.695 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001232/0.006512, allocations: 175.6 kB / 257.3 MB, free: 1.52 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003815/0.006894, allocations: 478.4 kB / 257.8 MB, free: 1.051 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.036e-06/0.006897, allocations: 4 kB / 257.8 MB, free: 1.047 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.006898, allocations: 0 / 257.8 MB, free: 1.047 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.006902, allocations: 0 / 257.8 MB, free: 1.047 MB / 234.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.0007934/0.007696, allocations: 0.7919 MB / 258.6 MB, free: 224 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.058e-05/0.007726, allocations: 15.98 kB / 258.6 MB, free: 208 kB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.007827, allocations: 84.61 kB / 258.7 MB, free: 124 kB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002875/0.008114, allocations: 275.3 kB / 259 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.008144, allocations: 29.38 kB / 259 MB, free: 15.8 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.482e-05/0.008199, allocations: 44.33 kB / 259 MB, free: 15.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004756/0.008675, allocations: 399.5 kB / 259.4 MB, free: 15.36 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.401e-05/0.008689, allocations: 4.172 kB / 259.4 MB, free: 15.35 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/0.008718, allocations: 20.38 kB / 259.5 MB, free: 15.33 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.888e-06/0.008728, allocations: 11.94 kB / 259.5 MB, free: 15.32 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004076/0.009136, allocations: 309.7 kB / 259.8 MB, free: 15.02 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.01023, allocations: 0.9233 MB / 260.7 MB, free: 14.05 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004431/0.01067, allocations: 297 kB / 261 MB, free: 13.75 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002438/0.01092, allocations: 181.1 kB / 261.2 MB, free: 13.57 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.639e-05/0.01095, allocations: 8.5 kB / 261.2 MB, free: 13.56 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002469/0.0112, allocations: 41.89 kB / 261.2 MB, free: 13.51 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 1.363e-06/0.0112, allocations: 0 / 261.2 MB, free: 13.51 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.002422/0.01362, allocations: 1.688 MB / 262.9 MB, free: 11.76 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.01365, allocations: 63.84 kB / 263 MB, free: 11.68 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000184/0.01384, allocations: 312.2 kB / 263.3 MB, free: 11.36 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.563e-05/0.01387, allocations: 41.7 kB / 263.3 MB, free: 11.32 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001012/0.01397, allocations: 244.2 kB / 263.6 MB, free: 11.07 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001048/0.01408, allocations: 202.3 kB / 263.7 MB, free: 10.87 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001131/0.01419, allocations: 108 kB / 263.9 MB, free: 10.76 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.0143, allocations: 0.5157 MB / 264.4 MB, free: 10.23 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002199/0.01452, allocations: 157.2 kB / 264.5 MB, free: 10.08 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002338/0.01476, allocations: 214.5 kB / 264.7 MB, free: 9.859 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003486/0.01511, allocations: 307.7 kB / 265 MB, free: 9.555 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.01511, allocations: 0 / 265 MB, free: 9.555 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008233/0.01593, allocations: 0.6329 MB / 265.7 MB, free: 8.906 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.01594, allocations: 8.031 kB / 265.7 MB, free: 8.898 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.01595, allocations: 3.984 kB / 265.7 MB, free: 8.895 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005163/0.01647, allocations: 439 kB / 266.1 MB, free: 8.457 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001822/0.01665, allocations: 83.89 kB / 266.2 MB, free: 8.375 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008178/0.01747, allocations: 1.822 MB / 268 MB, free: 6.488 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001821/0.01765, allocations: 56 kB / 268.1 MB, free: 6.434 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.903e-05/0.01768, allocations: 20 kB / 268.1 MB, free: 6.414 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.0001226/0.0178, allocations: 184.5 kB / 268.3 MB, free: 6.223 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.754e-05/0.01788, allocations: 59.7 kB / 268.3 MB, free: 6.164 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.549e-05/0.01794, allocations: 59.61 kB / 268.4 MB, free: 6.105 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.935e-06/0.01795, allocations: 4 kB / 268.4 MB, free: 6.102 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.01795, allocations: 0 / 268.4 MB, free: 6.102 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002544/0.0182, allocations: 7.984 kB / 268.4 MB, free: 6.094 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001414/0.01962, allocations: 1.179 MB / 269.6 MB, free: 4.844 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.01962, allocations: 4 kB / 269.6 MB, free: 4.84 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001948/0.01982, allocations: 83.83 kB / 269.7 MB, free: 4.758 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004352/0.02025, allocations: 431.2 kB / 270.1 MB, free: 4.328 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.098e-05/0.02028, allocations: 23.97 kB / 270.1 MB, free: 4.305 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007739/0.02106, allocations: 1.815 MB / 271.9 MB, free: 2.426 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.303e-06/0.02106, allocations: 0 / 271.9 MB, free: 2.426 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001019/0.02208, allocations: 0.9314 MB / 272.8 MB, free: 1.445 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.0222, allocations: 91.67 kB / 272.9 MB, free: 1.355 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.48e-05/0.02227, allocations: 24.03 kB / 273 MB, free: 1.332 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002415/0.02252, allocations: 40.02 kB / 273 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001511/0.02267, allocations: 108.2 kB / 273.1 MB, free: 1.188 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.72e-05/0.02269, allocations: 19.98 kB / 273.1 MB, free: 1.168 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001202/0.02281, allocations: 217.1 kB / 273.3 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02281, allocations: 0 / 273.3 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002892/0.0231, allocations: 128 kB / 273.5 MB, free: 0.8281 MB / 250.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.0001676/0.02327, allocations: 143.1 kB / 273.6 MB, free: 0.6797 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006366/0.02391, allocations: 458.1 kB / 274.1 MB, free: 236 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.02391, allocations: 0 / 274.1 MB, free: 236 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003201/0.02423, allocations: 268.4 kB / 274.3 MB, free: 15.96 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003817/0.02461, allocations: 108.7 kB / 274.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002236/0.02685, allocations: 1.199 MB / 275.6 MB, free: 14.61 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.444e-05/0.02692, allocations: 122.4 kB / 275.7 MB, free: 14.47 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.934e-05/0.02702, allocations: 39.27 kB / 275.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.899e-05/0.0271, allocations: 36.48 kB / 275.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of SimCode: time 8.42e-07/0.0271, allocations: 4 kB / 275.8 MB, free: 14.39 MB / 266.7 MB Notification: Performance of Templates: time 0.00971/0.03681, allocations: 8.501 MB / 284.3 MB, free: 5.918 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.0197117559146136]