Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009493/0.0009493, allocations: 72.08 kB / 21.69 MB, free: 2.863 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009278/0.0009278, allocations: 141.9 kB / 24.97 MB, free: 8.359 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8914/0.8914, allocations: 173.4 MB / 201.5 MB, free: 9.34 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.483e-06/1.483e-06, allocations: 0 / 268.1 MB, free: 6.75 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.296e-05/1.445e-05, allocations: 6.25 kB / 268.1 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002718/0.002733, allocations: 3.076 MB / 271.1 MB, free: 3.648 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001174/0.003907, allocations: 1.044 MB / 272.2 MB, free: 2.598 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001313/0.004038, allocations: 7.938 kB / 272.2 MB, free: 2.59 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002031/0.004242, allocations: 75.23 kB / 272.3 MB, free: 2.516 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001817/0.004423, allocations: 170.5 kB / 272.4 MB, free: 2.348 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004594/0.004883, allocations: 287.4 kB / 272.7 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000491/0.005374, allocations: 0.8226 MB / 273.5 MB, free: 1.238 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001538/0.005527, allocations: 85.58 kB / 273.6 MB, free: 1.148 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003854/0.005913, allocations: 499 kB / 274.1 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002757/0.006189, allocations: 323.2 kB / 274.4 MB, free: 352 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 6.315e-05/0.006252, allocations: 60 kB / 274.5 MB, free: 292 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001363/0.006388, allocations: 111.9 kB / 274.6 MB, free: 180 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.006496, allocations: 159.5 kB / 274.7 MB, free: 20 kB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001698/0.006666, allocations: 219.6 kB / 275 MB, free: 15.8 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004546/0.007121, allocations: 0.5762 MB / 275.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.864e-06/0.007123, allocations: 0 / 275.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.21e-07/0.007123, allocations: 0 / 275.5 MB, free: 15.22 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.49e-06/0.007129, allocations: 0 / 275.5 MB, free: 15.22 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: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.0009439/0.008073, allocations: 0.8891 MB / 276.4 MB, free: 14.3 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.98e-05/0.008102, allocations: 8.031 kB / 276.4 MB, free: 14.29 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.008228, allocations: 92.56 kB / 276.5 MB, free: 14.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003133/0.008541, allocations: 312.2 kB / 276.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.217e-05/0.008573, allocations: 29.38 kB / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.513e-05/0.008639, allocations: 56.31 kB / 276.9 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006331/0.009272, allocations: 0.5359 MB / 277.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.009288, allocations: 4.141 kB / 277.5 MB, free: 13.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.619e-05/0.009325, allocations: 20.12 kB / 277.5 MB, free: 13.2 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.949e-06/0.009335, allocations: 12 kB / 277.5 MB, free: 13.19 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005191/0.009854, allocations: 401.6 kB / 277.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001197/0.01105, allocations: 1.121 MB / 279 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005174/0.01157, allocations: 353.8 kB / 279.3 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.01181, allocations: 205.1 kB / 279.5 MB, free: 11.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.602e-05/0.01185, allocations: 8.5 kB / 279.6 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.215e-05/0.01187, allocations: 41.89 kB / 279.6 MB, free: 11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=58): time 1.673e-06/0.01187, allocations: 0 / 279.6 MB, free: 11 MB / 266.7 MB Notification: Performance of matching and sorting (n=64): time 0.002873/0.01474, allocations: 2.017 MB / 281.6 MB, free: 8.941 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/0.01477, allocations: 60.06 kB / 281.7 MB, free: 8.867 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002133/0.01498, allocations: 358.2 kB / 282 MB, free: 8.504 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.178e-05/0.01503, allocations: 45.69 kB / 282.1 MB, free: 8.453 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.721e-05/0.01512, allocations: 252.2 kB / 282.3 MB, free: 8.203 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001214/0.01524, allocations: 234.1 kB / 282.5 MB, free: 7.973 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001318/0.01538, allocations: 132.2 kB / 282.7 MB, free: 7.836 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001223/0.0155, allocations: 0.5235 MB / 283.2 MB, free: 7.301 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002901/0.01579, allocations: 217.9 kB / 283.4 MB, free: 7.09 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000306/0.01609, allocations: 285.5 kB / 283.7 MB, free: 6.797 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004219/0.01652, allocations: 371.4 kB / 284 MB, free: 6.418 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.01652, allocations: 4 kB / 284 MB, free: 6.414 MB / 266.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.0008432/0.01736, allocations: 0.7191 MB / 284.8 MB, free: 5.684 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.218e-05/0.01738, allocations: 4 kB / 284.8 MB, free: 5.68 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.862e-06/0.01738, allocations: 4 kB / 284.8 MB, free: 5.676 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006871/0.01807, allocations: 0.6231 MB / 285.4 MB, free: 5.051 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001974/0.01827, allocations: 103.8 kB / 285.5 MB, free: 4.949 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007965/0.01906, allocations: 1.159 MB / 286.7 MB, free: 3.758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002458/0.01931, allocations: 75.91 kB / 286.7 MB, free: 3.684 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.225e-05/0.01934, allocations: 20 kB / 286.8 MB, free: 3.664 MB / 266.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.0001476/0.01949, allocations: 206.5 kB / 287 MB, free: 3.449 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.325e-05/0.01957, allocations: 71.66 kB / 287 MB, free: 3.379 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.308e-05/0.01965, allocations: 68.75 kB / 287.1 MB, free: 3.305 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.998e-06/0.01965, allocations: 4 kB / 287.1 MB, free: 3.301 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.186e-06/0.01965, allocations: 0 / 287.1 MB, free: 3.301 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.602e-06/0.01966, allocations: 15.92 kB / 287.1 MB, free: 3.285 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00138/0.02104, allocations: 1.229 MB / 288.3 MB, free: 2.012 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.504e-06/0.02104, allocations: 0 / 288.3 MB, free: 2.012 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002176/0.02126, allocations: 87.83 kB / 288.4 MB, free: 1.926 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006267/0.02189, allocations: 0.6241 MB / 289.1 MB, free: 1.297 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.491e-05/0.02192, allocations: 27.97 kB / 289.1 MB, free: 1.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007672/0.02269, allocations: 1.17 MB / 290.2 MB, free: 72 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.02269, allocations: 4.078 kB / 290.3 MB, free: 68 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1027/0.1254, allocations: 1.047 MB / 291.3 MB, free: 32.76 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001903/0.1256, allocations: 112.2 kB / 291.4 MB, free: 32.76 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.058e-05/0.1256, allocations: 24.17 kB / 291.4 MB, free: 32.76 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002645/0.1259, allocations: 71.8 kB / 291.5 MB, free: 32.76 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002113/0.1261, allocations: 141.3 kB / 291.6 MB, free: 32.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.606e-05/0.1261, allocations: 26.66 kB / 291.7 MB, free: 32.76 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001414/0.1263, allocations: 242.1 kB / 291.9 MB, free: 32.63 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1263, allocations: 3.828 kB / 291.9 MB, free: 32.63 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003982/0.1267, allocations: 161.4 kB / 292.1 MB, free: 32.63 MB / 266.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.0002036/0.1269, allocations: 152.7 kB / 292.2 MB, free: 32.54 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.00089/0.1278, allocations: 0.5758 MB / 292.8 MB, free: 32.5 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.1278, allocations: 0 / 292.8 MB, free: 32.5 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004312/0.1282, allocations: 355.6 kB / 293.1 MB, free: 32.48 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004364/0.1286, allocations: 135.5 kB / 293.3 MB, free: 32.46 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001652/0.1303, allocations: 1.179 MB / 294.4 MB, free: 31.84 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.558e-05/0.1304, allocations: 124.4 kB / 294.6 MB, free: 31.77 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001247/0.1305, allocations: 47.55 kB / 294.6 MB, free: 31.75 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.339e-05/0.1306, allocations: 47.61 kB / 294.7 MB, free: 31.73 MB / 266.7 MB Notification: Performance of SimCode: time 8.52e-07/0.1306, allocations: 0 / 294.7 MB, free: 31.73 MB / 266.7 MB Notification: Performance of Templates: time 0.01147/0.1421, allocations: 11.56 MB / 306.2 MB, free: 25.5 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/CoupledClutches/CoupledClutches.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.0360978301614523]