Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.001526/0.001526, allocations: 112.1 kB / 21.93 MB, free: 5.215 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.001795/0.001795, allocations: 209.5 kB / 25.22 MB, free: 3.023 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.655/1.655, allocations: 207.7 MB / 236.1 MB, free: 9.793 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.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") translateModel(Modelica.Mechanics.Rotational.Examples.CoupledClutches,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1500,variableFilter="time|J1.phi|J1.w|clutch1.phi_rel|clutch1.w_rel|clutch2.phi_rel|clutch2.w_rel|clutch3.phi_rel|clutch3.w_rel|clutch1.mode|clutch1.startBackward|clutch1.startForward|clutch2.mode|clutch2.startBackward|clutch2.startForward|clutch3.mode|clutch3.startBackward|clutch3.startForward",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [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.002183/0.002183, allocations: 58.58 kB / 348.4 MB, free: 9.395 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3228/0.3249, allocations: 49.15 MB / 397.6 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004186/0.3291, allocations: 2.867 MB / 400.5 MB, free: 7.484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002085/0.3312, allocations: 1.049 MB / 401.5 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002053/0.3314, allocations: 9.344 kB / 401.5 MB, free: 6.754 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002736/0.3317, allocations: 74.09 kB / 401.6 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002937/0.332, allocations: 163.9 kB / 401.7 MB, free: 6.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008242/0.3328, allocations: 288.7 kB / 402 MB, free: 6.449 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007882/0.3336, allocations: 0.7987 MB / 402.8 MB, free: 6.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002202/0.3338, allocations: 95.88 kB / 402.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004698/0.3343, allocations: 371.6 kB / 403.3 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004698/0.3348, allocations: 357.7 kB / 403.6 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.3349, allocations: 59.59 kB / 403.7 MB, free: 5.723 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002525/0.3351, allocations: 112.8 kB / 403.8 MB, free: 5.707 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001828/0.3353, allocations: 157.8 kB / 404 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002815/0.3356, allocations: 254.3 kB / 404.2 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000939/0.3365, allocations: 0.7335 MB / 404.9 MB, free: 5.176 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3365, allocations: 0 / 404.9 MB, free: 5.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.894e-06/0.3365, allocations: 1.156 kB / 404.9 MB, free: 5.176 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.3365, allocations: 0 / 404.9 MB, free: 5.176 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001681/0.3382, allocations: 0.8214 MB / 405.8 MB, free: 4.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.352e-05/0.3383, allocations: 14.67 kB / 405.8 MB, free: 4.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001357/0.3384, allocations: 60.75 kB / 405.8 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006006/0.339, allocations: 308.1 kB / 406.1 MB, free: 4.375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.065e-05/0.339, allocations: 40.19 kB / 406.2 MB, free: 4.355 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001116/0.3392, allocations: 46.2 kB / 406.2 MB, free: 4.34 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001178/0.3403, allocations: 0.6192 MB / 406.8 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.737e-05/0.3404, allocations: 3.828 kB / 406.8 MB, free: 4.094 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.519e-05/0.3404, allocations: 18.75 kB / 406.9 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.465e-05/0.3404, allocations: 11 kB / 406.9 MB, free: 4.078 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001191/0.3416, allocations: 0.5944 MB / 407.5 MB, free: 3.906 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002284/0.3439, allocations: 1.106 MB / 408.6 MB, free: 3.254 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009258/0.3448, allocations: 441.2 kB / 409 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005232/0.3454, allocations: 287.3 kB / 409.3 MB, free: 2.895 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.948e-05/0.3454, allocations: 6.875 kB / 409.3 MB, free: 2.891 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.09e-05/0.3454, allocations: 42.22 kB / 409.3 MB, free: 2.844 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 2.094e-06/0.3454, allocations: 0 / 409.3 MB, free: 2.844 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.005985/0.3514, allocations: 2.484 MB / 411.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.193e-05/0.3514, allocations: 62.5 kB / 411.9 MB, free: 1.453 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003384/0.3518, allocations: 318.8 kB / 412.2 MB, free: 1.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.44e-05/0.3518, allocations: 49.08 kB / 412.2 MB, free: 1.203 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.352, allocations: 207.2 kB / 412.4 MB, free: 1.016 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001341/0.3521, allocations: 230.2 kB / 412.7 MB, free: 0.8164 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/0.3523, allocations: 131.1 kB / 412.8 MB, free: 0.7305 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.714e-05/0.3524, allocations: 353.4 kB / 413.1 MB, free: 396 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005867/0.353, allocations: 316.5 kB / 413.4 MB, free: 248 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006294/0.3536, allocations: 388.3 kB / 413.8 MB, free: 40 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001064/0.3547, allocations: 0.5066 MB / 414.3 MB, free: 15.79 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.3547, allocations: 3.938 kB / 414.3 MB, free: 15.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001917/0.3566, allocations: 0.9187 MB / 415.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.3566, allocations: 5.469 kB / 415.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.3566, allocations: 1.359 kB / 415.3 MB, free: 15.34 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001397/0.358, allocations: 0.7263 MB / 416 MB, free: 15.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003955/0.3584, allocations: 99.2 kB / 416.1 MB, free: 14.99 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001568/0.36, allocations: 1.093 MB / 417.2 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007476/0.3607, allocations: 109.2 kB / 417.3 MB, free: 14.14 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.3e-05/0.3608, allocations: 24.52 kB / 417.3 MB, free: 14.13 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 24 (clutch3.mode,$PRE.clutch3.mode,clutch3.locked,clutch3.startBackward,$PRE.clutch3.startBackward,clutch3.startForward,$PRE.clutch3.startForward,clutch3.free,clutch2.mode,$PRE.clutch2.mode,clutch2.locked,clutch2.startBackward,$PRE.clutch2.startBackward,clutch2.startForward,$PRE.clutch2.startForward,clutch2.free,clutch1.mode,$PRE.clutch1.mode,clutch1.locked,clutch1.startBackward,$PRE.clutch1.startBackward,clutch1.startForward,$PRE.clutch1.startForward,clutch1.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (64): * Single equations (assignments): 63 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0003756/0.3612, allocations: 186.1 kB / 417.5 MB, free: 13.96 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001201/0.3613, allocations: 51.02 kB / 417.5 MB, free: 13.94 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001446/0.3614, allocations: 73.5 kB / 417.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.095e-06/0.3614, allocations: 10.34 kB / 417.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.11e-05/0.3614, allocations: 0 / 417.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.536e-06/0.3614, allocations: 5.141 kB / 417.6 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002892/0.3643, allocations: 1.376 MB / 419 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.93e-06/0.3643, allocations: 1.125 kB / 419 MB, free: 13.01 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004184/0.3648, allocations: 95.47 kB / 419.1 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001225/0.366, allocations: 0.703 MB / 419.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.16e-05/0.3661, allocations: 27.97 kB / 419.8 MB, free: 12.63 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001497/0.3676, allocations: 1.064 MB / 420.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.3676, allocations: 0 / 420.9 MB, free: 11.54 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002593/0.3702, allocations: 1.3 MB / 422.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003594/0.3705, allocations: 115.6 kB / 422.3 MB, free: 10.11 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001113/0.3706, allocations: 20 kB / 422.3 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006354/0.3713, allocations: 103.9 kB / 422.4 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000292/0.3715, allocations: 132.3 kB / 422.6 MB, free: 9.855 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-05/0.3716, allocations: 23.97 kB / 422.6 MB, free: 9.832 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000275/0.3719, allocations: 227 kB / 422.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3719, allocations: 0 / 422.8 MB, free: 9.609 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006209/0.3725, allocations: 160 kB / 423 MB, free: 9.453 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (clutch1.phi_rel,clutch1.w_rel,clutch2.phi_rel,clutch2.w_rel,J3.phi,J3.w,clutch3.phi_rel,clutch3.w_rel) * Number of discrete variables: 15 (clutch1.free,clutch1.startForward,clutch1.startBackward,clutch1.locked,clutch1.mode,clutch2.free,clutch2.startForward,clutch2.startBackward,clutch2.locked,clutch2.mode,clutch3.free,clutch3.startForward,clutch3.startBackward,clutch3.locked,clutch3.mode) * Number of discrete states: 9 (clutch3.mode,clutch3.startForward,clutch1.mode,clutch1.startForward,clutch1.startBackward,clutch2.mode,clutch2.startForward,clutch2.startBackward,clutch3.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(3,19)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002978/0.3728, allocations: 143.2 kB / 423.1 MB, free: 9.305 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001648/0.3744, allocations: 0.7301 MB / 423.8 MB, free: 8.574 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.524e-06/0.3745, allocations: 4 kB / 423.8 MB, free: 8.57 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008722/0.3753, allocations: 410 kB / 424.2 MB, free: 8.172 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006792/0.376, allocations: 97.52 kB / 424.3 MB, free: 8.078 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00299/0.379, allocations: 1.424 MB / 425.7 MB, free: 6.625 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002726/0.3793, allocations: 249.6 kB / 426 MB, free: 6.355 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001606/0.3794, allocations: 47.41 kB / 426 MB, free: 6.309 MB / 334.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3794, allocations: 0 / 426 MB, free: 6.309 MB / 334.1 MB Notification: Performance of Templates: time 0.01415/0.3936, allocations: 8.848 MB / 434.9 MB, free: 13.44 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.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.61092160595581]