Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001906/0.001906, allocations: 87.67 kB / 20.96 MB, free: 3.441 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.002049/0.002049, allocations: 161.3 kB / 24.27 MB, free: 136 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.543/1.543, allocations: 177.1 MB / 204.6 MB, free: 5.59 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.133e-06/1.133e-06, allocations: 0 / 272.3 MB, free: 1.832 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.146e-05/2.259e-05, allocations: 2.312 kB / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005439/0.005461, allocations: 3.148 MB / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002212/0.007673, allocations: 1.091 MB / 276.6 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001708/0.007844, allocations: 7.938 kB / 276.6 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003539/0.008198, allocations: 79.23 kB / 276.6 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004591/0.008657, allocations: 206.5 kB / 276.8 MB, free: 13.28 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004598/0.009117, allocations: 203.6 kB / 277 MB, free: 13.08 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007791/0.009896, allocations: 0.6937 MB / 277.7 MB, free: 12.38 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000222/0.01012, allocations: 92.62 kB / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006339/0.01075, allocations: 419.1 kB / 278.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004399/0.01119, allocations: 255.4 kB / 278.5 MB, free: 11.63 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001069/0.0113, allocations: 48 kB / 278.5 MB, free: 11.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002434/0.01154, allocations: 115.9 kB / 278.6 MB, free: 11.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002092/0.01175, allocations: 143.5 kB / 278.8 MB, free: 11.33 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000266/0.01202, allocations: 187.5 kB / 279 MB, free: 11.15 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009097/0.01293, allocations: 0.6892 MB / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.01293, allocations: 0 / 279.7 MB, free: 10.46 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.01293, allocations: 4 kB / 279.7 MB, free: 10.45 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.213e-06/0.01294, allocations: 0 / 279.7 MB, free: 10.45 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.001641/0.01458, allocations: 0.8577 MB / 280.5 MB, free: 9.559 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.01462, allocations: 12.03 kB / 280.5 MB, free: 9.547 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002959/0.01491, allocations: 104.5 kB / 280.6 MB, free: 9.445 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005422/0.01545, allocations: 284.4 kB / 280.9 MB, free: 9.137 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.773e-05/0.0155, allocations: 33.38 kB / 280.9 MB, free: 9.102 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.554e-05/0.0156, allocations: 48.27 kB / 281 MB, free: 9.055 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009569/0.01655, allocations: 458.8 kB / 281.4 MB, free: 8.602 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.193e-05/0.01658, allocations: 192 / 281.4 MB, free: 8.602 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.702e-05/0.01663, allocations: 20.38 kB / 281.5 MB, free: 8.582 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.728e-05/0.01665, allocations: 15.94 kB / 281.5 MB, free: 8.566 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00105/0.0177, allocations: 435.7 kB / 281.9 MB, free: 8.145 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002513/0.02021, allocations: 1.031 MB / 282.9 MB, free: 7.07 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009559/0.02117, allocations: 393 kB / 283.3 MB, free: 6.672 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005449/0.02171, allocations: 233.1 kB / 283.5 MB, free: 6.441 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.501e-05/0.02177, allocations: 8.5 kB / 283.5 MB, free: 6.434 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.771e-05/0.02181, allocations: 41.89 kB / 283.6 MB, free: 6.383 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 1.933e-06/0.02181, allocations: 0 / 283.6 MB, free: 6.383 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.00526/0.02707, allocations: 1.943 MB / 285.5 MB, free: 4.375 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.044e-05/0.02713, allocations: 63.91 kB / 285.6 MB, free: 4.297 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004258/0.02756, allocations: 362.2 kB / 285.9 MB, free: 3.926 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.573e-05/0.02762, allocations: 45.69 kB / 286 MB, free: 3.875 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/0.02781, allocations: 232.4 kB / 286.2 MB, free: 3.641 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002556/0.02807, allocations: 238.2 kB / 286.4 MB, free: 3.406 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002266/0.0283, allocations: 124 kB / 286.6 MB, free: 3.277 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003125/0.02861, allocations: 0.5391 MB / 287.1 MB, free: 2.727 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005025/0.02911, allocations: 217.2 kB / 287.3 MB, free: 2.512 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005575/0.02967, allocations: 290.5 kB / 287.6 MB, free: 2.227 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008296/0.0305, allocations: 403.7 kB / 288 MB, free: 1.828 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.709e-06/0.0305, allocations: 4 kB / 288 MB, free: 1.824 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001804/0.03231, allocations: 0.754 MB / 288.8 MB, free: 1.055 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.214e-05/0.03233, allocations: 11.98 kB / 288.8 MB, free: 1.043 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.122e-06/0.03234, allocations: 0 / 288.8 MB, free: 1.043 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009707/0.03331, allocations: 375.1 kB / 289.1 MB, free: 0.668 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003457/0.03365, allocations: 83.84 kB / 289.2 MB, free: 0.5859 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1171/0.1508, allocations: 1.904 MB / 291.1 MB, free: 26.54 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005848/0.1513, allocations: 59 kB / 291.2 MB, free: 26.54 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.096e-05/0.1514, allocations: 25.02 kB / 291.2 MB, free: 26.54 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.0002178/0.1516, allocations: 211.8 kB / 291.4 MB, free: 26.38 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001331/0.1517, allocations: 63.06 kB / 291.5 MB, free: 26.38 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001443/0.1519, allocations: 63.66 kB / 291.5 MB, free: 26.38 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.1519, allocations: 6.438 kB / 291.5 MB, free: 26.38 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.1519, allocations: 1.281 kB / 291.5 MB, free: 26.38 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.837e-06/0.1519, allocations: 6.516 kB / 291.5 MB, free: 26.38 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002602/0.1545, allocations: 1.35 MB / 292.9 MB, free: 26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.39e-06/0.1545, allocations: 1.094 kB / 292.9 MB, free: 26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003674/0.1549, allocations: 79.03 kB / 293 MB, free: 26 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008057/0.1557, allocations: 345.6 kB / 293.3 MB, free: 25.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.614e-05/0.1557, allocations: 24.8 kB / 293.3 MB, free: 25.94 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.1569, allocations: 1.871 MB / 295.2 MB, free: 24.24 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.1569, allocations: 13.36 kB / 295.2 MB, free: 24.23 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001869/0.1588, allocations: 1.089 MB / 296.3 MB, free: 23.7 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002369/0.159, allocations: 95.36 kB / 296.4 MB, free: 23.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.856e-05/0.1591, allocations: 25.34 kB / 296.4 MB, free: 23.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003611/0.1595, allocations: 41.98 kB / 296.5 MB, free: 23.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002547/0.1597, allocations: 106.1 kB / 296.6 MB, free: 23.63 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.924e-05/0.1598, allocations: 24.06 kB / 296.6 MB, free: 23.63 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002182/0.16, allocations: 252.1 kB / 296.8 MB, free: 23.47 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.16, allocations: 1.188 kB / 296.8 MB, free: 23.47 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005079/0.1605, allocations: 135.5 kB / 297 MB, free: 23.45 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.002431/0.1629, allocations: 411 kB / 297.4 MB, free: 23.34 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001375/0.1643, allocations: 0.5653 MB / 297.9 MB, free: 23.18 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.1643, allocations: 1.469 kB / 297.9 MB, free: 23.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000673/0.165, allocations: 324.5 kB / 298.3 MB, free: 23.09 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007979/0.1658, allocations: 126.3 kB / 298.4 MB, free: 23.05 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003259/0.169, allocations: 1.284 MB / 299.7 MB, free: 22.35 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002303/0.1693, allocations: 229 kB / 299.9 MB, free: 22.26 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.000181/0.1694, allocations: 42.42 kB / 299.9 MB, free: 22.25 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000143/0.1696, allocations: 40.86 kB / 300 MB, free: 22.24 MB / 266.7 MB Notification: Performance of SimCode: time 1.362e-06/0.1696, allocations: 0 / 300 MB, free: 22.24 MB / 266.7 MB Notification: Performance of Templates: time 0.01716/0.1867, allocations: 8.69 MB / 308.7 MB, free: 17.46 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.923939896048978]