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.001164/0.001164, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.0009376/0.0009376, allocations: 161 kB / 24.56 MB, free: 16 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.024/1.024, allocations: 177.1 MB / 205 MB, free: 5.625 MB / 186.7 MB " [Timeout remaining time 179] 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.914e-06/1.914e-06, allocations: 0 / 273 MB, free: 1.547 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.464e-05/2.655e-05, allocations: 6.25 kB / 273 MB, free: 1.539 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.003996/0.004023, allocations: 3.179 MB / 276.2 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001449/0.005472, allocations: 1.107 MB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001588/0.00563, allocations: 7.938 kB / 277.3 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002969/0.005927, allocations: 87.16 kB / 277.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003249/0.006252, allocations: 198.5 kB / 277.5 MB, free: 12.94 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003237/0.006576, allocations: 211.6 kB / 277.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004629/0.007039, allocations: 0.6859 MB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001964/0.007235, allocations: 88.69 kB / 278.5 MB, free: 11.96 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004413/0.007676, allocations: 419.2 kB / 278.9 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.007952, allocations: 255.4 kB / 279.2 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.982e-05/0.008022, allocations: 51.94 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001643/0.008186, allocations: 115.9 kB / 279.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000136/0.008322, allocations: 139.5 kB / 279.5 MB, free: 11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001388/0.008461, allocations: 187.5 kB / 279.7 MB, free: 10.81 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004799/0.008941, allocations: 0.506 MB / 280.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.008945, allocations: 0 / 280.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.082e-06/0.008946, allocations: 4 kB / 280.2 MB, free: 10.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.312e-06/0.008952, allocations: 0 / 280.2 MB, free: 10.3 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.0009044/0.009857, allocations: 0.8307 MB / 281 MB, free: 9.434 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.551e-05/0.009892, allocations: 12.03 kB / 281 MB, free: 9.422 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001965/0.01009, allocations: 100.5 kB / 281.1 MB, free: 9.324 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003448/0.01043, allocations: 312.9 kB / 281.4 MB, free: 8.984 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.813e-05/0.01047, allocations: 37.38 kB / 281.5 MB, free: 8.945 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.112e-05/0.01053, allocations: 36.38 kB / 281.5 MB, free: 8.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004978/0.01103, allocations: 370.9 kB / 281.9 MB, free: 8.543 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.944e-05/0.01105, allocations: 16.12 kB / 281.9 MB, free: 8.527 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.533e-05/0.01109, allocations: 16.38 kB / 281.9 MB, free: 8.512 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.23e-05/0.0111, allocations: 15.92 kB / 281.9 MB, free: 8.496 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006271/0.01172, allocations: 285.7 kB / 282.2 MB, free: 8.219 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001222/0.01295, allocations: 0.9192 MB / 283.1 MB, free: 7.258 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005142/0.01346, allocations: 321.1 kB / 283.4 MB, free: 6.926 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000256/0.01372, allocations: 168.9 kB / 283.6 MB, free: 6.762 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.869e-05/0.01376, allocations: 8.5 kB / 283.6 MB, free: 6.754 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.219e-05/0.01378, allocations: 41.89 kB / 283.6 MB, free: 6.703 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 2.304e-06/0.01378, allocations: 0 / 283.6 MB, free: 6.703 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.002561/0.01634, allocations: 1.611 MB / 285.2 MB, free: 5.027 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.254e-05/0.01637, allocations: 59.91 kB / 285.3 MB, free: 4.957 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002129/0.01659, allocations: 314.3 kB / 285.6 MB, free: 4.633 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.01663, allocations: 49.69 kB / 285.7 MB, free: 4.578 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001091/0.01674, allocations: 232.3 kB / 285.9 MB, free: 4.344 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.01686, allocations: 226.1 kB / 286.1 MB, free: 4.121 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001304/0.01699, allocations: 108 kB / 286.2 MB, free: 4.008 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001331/0.01713, allocations: 0.5195 MB / 286.7 MB, free: 3.477 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002216/0.01735, allocations: 149.2 kB / 286.9 MB, free: 3.328 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002279/0.01758, allocations: 190.5 kB / 287.1 MB, free: 3.141 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003342/0.01791, allocations: 275.8 kB / 287.3 MB, free: 2.863 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.01791, allocations: 0 / 287.3 MB, free: 2.863 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.0007829/0.01869, allocations: 0.5743 MB / 287.9 MB, free: 2.273 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.01871, allocations: 12.03 kB / 287.9 MB, free: 2.262 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.23e-06/0.01872, allocations: 0 / 287.9 MB, free: 2.262 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004974/0.01921, allocations: 299.1 kB / 288.2 MB, free: 1.961 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001792/0.01939, allocations: 87.83 kB / 288.3 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001084/0.02048, allocations: 1.768 MB / 290.1 MB, free: 44 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.1137/0.1342, allocations: 54.33 kB / 290.1 MB, free: 25.41 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.449e-05/0.1343, allocations: 20.83 kB / 290.1 MB, free: 25.41 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.0001749/0.1345, allocations: 182.3 kB / 290.3 MB, free: 25.25 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000111/0.1346, allocations: 63.33 kB / 290.4 MB, free: 25.25 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.643e-05/0.1347, allocations: 60.25 kB / 290.4 MB, free: 25.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.1347, allocations: 12.38 kB / 290.4 MB, free: 25.24 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.1347, allocations: 0 / 290.4 MB, free: 25.24 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1347, allocations: 2.203 kB / 290.4 MB, free: 25.24 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001661/0.1363, allocations: 1.133 MB / 291.6 MB, free: 24.87 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.1364, allocations: 1.125 kB / 291.6 MB, free: 24.87 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002179/0.1366, allocations: 85.22 kB / 291.7 MB, free: 24.87 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004613/0.137, allocations: 294.2 kB / 292 MB, free: 24.84 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.968e-05/0.1371, allocations: 23.83 kB / 292 MB, free: 24.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006411/0.1377, allocations: 1.765 MB / 293.7 MB, free: 23.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.1377, allocations: 2.938 kB / 293.7 MB, free: 23.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001007/0.1387, allocations: 0.8529 MB / 294.6 MB, free: 22.97 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001532/0.1389, allocations: 91.59 kB / 294.7 MB, free: 22.97 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.179e-05/0.1389, allocations: 23.8 kB / 294.7 MB, free: 22.97 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000182/0.1391, allocations: 41.91 kB / 294.7 MB, free: 22.97 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001628/0.1393, allocations: 101 kB / 294.8 MB, free: 22.96 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.393e-05/0.1393, allocations: 31.52 kB / 294.9 MB, free: 22.96 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001216/0.1394, allocations: 220.7 kB / 295.1 MB, free: 22.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1394, allocations: 1.844 kB / 295.1 MB, free: 22.84 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003331/0.1398, allocations: 124.3 kB / 295.2 MB, free: 22.84 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.0007235/0.1405, allocations: 378.9 kB / 295.6 MB, free: 22.75 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007023/0.1412, allocations: 430 kB / 296 MB, free: 22.71 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1412, allocations: 4.984 kB / 296 MB, free: 22.71 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003379/0.1415, allocations: 248.7 kB / 296.3 MB, free: 22.7 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004165/0.142, allocations: 122.9 kB / 296.4 MB, free: 22.69 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.144, allocations: 1.241 MB / 297.6 MB, free: 22.1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.073e-05/0.1441, allocations: 119.5 kB / 297.7 MB, free: 22.03 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001094/0.1442, allocations: 42.05 kB / 297.8 MB, free: 22.02 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.309e-05/0.1443, allocations: 42.72 kB / 297.8 MB, free: 22.01 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.1443, allocations: 0 / 297.8 MB, free: 22.01 MB / 266.7 MB Notification: Performance of Templates: time 0.01011/0.1544, allocations: 8.695 MB / 306.5 MB, free: 18.89 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","",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.2057907008565962]