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.0008864/0.0008864, allocations: 91.61 kB / 22.19 MB, free: 2.379 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.0008754/0.0008754, allocations: 160.4 kB / 25.45 MB, free: 9.352 MB / 18.57 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 0.8374/0.8374, allocations: 158.6 MB / 187.2 MB, free: 3.051 MB / 170.7 MB " [Timeout remaining time 179] 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: Performance of FrontEnd - loaded program: time 2.154e-06/2.154e-06, allocations: 0 / 299.7 MB, free: 6.934 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.523e-05/2.738e-05, allocations: 2.281 kB / 299.7 MB, free: 6.93 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002955/0.002982, allocations: 2.855 MB / 302.5 MB, free: 4.051 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001314/0.004296, allocations: 1.053 MB / 303.6 MB, free: 2.988 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001532/0.004449, allocations: 11.94 kB / 303.6 MB, free: 2.977 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005311/0.00498, allocations: 63.31 kB / 303.7 MB, free: 2.914 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001939/0.005174, allocations: 178.5 kB / 303.8 MB, free: 2.738 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000507/0.005681, allocations: 291.4 kB / 304.1 MB, free: 2.453 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004913/0.006172, allocations: 0.8188 MB / 305 MB, free: 1.633 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.006352, allocations: 93.31 kB / 305 MB, free: 1.543 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003828/0.006735, allocations: 495 kB / 305.5 MB, free: 1.059 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002823/0.007017, allocations: 323.3 kB / 305.8 MB, free: 0.7422 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.058e-05/0.007078, allocations: 60 kB / 305.9 MB, free: 0.6836 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.007222, allocations: 99.95 kB / 306 MB, free: 0.5859 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001228/0.007344, allocations: 167.4 kB / 306.2 MB, free: 432 kB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.007487, allocations: 211.5 kB / 306.4 MB, free: 220 kB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006117/0.008099, allocations: 0.7945 MB / 307.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.875e-06/0.008102, allocations: 0 / 307.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.008103, allocations: 0 / 307.2 MB, free: 15.42 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.143e-06/0.00811, allocations: 4 kB / 307.2 MB, free: 15.41 MB / 298.7 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.001085/0.009195, allocations: 0.8204 MB / 308 MB, free: 14.56 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/0.009238, allocations: 15.98 kB / 308 MB, free: 14.55 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.084e-05/0.009329, allocations: 64.5 kB / 308.1 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/0.009731, allocations: 309.3 kB / 308.4 MB, free: 14.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.009768, allocations: 37.38 kB / 308.4 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.046e-05/0.009839, allocations: 44.33 kB / 308.4 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007488/0.01059, allocations: 0.6117 MB / 309.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.762e-05/0.01061, allocations: 4.125 kB / 309.1 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.968e-05/0.01064, allocations: 24.12 kB / 309.1 MB, free: 13.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.01066, allocations: 19.98 kB / 309.1 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007279/0.01139, allocations: 0.5934 MB / 309.7 MB, free: 12.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001377/0.01276, allocations: 1.088 MB / 310.8 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009316/0.01369, allocations: 433.5 kB / 311.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003319/0.01403, allocations: 294.2 kB / 311.5 MB, free: 10.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.894e-05/0.01406, allocations: 8.5 kB / 311.5 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.01409, allocations: 39.06 kB / 311.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of pre-optimization done (n=58): time 1.573e-06/0.01409, allocations: 0 / 311.5 MB, free: 10.91 MB / 298.7 MB Notification: Performance of matching and sorting (n=64): time 0.003743/0.01783, allocations: 2.497 MB / 314 MB, free: 8.359 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.568e-05/0.01788, allocations: 56.06 kB / 314.1 MB, free: 8.293 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000249/0.01812, allocations: 324.5 kB / 314.4 MB, free: 7.965 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 4.402e-05/0.01817, allocations: 41.7 kB / 314.5 MB, free: 7.918 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.01829, allocations: 205.5 kB / 314.7 MB, free: 7.711 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001507/0.01844, allocations: 238.1 kB / 314.9 MB, free: 7.477 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001486/0.01859, allocations: 130.6 kB / 315 MB, free: 7.344 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.01871, allocations: 350.8 kB / 315.4 MB, free: 6.992 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004063/0.01911, allocations: 321.8 kB / 315.7 MB, free: 6.676 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004475/0.01956, allocations: 381 kB / 316 MB, free: 6.289 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006387/0.0202, allocations: 0.5145 MB / 316.6 MB, free: 5.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.0202, allocations: 0 / 316.6 MB, free: 5.77 MB / 298.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001087/0.02129, allocations: 0.9156 MB / 317.5 MB, free: 4.844 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.02131, allocations: 4 kB / 317.5 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.02131, allocations: 0 / 317.5 MB, free: 4.84 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001102/0.02241, allocations: 0.7269 MB / 318.2 MB, free: 4.109 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.02262, allocations: 103.8 kB / 318.3 MB, free: 4.008 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009418/0.02356, allocations: 1.095 MB / 319.4 MB, free: 2.887 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003039/0.02386, allocations: 103.9 kB / 319.5 MB, free: 2.785 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.609e-05/0.0239, allocations: 27.98 kB / 319.5 MB, free: 2.758 MB / 298.7 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.0001641/0.02406, allocations: 183.7 kB / 319.7 MB, free: 2.566 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.638e-05/0.02412, allocations: 51.66 kB / 319.8 MB, free: 2.516 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.76e-05/0.0242, allocations: 64.75 kB / 319.8 MB, free: 2.453 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.456e-06/0.0242, allocations: 4 kB / 319.8 MB, free: 2.449 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.776e-06/0.02421, allocations: 4 kB / 319.8 MB, free: 2.445 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/0.02422, allocations: 8.016 kB / 319.8 MB, free: 2.438 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001619/0.02583, allocations: 1.391 MB / 321.2 MB, free: 1.008 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.02584, allocations: 3.984 kB / 321.2 MB, free: 1.004 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002179/0.02606, allocations: 83.89 kB / 321.3 MB, free: 0.9219 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007023/0.02676, allocations: 0.7034 MB / 322 MB, free: 220 kB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.617e-05/0.02679, allocations: 23.95 kB / 322 MB, free: 196 kB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008617/0.02766, allocations: 1.056 MB / 323.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.02766, allocations: 4 kB / 323.1 MB, free: 15.11 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001476/0.02913, allocations: 1.3 MB / 324.4 MB, free: 13.79 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/0.0293, allocations: 119.5 kB / 324.5 MB, free: 13.67 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.004e-05/0.02936, allocations: 20 kB / 324.5 MB, free: 13.65 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002827/0.02964, allocations: 103.9 kB / 324.6 MB, free: 13.55 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001667/0.02981, allocations: 124.4 kB / 324.8 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.284e-05/0.02984, allocations: 31.97 kB / 324.8 MB, free: 13.39 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001333/0.02997, allocations: 219 kB / 325 MB, free: 13.18 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02997, allocations: 0 / 325 MB, free: 13.18 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003353/0.03031, allocations: 167.9 kB / 325.2 MB, free: 13.02 MB / 314.7 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.0007171/0.03102, allocations: 147.2 kB / 325.3 MB, free: 12.87 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.000942/0.03197, allocations: 0.7302 MB / 326 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.03197, allocations: 4.062 kB / 326 MB, free: 12.13 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004607/0.03243, allocations: 406.1 kB / 326.4 MB, free: 11.73 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003979/0.03283, allocations: 97.42 kB / 326.5 MB, free: 11.64 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001506/0.03433, allocations: 1.252 MB / 327.8 MB, free: 10.36 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001508/0.03448, allocations: 249.5 kB / 328 MB, free: 10.09 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.471e-05/0.03458, allocations: 52.48 kB / 328.1 MB, free: 10.04 MB / 314.7 MB Notification: Performance of SimCode: time 8.32e-07/0.03458, allocations: 0 / 328.1 MB, free: 10.04 MB / 314.7 MB Notification: Performance of Templates: time 0.007629/0.04221, allocations: 8.859 MB / 336.9 MB, free: 1.176 MB / 314.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.csv","/var/lib/jenkins/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: 5.471754090860486]