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.00195/0.00195, allocations: 98.17 kB / 21.93 MB, free: 5.207 MB / 14.72 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.00214/0.00214, allocations: 202.7 kB / 25.22 MB, free: 3.145 MB / 14.72 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 1.677/1.677, allocations: 207.7 MB / 236.1 MB, free: 9.777 MB / 190.1 MB " [Timeout remaining time 178] 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: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001897/0.001897, allocations: 58.58 kB / 348.4 MB, free: 9.379 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3297/0.3316, allocations: 49.16 MB / 397.6 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.Friction): time 0.004518/0.3362, allocations: 2.831 MB / 400.4 MB, free: 7.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002107/0.3383, allocations: 0.9403 MB / 401.4 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002145/0.3385, allocations: 9.312 kB / 401.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002827/0.3388, allocations: 68.59 kB / 401.4 MB, free: 6.797 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002987/0.3391, allocations: 139.5 kB / 401.6 MB, free: 6.699 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006968/0.3398, allocations: 224.7 kB / 401.8 MB, free: 6.586 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006437/0.3404, allocations: 0.6376 MB / 402.4 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002101/0.3406, allocations: 92.48 kB / 402.5 MB, free: 6.23 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003613/0.341, allocations: 288.9 kB / 402.8 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003976/0.3414, allocations: 274.6 kB / 403.1 MB, free: 6 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.671e-05/0.3415, allocations: 52.5 kB / 403.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002293/0.3417, allocations: 100.5 kB / 403.2 MB, free: 5.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001312/0.3418, allocations: 131.9 kB / 403.4 MB, free: 5.895 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002006/0.342, allocations: 210.3 kB / 403.6 MB, free: 5.781 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000809/0.3428, allocations: 0.5986 MB / 404.2 MB, free: 5.543 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.299e-06/0.3428, allocations: 1.75 kB / 404.2 MB, free: 5.543 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3428, allocations: 0 / 404.2 MB, free: 5.543 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.3429, allocations: 0 / 404.2 MB, free: 5.543 MB / 318.1 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.001474/0.3443, allocations: 0.718 MB / 404.9 MB, free: 5.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.973e-05/0.3444, allocations: 12.8 kB / 404.9 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.3445, allocations: 50.16 kB / 404.9 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005512/0.3451, allocations: 274.1 kB / 405.2 MB, free: 4.809 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.3451, allocations: 33.88 kB / 405.2 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.433e-05/0.3452, allocations: 42.61 kB / 405.3 MB, free: 4.777 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001001/0.3462, allocations: 475.8 kB / 405.8 MB, free: 4.598 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.809e-05/0.3462, allocations: 6.156 kB / 405.8 MB, free: 4.594 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.913e-05/0.3463, allocations: 16.06 kB / 405.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.443e-05/0.3463, allocations: 8.312 kB / 405.8 MB, free: 4.582 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009842/0.3473, allocations: 477.2 kB / 406.2 MB, free: 4.441 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002001/0.3493, allocations: 0.9278 MB / 407.2 MB, free: 3.934 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008136/0.3501, allocations: 362.6 kB / 407.5 MB, free: 3.789 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004956/0.3506, allocations: 249.3 kB / 407.8 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.332e-05/0.3506, allocations: 6.547 kB / 407.8 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.527e-05/0.3506, allocations: 41.75 kB / 407.8 MB, free: 3.645 MB / 318.1 MB Notification: Performance of pre-optimization done (n=50): time 2.375e-06/0.3506, allocations: 0 / 407.8 MB, free: 3.645 MB / 318.1 MB Notification: Performance of matching and sorting (n=56): time 0.004923/0.3556, allocations: 2.039 MB / 409.9 MB, free: 2.688 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.572e-05/0.3556, allocations: 62.81 kB / 409.9 MB, free: 2.621 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/0.3559, allocations: 262.9 kB / 410.2 MB, free: 2.445 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.027e-05/0.356, allocations: 42.05 kB / 410.2 MB, free: 2.402 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001139/0.3561, allocations: 190.2 kB / 410.4 MB, free: 2.227 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001314/0.3562, allocations: 205.6 kB / 410.6 MB, free: 2.047 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001798/0.3564, allocations: 106 kB / 410.7 MB, free: 1.98 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.127e-05/0.3565, allocations: 346.8 kB / 411 MB, free: 1.641 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004501/0.3569, allocations: 236 kB / 411.3 MB, free: 1.531 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004862/0.3574, allocations: 296.2 kB / 411.6 MB, free: 1.375 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007337/0.3581, allocations: 417.8 kB / 412 MB, free: 1.176 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3581, allocations: 3.938 kB / 412 MB, free: 1.172 MB / 318.1 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001537/0.3597, allocations: 0.7807 MB / 412.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.077e-05/0.3597, allocations: 5.031 kB / 412.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.904e-06/0.3597, allocations: 1.156 kB / 412.8 MB, free: 0.7812 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008761/0.3606, allocations: 0.4914 MB / 413.3 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003506/0.3609, allocations: 87.95 kB / 413.3 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.3623, allocations: 1.415 MB / 414.8 MB, free: 15.29 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005265/0.3629, allocations: 69.97 kB / 414.8 MB, free: 15.26 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.743e-05/0.3629, allocations: 25.95 kB / 414.9 MB, free: 15.25 MB / 334.1 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.0003164/0.3632, allocations: 179.5 kB / 415 MB, free: 15.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.283e-05/0.3633, allocations: 38.58 kB / 415.1 MB, free: 15.07 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001458/0.3635, allocations: 58.33 kB / 415.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3635, allocations: 5.75 kB / 415.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.158e-05/0.3635, allocations: 0 / 415.1 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.574e-06/0.3635, allocations: 5.547 kB / 415.1 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003064/0.3666, allocations: 1.282 MB / 416.4 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.3666, allocations: 5.125 kB / 416.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003684/0.3669, allocations: 88.77 kB / 416.5 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008395/0.3678, allocations: 475.8 kB / 417 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.367e-05/0.3678, allocations: 28.59 kB / 417 MB, free: 13.91 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001477/0.3693, allocations: 1.368 MB / 418.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.492e-06/0.3693, allocations: 6.281 kB / 418.4 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/0.3715, allocations: 1.091 MB / 419.5 MB, free: 12.07 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003002/0.3718, allocations: 85.62 kB / 419.5 MB, free: 12.01 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.099e-05/0.3719, allocations: 23.62 kB / 419.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000413/0.3723, allocations: 62.45 kB / 419.6 MB, free: 11.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000221/0.3725, allocations: 99 kB / 419.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.964e-05/0.3726, allocations: 21.23 kB / 419.7 MB, free: 11.89 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002302/0.3728, allocations: 192.9 kB / 419.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3728, allocations: 0 / 419.9 MB, free: 11.75 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00059/0.3734, allocations: 137.6 kB / 420.1 MB, free: 11.73 MB / 334.1 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.000271/0.3737, allocations: 140 kB / 420.2 MB, free: 11.62 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001379/0.375, allocations: 0.5546 MB / 420.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.375, allocations: 1.125 kB / 420.8 MB, free: 11.38 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000718/0.3758, allocations: 321 kB / 421.1 MB, free: 11.24 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006117/0.3764, allocations: 78.55 kB / 421.2 MB, free: 11.16 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004036/0.3804, allocations: 1.473 MB / 422.6 MB, free: 9.641 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002529/0.3807, allocations: 220.8 kB / 422.8 MB, free: 9.402 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001373/0.3808, allocations: 39.44 kB / 422.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of SimCode: time 9.22e-07/0.3808, allocations: 0 / 422.9 MB, free: 9.363 MB / 334.1 MB Notification: Performance of Templates: time 0.0139/0.3947, allocations: 8.731 MB / 431.6 MB, free: 0.6172 MB / 334.1 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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 9.438741389662027]