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.001422/0.001422, allocations: 92.31 kB / 20.96 MB, free: 3.473 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.001487/0.001487, allocations: 157.7 kB / 24.27 MB, free: 172 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.473/1.473, allocations: 177.2 MB / 204.6 MB, free: 5.586 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 2.104e-06/2.104e-06, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.628e-05/3.838e-05, allocations: 2.312 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.005285/0.005324, allocations: 2.963 MB / 275.3 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002363/0.007687, allocations: 1.091 MB / 276.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001665/0.007853, allocations: 7.938 kB / 276.4 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003228/0.008176, allocations: 83.23 kB / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004538/0.00863, allocations: 194.5 kB / 276.7 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004527/0.009082, allocations: 215.5 kB / 276.9 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008159/0.009898, allocations: 0.6898 MB / 277.6 MB, free: 12.55 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002198/0.01012, allocations: 88.62 kB / 277.6 MB, free: 12.46 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006451/0.01076, allocations: 419.1 kB / 278 MB, free: 12.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004169/0.01118, allocations: 251.4 kB / 278.3 MB, free: 11.81 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.61e-05/0.01128, allocations: 52 kB / 278.3 MB, free: 11.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002212/0.0115, allocations: 115.9 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000201/0.0117, allocations: 139.5 kB / 278.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002545/0.01195, allocations: 187.5 kB / 278.8 MB, free: 11.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000957/0.01291, allocations: 0.6931 MB / 279.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.298e-06/0.01291, allocations: 0 / 279.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.213e-06/0.01292, allocations: 0 / 279.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.666e-06/0.01292, allocations: 0 / 279.5 MB, free: 10.63 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.001661/0.01458, allocations: 0.7581 MB / 280.2 MB, free: 9.84 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.712e-05/0.01462, allocations: 11.97 kB / 280.2 MB, free: 9.828 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003101/0.01493, allocations: 100.5 kB / 280.3 MB, free: 9.73 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005704/0.0155, allocations: 281.6 kB / 280.6 MB, free: 9.426 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.91e-05/0.01555, allocations: 37.38 kB / 280.6 MB, free: 9.387 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.797e-05/0.01565, allocations: 44.33 kB / 280.7 MB, free: 9.344 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001012/0.01666, allocations: 474.8 kB / 281.2 MB, free: 8.875 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/0.01668, allocations: 4.188 kB / 281.2 MB, free: 8.871 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.759e-05/0.01674, allocations: 16.38 kB / 281.2 MB, free: 8.855 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.545e-05/0.01676, allocations: 15.88 kB / 281.2 MB, free: 8.84 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001109/0.01787, allocations: 459.7 kB / 281.6 MB, free: 8.395 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002256/0.02012, allocations: 0.9355 MB / 282.6 MB, free: 7.422 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000988/0.02111, allocations: 400.5 kB / 283 MB, free: 7.016 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005945/0.0217, allocations: 258.2 kB / 283.2 MB, free: 6.762 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.422e-05/0.02175, allocations: 8.5 kB / 283.2 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.02179, allocations: 39.06 kB / 283.3 MB, free: 6.707 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 1.703e-06/0.02179, allocations: 0 / 283.3 MB, free: 6.707 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.005696/0.02748, allocations: 2.026 MB / 285.3 MB, free: 4.625 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/0.02754, allocations: 59.91 kB / 285.4 MB, free: 4.555 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003546/0.02789, allocations: 288.2 kB / 285.6 MB, free: 4.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.563e-05/0.02797, allocations: 45.7 kB / 285.7 MB, free: 4.219 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001643/0.02813, allocations: 193.5 kB / 285.9 MB, free: 4.023 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002159/0.02835, allocations: 214.2 kB / 286.1 MB, free: 3.812 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002075/0.02856, allocations: 106.3 kB / 286.2 MB, free: 3.703 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002086/0.02877, allocations: 358.7 kB / 286.5 MB, free: 3.344 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005431/0.02931, allocations: 225.2 kB / 286.7 MB, free: 3.121 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005855/0.02989, allocations: 284.8 kB / 287 MB, free: 2.836 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008848/0.03078, allocations: 390.1 kB / 287.4 MB, free: 2.453 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.03078, allocations: 0 / 287.4 MB, free: 2.453 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001875/0.03266, allocations: 0.7679 MB / 288.2 MB, free: 1.672 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.03268, allocations: 8 kB / 288.2 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.632e-06/0.03268, allocations: 0 / 288.2 MB, free: 1.664 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009814/0.03366, allocations: 377.4 kB / 288.6 MB, free: 1.289 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003637/0.03403, allocations: 83.89 kB / 288.6 MB, free: 1.207 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1224/0.1564, allocations: 1.4 MB / 290 MB, free: 27.99 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006274/0.1571, allocations: 72.61 kB / 290.1 MB, free: 27.99 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.962e-05/0.1571, allocations: 19.38 kB / 290.1 MB, free: 27.99 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.0002329/0.1574, allocations: 175.6 kB / 290.3 MB, free: 27.88 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001389/0.1575, allocations: 62.73 kB / 290.4 MB, free: 27.88 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.1576, allocations: 63.08 kB / 290.4 MB, free: 27.87 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.1576, allocations: 10.78 kB / 290.4 MB, free: 27.87 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/0.1576, allocations: 0.7969 kB / 290.4 MB, free: 27.87 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.223e-06/0.1576, allocations: 5.25 kB / 290.4 MB, free: 27.87 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002581/0.1602, allocations: 1.262 MB / 291.7 MB, free: 27.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.729e-06/0.1602, allocations: 5.219 kB / 291.7 MB, free: 27.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003679/0.1606, allocations: 83.8 kB / 291.8 MB, free: 27.56 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007993/0.1614, allocations: 347.2 kB / 292.1 MB, free: 27.46 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.668e-05/0.1615, allocations: 24.91 kB / 292.1 MB, free: 27.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00115/0.1626, allocations: 1.372 MB / 293.5 MB, free: 26.29 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1626, allocations: 3.844 kB / 293.5 MB, free: 26.29 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002127/0.1647, allocations: 1.059 MB / 294.6 MB, free: 25.77 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002398/0.165, allocations: 98.41 kB / 294.7 MB, free: 25.75 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.223e-05/0.1651, allocations: 20.89 kB / 294.7 MB, free: 25.73 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004386/0.1655, allocations: 61.05 kB / 294.8 MB, free: 25.72 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002492/0.1658, allocations: 101.8 kB / 294.9 MB, free: 25.7 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.155e-05/0.1658, allocations: 23.27 kB / 294.9 MB, free: 25.7 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002101/0.166, allocations: 207.3 kB / 295.1 MB, free: 25.59 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.166, allocations: 5.344 kB / 295.1 MB, free: 25.59 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004931/0.1665, allocations: 129.7 kB / 295.2 MB, free: 25.57 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.001677/0.1682, allocations: 406.5 kB / 295.6 MB, free: 25.45 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001498/0.1697, allocations: 0.5424 MB / 296.2 MB, free: 25.28 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1697, allocations: 1.406 kB / 296.2 MB, free: 25.28 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000836/0.1705, allocations: 332.1 kB / 296.5 MB, free: 25.17 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007314/0.1713, allocations: 124 kB / 296.6 MB, free: 25.13 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003542/0.1748, allocations: 1.348 MB / 297.9 MB, free: 24.47 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002484/0.175, allocations: 229.5 kB / 298.2 MB, free: 24.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001602/0.1752, allocations: 44.06 kB / 298.2 MB, free: 24.37 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001295/0.1753, allocations: 47.14 kB / 298.3 MB, free: 24.35 MB / 266.7 MB Notification: Performance of SimCode: time 5.81e-07/0.1753, allocations: 0 / 298.3 MB, free: 24.35 MB / 266.7 MB Notification: Performance of Templates: time 0.013/0.1883, allocations: 8.683 MB / 306.9 MB, free: 19.72 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] 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.746520268032327]