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.001439/0.001439, allocations: 79.73 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.0009957/0.0009957, allocations: 165.1 kB / 25.33 MB, free: 9.207 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.8627/0.8627, allocations: 158.6 MB / 187.2 MB, free: 2.914 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.112e-06/1.112e-06, allocations: 0 / 251 MB, free: 7.609 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.052e-05/1.163e-05, allocations: 2.312 kB / 251 MB, free: 7.605 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.002851/0.002863, allocations: 3.037 MB / 254.1 MB, free: 4.547 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001249/0.004112, allocations: 0.963 MB / 255 MB, free: 3.57 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001292/0.004241, allocations: 7.938 kB / 255 MB, free: 3.562 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001675/0.004409, allocations: 71.25 kB / 255.1 MB, free: 3.492 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.004581, allocations: 142.8 kB / 255.3 MB, free: 3.352 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004024/0.004983, allocations: 235.5 kB / 255.5 MB, free: 3.121 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004236/0.005407, allocations: 0.6469 MB / 256.1 MB, free: 2.473 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.005541, allocations: 88.69 kB / 256.2 MB, free: 2.383 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000342/0.005883, allocations: 399.1 kB / 256.6 MB, free: 1.992 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002313/0.006115, allocations: 243.4 kB / 256.8 MB, free: 1.754 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 5.226e-05/0.006167, allocations: 48 kB / 256.9 MB, free: 1.707 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.006289, allocations: 95.95 kB / 257 MB, free: 1.613 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.898e-05/0.006378, allocations: 127.5 kB / 257.1 MB, free: 1.488 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001208/0.006498, allocations: 183.5 kB / 257.3 MB, free: 1.309 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004401/0.006938, allocations: 470.4 kB / 257.8 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.006941, allocations: 0 / 257.8 MB, free: 0.8477 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.006942, allocations: 4 kB / 257.8 MB, free: 0.8438 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.003e-06/0.006949, allocations: 0 / 257.8 MB, free: 0.8438 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.0008014/0.00775, allocations: 0.792 MB / 258.5 MB, free: 16 kB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.845e-05/0.007779, allocations: 15.98 kB / 258.6 MB, free: 0 / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001263/0.007905, allocations: 80.66 kB / 258.6 MB, free: 15.92 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002558/0.008161, allocations: 275.3 kB / 258.9 MB, free: 15.62 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.672e-05/0.008187, allocations: 29.38 kB / 258.9 MB, free: 15.6 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.26e-05/0.00824, allocations: 48.31 kB / 259 MB, free: 15.55 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004974/0.008737, allocations: 395.6 kB / 259.4 MB, free: 15.16 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.008753, allocations: 8.125 kB / 259.4 MB, free: 15.15 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.837e-05/0.008781, allocations: 16.38 kB / 259.4 MB, free: 15.13 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.008791, allocations: 11.94 kB / 259.4 MB, free: 15.12 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003927/0.009184, allocations: 321.6 kB / 259.7 MB, free: 14.8 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.01023, allocations: 0.9116 MB / 260.6 MB, free: 13.85 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004253/0.01066, allocations: 301.1 kB / 260.9 MB, free: 13.55 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002319/0.01089, allocations: 185 kB / 261.1 MB, free: 13.36 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.809e-05/0.01092, allocations: 8.5 kB / 261.1 MB, free: 13.36 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.01094, allocations: 41.89 kB / 261.2 MB, free: 13.3 MB / 250.7 MB Notification: Performance of pre-optimization done (n=50): time 1.443e-06/0.01094, allocations: 0 / 261.2 MB, free: 13.3 MB / 250.7 MB Notification: Performance of matching and sorting (n=56): time 0.002313/0.01325, allocations: 1.684 MB / 262.8 MB, free: 11.56 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/0.01328, allocations: 59.91 kB / 262.9 MB, free: 11.48 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001785/0.01346, allocations: 316.2 kB / 263.2 MB, free: 11.16 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.545e-05/0.0135, allocations: 41.7 kB / 263.3 MB, free: 11.11 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.589e-05/0.01358, allocations: 240.2 kB / 263.5 MB, free: 10.87 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001023/0.01368, allocations: 202.3 kB / 263.7 MB, free: 10.67 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.0138, allocations: 115.9 kB / 263.8 MB, free: 10.55 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001139/0.01391, allocations: 0.5157 MB / 264.3 MB, free: 10.02 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.01413, allocations: 161.2 kB / 264.5 MB, free: 9.867 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002283/0.01435, allocations: 210.5 kB / 264.7 MB, free: 9.652 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.01468, allocations: 299.8 kB / 265 MB, free: 9.355 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.01468, allocations: 0 / 265 MB, free: 9.355 MB / 250.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.0008058/0.01549, allocations: 0.6367 MB / 265.6 MB, free: 8.703 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.0155, allocations: 8 kB / 265.6 MB, free: 8.695 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.529e-06/0.01551, allocations: 0 / 265.6 MB, free: 8.695 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004898/0.016, allocations: 451 kB / 266.1 MB, free: 8.246 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001855/0.01618, allocations: 95.83 kB / 266.1 MB, free: 8.152 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008383/0.01702, allocations: 1.811 MB / 268 MB, free: 6.277 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001886/0.01721, allocations: 51.94 kB / 268 MB, free: 6.227 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.303e-05/0.01724, allocations: 23.98 kB / 268 MB, free: 6.203 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.0001415/0.01738, allocations: 188.5 kB / 268.2 MB, free: 6.008 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.071e-05/0.01745, allocations: 63.7 kB / 268.3 MB, free: 5.945 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.666e-05/0.01751, allocations: 51.61 kB / 268.3 MB, free: 5.895 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.918e-06/0.01751, allocations: 8 kB / 268.3 MB, free: 5.887 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.019e-06/0.01752, allocations: 0 / 268.3 MB, free: 5.887 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.083e-06/0.01753, allocations: 3.984 kB / 268.3 MB, free: 5.883 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001375/0.0189, allocations: 1.179 MB / 269.5 MB, free: 4.633 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.564e-06/0.0189, allocations: 0 / 269.5 MB, free: 4.633 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001963/0.0191, allocations: 84.05 kB / 269.6 MB, free: 4.551 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004469/0.01955, allocations: 434.9 kB / 270 MB, free: 4.117 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.373e-05/0.01958, allocations: 27.97 kB / 270.1 MB, free: 4.09 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007904/0.02037, allocations: 1.803 MB / 271.9 MB, free: 2.223 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.02037, allocations: 4 kB / 271.9 MB, free: 2.219 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001034/0.02141, allocations: 0.9431 MB / 272.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.02153, allocations: 87.69 kB / 272.9 MB, free: 1.141 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.118e-05/0.02158, allocations: 16.06 kB / 272.9 MB, free: 1.125 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001652/0.02174, allocations: 47.95 kB / 273 MB, free: 1.078 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001368/0.02188, allocations: 104.2 kB / 273.1 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.988e-05/0.02191, allocations: 23.97 kB / 273.1 MB, free: 0.9531 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001102/0.02202, allocations: 209.1 kB / 273.3 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02202, allocations: 0 / 273.3 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002799/0.0223, allocations: 132 kB / 273.4 MB, free: 0.6172 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.0001576/0.02246, allocations: 147.1 kB / 273.6 MB, free: 476 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0006112/0.02307, allocations: 454.2 kB / 274 MB, free: 20 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.02307, allocations: 3.938 kB / 274 MB, free: 16 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003212/0.02339, allocations: 264 kB / 274.3 MB, free: 15.75 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003519/0.02374, allocations: 109.1 kB / 274.4 MB, free: 15.64 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001821/0.02556, allocations: 1.199 MB / 275.6 MB, free: 14.39 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.669e-05/0.02563, allocations: 114.5 kB / 275.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 9.731e-05/0.02573, allocations: 39.25 kB / 275.7 MB, free: 14.23 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.465e-05/0.0258, allocations: 40.44 kB / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of SimCode: time 7.31e-07/0.0258, allocations: 0 / 275.8 MB, free: 14.19 MB / 266.7 MB Notification: Performance of Templates: time 0.01016/0.03597, allocations: 9.216 MB / 285 MB, free: 4.996 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: 2.9414694239385426]