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.001452/0.001452, allocations: 71.77 kB / 21.69 MB, free: 2.859 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.001232/0.001232, allocations: 170.6 kB / 24.99 MB, free: 8.793 MB / 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 0.9696/0.9696, allocations: 177.1 MB / 205.3 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.613e-06/1.613e-06, allocations: 0 / 273.1 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.176e-05/2.337e-05, allocations: 2.312 kB / 273.1 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.00577/0.005794, allocations: 3.171 MB / 276.2 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001927/0.007721, allocations: 1.099 MB / 277.3 MB, free: 13.54 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001882/0.007909, allocations: 11.94 kB / 277.3 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003553/0.008264, allocations: 83.17 kB / 277.4 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004259/0.00869, allocations: 202.5 kB / 277.6 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004166/0.009107, allocations: 207.6 kB / 277.8 MB, free: 13.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006548/0.009761, allocations: 0.6859 MB / 278.5 MB, free: 12.36 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.009982, allocations: 92.67 kB / 278.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005648/0.01055, allocations: 411.2 kB / 279 MB, free: 11.86 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003636/0.01091, allocations: 259.4 kB / 279.3 MB, free: 11.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.342e-05/0.01099, allocations: 55.94 kB / 279.3 MB, free: 11.55 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001971/0.01119, allocations: 111.9 kB / 279.4 MB, free: 11.45 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001829/0.01137, allocations: 143.5 kB / 279.6 MB, free: 11.3 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002081/0.01158, allocations: 187.5 kB / 279.7 MB, free: 11.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006258/0.01221, allocations: 0.5021 MB / 280.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.01221, allocations: 0 / 280.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.01221, allocations: 0 / 280.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.843e-06/0.01222, allocations: 0 / 280.2 MB, free: 10.62 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.001282/0.0135, allocations: 0.8385 MB / 281.1 MB, free: 9.742 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.847e-05/0.01354, allocations: 8.031 kB / 281.1 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000282/0.01382, allocations: 104.5 kB / 281.2 MB, free: 9.633 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004754/0.0143, allocations: 312.9 kB / 281.5 MB, free: 9.293 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.412e-05/0.01434, allocations: 29.38 kB / 281.5 MB, free: 9.262 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.202e-05/0.01442, allocations: 40.38 kB / 281.6 MB, free: 9.223 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007683/0.01519, allocations: 374.9 kB / 281.9 MB, free: 8.852 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.01522, allocations: 4.141 kB / 281.9 MB, free: 8.848 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.744e-05/0.01527, allocations: 20.36 kB / 282 MB, free: 8.828 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.871e-05/0.01529, allocations: 15.94 kB / 282 MB, free: 8.812 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006858/0.01598, allocations: 285.7 kB / 282.2 MB, free: 8.535 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001798/0.01778, allocations: 0.923 MB / 283.2 MB, free: 7.57 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007731/0.01855, allocations: 320.8 kB / 283.5 MB, free: 7.242 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003995/0.01895, allocations: 173.1 kB / 283.7 MB, free: 7.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.369e-05/0.01899, allocations: 8.5 kB / 283.7 MB, free: 7.062 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.282e-05/0.01902, allocations: 41.89 kB / 283.7 MB, free: 7.012 MB / 266.7 MB Notification: Performance of pre-optimization done (n=55): time 2.354e-06/0.01903, allocations: 0 / 283.7 MB, free: 7.012 MB / 266.7 MB Notification: Performance of matching and sorting (n=61): time 0.003972/0.023, allocations: 1.607 MB / 285.3 MB, free: 5.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.914e-05/0.02304, allocations: 55.91 kB / 285.4 MB, free: 5.273 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003217/0.02336, allocations: 318.3 kB / 285.7 MB, free: 4.945 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.677e-05/0.02342, allocations: 45.7 kB / 285.7 MB, free: 4.895 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001346/0.02355, allocations: 232.3 kB / 285.9 MB, free: 4.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001811/0.02373, allocations: 230.1 kB / 286.2 MB, free: 4.434 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001849/0.02392, allocations: 108 kB / 286.3 MB, free: 4.32 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.0241, allocations: 0.5235 MB / 286.8 MB, free: 3.785 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003669/0.02446, allocations: 149.2 kB / 286.9 MB, free: 3.637 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003718/0.02484, allocations: 186.5 kB / 287.1 MB, free: 3.453 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000542/0.02538, allocations: 271.8 kB / 287.4 MB, free: 3.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.02538, allocations: 0 / 287.4 MB, free: 3.18 MB / 266.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.001295/0.02668, allocations: 0.5821 MB / 288 MB, free: 2.582 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.02669, allocations: 4 kB / 288 MB, free: 2.578 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.693e-06/0.0267, allocations: 4.031 kB / 288 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007608/0.02746, allocations: 307 kB / 288.3 MB, free: 2.266 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002868/0.02775, allocations: 79.91 kB / 288.4 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0013/0.02905, allocations: 1.772 MB / 290.1 MB, free: 360 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003344/0.02938, allocations: 63.94 kB / 290.2 MB, free: 296 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.381e-05/0.02943, allocations: 16 kB / 290.2 MB, free: 280 kB / 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.000192/0.02962, allocations: 184.5 kB / 290.4 MB, free: 84 kB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001328/0.02975, allocations: 55.77 kB / 290.4 MB, free: 28 kB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1037/0.1334, allocations: 60.89 kB / 290.5 MB, free: 28.47 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.953e-06/0.1334, allocations: 9.719 kB / 290.5 MB, free: 28.47 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.326e-06/0.1334, allocations: 1.25 kB / 290.5 MB, free: 28.47 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.1334, allocations: 3.984 kB / 290.5 MB, free: 28.47 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001691/0.1351, allocations: 1.133 MB / 291.7 MB, free: 28.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.1351, allocations: 1.656 kB / 291.7 MB, free: 28.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002223/0.1354, allocations: 87.44 kB / 291.7 MB, free: 28.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004427/0.1358, allocations: 290.4 kB / 292 MB, free: 28.07 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.944e-05/0.1358, allocations: 23.17 kB / 292 MB, free: 28.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006307/0.1365, allocations: 1.76 MB / 293.8 MB, free: 26.48 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.1365, allocations: 5.125 kB / 293.8 MB, free: 26.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009952/0.1375, allocations: 0.8541 MB / 294.7 MB, free: 26.11 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001418/0.1376, allocations: 95.78 kB / 294.8 MB, free: 26.09 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.48e-05/0.1377, allocations: 20.67 kB / 294.8 MB, free: 26.08 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001893/0.1379, allocations: 46.59 kB / 294.8 MB, free: 26.07 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001643/0.138, allocations: 110 kB / 294.9 MB, free: 26.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.402e-05/0.1381, allocations: 24.45 kB / 295 MB, free: 26.04 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001236/0.1382, allocations: 221.4 kB / 295.2 MB, free: 25.9 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.1382, allocations: 0 / 295.2 MB, free: 25.9 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003404/0.1385, allocations: 125.9 kB / 295.3 MB, free: 25.88 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.0007494/0.1393, allocations: 368.6 kB / 295.7 MB, free: 25.77 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007055/0.14, allocations: 429.1 kB / 296.1 MB, free: 25.69 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.364e-06/0.14, allocations: 1.156 kB / 296.1 MB, free: 25.69 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003361/0.1403, allocations: 256 kB / 296.3 MB, free: 25.63 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004159/0.1407, allocations: 131.2 kB / 296.5 MB, free: 25.59 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.1428, allocations: 1.232 MB / 297.7 MB, free: 24.95 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.811e-05/0.1429, allocations: 120.5 kB / 297.8 MB, free: 24.87 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001087/0.143, allocations: 45.86 kB / 297.8 MB, free: 24.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.639e-05/0.1431, allocations: 41.77 kB / 297.9 MB, free: 24.85 MB / 266.7 MB Notification: Performance of SimCode: time 9.62e-07/0.1431, allocations: 0 / 297.9 MB, free: 24.85 MB / 266.7 MB Notification: Performance of Templates: time 0.009838/0.1529, allocations: 8.701 MB / 306.6 MB, free: 20.91 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.081540023209527]