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.0018/0.0018, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001635/0.001635, allocations: 214.8 kB / 24.47 MB, free: 3.777 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.461/1.461, allocations: 207.7 MB / 235.3 MB, free: 9.801 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.001947/0.001947, allocations: 51.92 kB / 347.7 MB, free: 9.484 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2867/0.2887, allocations: 49.15 MB / 396.8 MB, free: 9.359 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004229/0.2929, allocations: 2.866 MB / 399.7 MB, free: 7.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002132/0.295, allocations: 1.043 MB / 400.8 MB, free: 6.723 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.2953, allocations: 12.97 kB / 400.8 MB, free: 6.715 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002789/0.2955, allocations: 74.47 kB / 400.8 MB, free: 6.672 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002875/0.2958, allocations: 163.1 kB / 401 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007573/0.2966, allocations: 292.7 kB / 401.3 MB, free: 6.406 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008317/0.2974, allocations: 0.7949 MB / 402.1 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.2976, allocations: 92.5 kB / 402.2 MB, free: 5.977 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004763/0.2981, allocations: 369.9 kB / 402.5 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004292/0.2985, allocations: 360 kB / 402.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001081/0.2986, allocations: 60.75 kB / 402.9 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002398/0.2989, allocations: 109.5 kB / 403 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000146/0.299, allocations: 154.9 kB / 403.2 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002471/0.2993, allocations: 262.4 kB / 403.5 MB, free: 5.426 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008184/0.3001, allocations: 0.7254 MB / 404.2 MB, free: 5.145 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.3001, allocations: 3.938 kB / 404.2 MB, free: 5.141 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3001, allocations: 0 / 404.2 MB, free: 5.141 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.007e-05/0.3001, allocations: 0 / 404.2 MB, free: 5.141 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.001682/0.3018, allocations: 0.8232 MB / 405 MB, free: 4.609 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.3018, allocations: 13.64 kB / 405 MB, free: 4.605 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001322/0.302, allocations: 61.06 kB / 405.1 MB, free: 4.574 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005352/0.3025, allocations: 316.1 kB / 405.4 MB, free: 4.332 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.633e-05/0.3025, allocations: 35.09 kB / 405.4 MB, free: 4.316 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.3026, allocations: 49.94 kB / 405.5 MB, free: 4.297 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00114/0.3038, allocations: 0.6164 MB / 406.1 MB, free: 4.055 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.627e-05/0.3038, allocations: 6.688 kB / 406.1 MB, free: 4.051 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.653e-05/0.3039, allocations: 16.88 kB / 406.1 MB, free: 4.039 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.3039, allocations: 13.56 kB / 406.1 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001276/0.3051, allocations: 0.5943 MB / 406.7 MB, free: 3.863 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002644/0.3078, allocations: 1.094 MB / 407.8 MB, free: 3.238 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001112/0.3089, allocations: 436.1 kB / 408.2 MB, free: 3.027 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005971/0.3095, allocations: 296.5 kB / 408.5 MB, free: 2.875 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.252e-05/0.3095, allocations: 5.781 kB / 408.5 MB, free: 2.871 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.465e-05/0.3096, allocations: 39 kB / 408.6 MB, free: 2.828 MB / 318.1 MB Notification: Performance of pre-optimization done (n=58): time 3.486e-06/0.3096, allocations: 0 / 408.6 MB, free: 2.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=64): time 0.006211/0.3158, allocations: 2.493 MB / 411.1 MB, free: 1.496 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.93e-05/0.3158, allocations: 63.92 kB / 411.1 MB, free: 1.43 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003245/0.3162, allocations: 310.5 kB / 411.4 MB, free: 1.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.095e-05/0.3162, allocations: 49.39 kB / 411.5 MB, free: 1.184 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001065/0.3163, allocations: 208.2 kB / 411.7 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001325/0.3165, allocations: 228.9 kB / 411.9 MB, free: 0.7969 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001962/0.3166, allocations: 135.5 kB / 412 MB, free: 0.707 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.316e-05/0.3167, allocations: 348.8 kB / 412.4 MB, free: 376 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006156/0.3173, allocations: 322 kB / 412.7 MB, free: 224 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008075/0.3181, allocations: 388.4 kB / 413.1 MB, free: 16 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001151/0.3193, allocations: 0.5021 MB / 413.6 MB, free: 15.77 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.993e-06/0.3193, allocations: 7.938 kB / 413.6 MB, free: 15.76 MB / 334.1 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001958/0.3213, allocations: 0.9184 MB / 414.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.438e-05/0.3213, allocations: 5.75 kB / 414.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.735e-06/0.3213, allocations: 1.281 kB / 414.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001425/0.3227, allocations: 0.7295 MB / 415.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004263/0.3231, allocations: 104.8 kB / 415.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001534/0.3247, allocations: 1.08 MB / 416.4 MB, free: 14.17 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007291/0.3254, allocations: 112.7 kB / 416.5 MB, free: 14.12 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.796e-05/0.3255, allocations: 21.19 kB / 416.6 MB, free: 14.11 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.000318/0.3258, allocations: 185.7 kB / 416.7 MB, free: 13.95 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001097/0.3259, allocations: 46.88 kB / 416.8 MB, free: 13.92 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001466/0.326, allocations: 69.72 kB / 416.8 MB, free: 13.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.117e-06/0.326, allocations: 10.38 kB / 416.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.076e-05/0.3261, allocations: 1.312 kB / 416.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.033e-05/0.3261, allocations: 3.984 kB / 416.9 MB, free: 13.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002744/0.3288, allocations: 1.385 MB / 418.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.517e-06/0.3288, allocations: 0 / 418.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004387/0.3293, allocations: 96.47 kB / 418.3 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.3304, allocations: 0.6988 MB / 419 MB, free: 12.65 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.367e-05/0.3305, allocations: 33.56 kB / 419.1 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001483/0.332, allocations: 1.066 MB / 420.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.332, allocations: 0 / 420.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002661/0.3346, allocations: 1.3 MB / 421.4 MB, free: 10.23 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003388/0.335, allocations: 115.6 kB / 421.6 MB, free: 10.12 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.3351, allocations: 20 kB / 421.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006443/0.3357, allocations: 99.86 kB / 421.7 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002877/0.336, allocations: 136.3 kB / 421.8 MB, free: 9.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.081e-05/0.3361, allocations: 27.97 kB / 421.8 MB, free: 9.84 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002639/0.3364, allocations: 223 kB / 422 MB, free: 9.621 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3364, allocations: 0 / 422 MB, free: 9.621 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006165/0.337, allocations: 156 kB / 422.2 MB, free: 9.469 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.0002706/0.3372, allocations: 147.2 kB / 422.3 MB, free: 9.316 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001627/0.3389, allocations: 0.7224 MB / 423.1 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3389, allocations: 0 / 423.1 MB, free: 8.594 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008738/0.3397, allocations: 418 kB / 423.5 MB, free: 8.188 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006862/0.3404, allocations: 107.1 kB / 423.6 MB, free: 8.086 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.3432, allocations: 1.387 MB / 425 MB, free: 6.676 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002511/0.3435, allocations: 249.5 kB / 425.2 MB, free: 6.406 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002141/0.3437, allocations: 47.44 kB / 425.3 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001738/0.3438, allocations: 47.42 kB / 425.3 MB, free: 6.312 MB / 334.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3438, allocations: 0 / 425.3 MB, free: 6.312 MB / 334.1 MB Notification: Performance of Templates: time 0.02112/0.365, allocations: 12.02 MB / 437.3 MB, free: 10.25 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/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.2627446092665195]