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.001369/0.001369, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.001555/0.001555, allocations: 164.8 kB / 25.75 MB, free: 8.582 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.8803/0.8803, allocations: 158.6 MB / 187.6 MB, free: 2.895 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 1.573e-06/1.573e-06, allocations: 0 / 251.1 MB, free: 7.91 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.667e-05/2.824e-05, allocations: 2.312 kB / 251.1 MB, free: 7.906 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.004588/0.004616, allocations: 3.096 MB / 254.2 MB, free: 4.793 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.002196/0.006811, allocations: 1.076 MB / 255.3 MB, free: 3.707 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002706/0.007082, allocations: 7.938 kB / 255.3 MB, free: 3.699 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002901/0.007372, allocations: 67.31 kB / 255.3 MB, free: 3.633 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004186/0.007791, allocations: 178.5 kB / 255.5 MB, free: 3.457 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.00884, allocations: 287.4 kB / 255.8 MB, free: 3.176 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006579/0.009498, allocations: 0.8188 MB / 256.6 MB, free: 2.352 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001844/0.009683, allocations: 89.56 kB / 256.7 MB, free: 2.258 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004762/0.01016, allocations: 495 kB / 257.2 MB, free: 1.77 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003137/0.01047, allocations: 319.3 kB / 257.5 MB, free: 1.457 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 6.871e-05/0.01054, allocations: 60 kB / 257.5 MB, free: 1.398 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001576/0.0107, allocations: 112 kB / 257.7 MB, free: 1.289 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.01082, allocations: 159.4 kB / 257.8 MB, free: 1.133 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001586/0.01098, allocations: 219.5 kB / 258 MB, free: 0.918 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005222/0.0115, allocations: 0.5801 MB / 258.6 MB, free: 344 kB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.0115, allocations: 0 / 258.6 MB, free: 344 kB / 234.7 MB Notification: Performance of FrontEnd: time 1.192e-06/0.0115, allocations: 0 / 258.6 MB, free: 344 kB / 234.7 MB Notification: Performance of Transformations before backend: time 7.224e-06/0.01151, allocations: 0 / 258.6 MB, free: 344 kB / 234.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.001008/0.01252, allocations: 0.8853 MB / 259.5 MB, free: 15.41 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.01256, allocations: 11.98 kB / 259.5 MB, free: 15.4 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.01269, allocations: 96.56 kB / 259.6 MB, free: 15.31 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003379/0.01303, allocations: 320.1 kB / 259.9 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.247e-05/0.01306, allocations: 29.38 kB / 259.9 MB, free: 14.94 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.901e-05/0.01313, allocations: 52.36 kB / 260 MB, free: 14.89 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006759/0.01381, allocations: 0.532 MB / 260.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.01383, allocations: 8.078 kB / 260.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.181e-05/0.01387, allocations: 24.11 kB / 260.6 MB, free: 14.31 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.201e-05/0.01388, allocations: 12 kB / 260.6 MB, free: 14.3 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005447/0.01442, allocations: 397.7 kB / 261 MB, free: 13.91 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001309/0.01573, allocations: 1.117 MB / 262.1 MB, free: 12.75 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005633/0.0163, allocations: 354 kB / 262.4 MB, free: 12.39 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000257/0.01655, allocations: 201.1 kB / 262.6 MB, free: 12.19 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.805e-05/0.01659, allocations: 8.5 kB / 262.6 MB, free: 12.18 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.01662, allocations: 45.88 kB / 262.7 MB, free: 12.12 MB / 250.7 MB Notification: Performance of pre-optimization done (n=58): time 1.854e-06/0.01662, allocations: 0 / 262.7 MB, free: 12.12 MB / 250.7 MB Notification: Performance of matching and sorting (n=64): time 0.003001/0.01962, allocations: 2.017 MB / 264.7 MB, free: 10.05 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.041e-05/0.01965, allocations: 60.06 kB / 264.7 MB, free: 9.98 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.01988, allocations: 362.2 kB / 265.1 MB, free: 9.609 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.562e-05/0.01992, allocations: 49.69 kB / 265.1 MB, free: 9.555 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.02003, allocations: 248.2 kB / 265.4 MB, free: 9.309 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.02016, allocations: 226.2 kB / 265.6 MB, free: 9.086 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001531/0.02031, allocations: 140.2 kB / 265.7 MB, free: 8.941 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001268/0.02044, allocations: 0.5196 MB / 266.3 MB, free: 8.41 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003036/0.02074, allocations: 213.9 kB / 266.5 MB, free: 8.199 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003076/0.02105, allocations: 289.5 kB / 266.8 MB, free: 7.906 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004408/0.02149, allocations: 371.4 kB / 267.1 MB, free: 7.531 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.02149, allocations: 4 kB / 267.1 MB, free: 7.527 MB / 250.7 MB Notification: Performance of matching and sorting (n=85) (initialization): time 0.000899/0.02239, allocations: 0.7153 MB / 267.8 MB, free: 6.801 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.02241, allocations: 8 kB / 267.8 MB, free: 6.793 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.02241, allocations: 0 / 267.8 MB, free: 6.793 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007543/0.02317, allocations: 0.628 MB / 268.5 MB, free: 6.16 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002273/0.0234, allocations: 103.8 kB / 268.6 MB, free: 6.059 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008627/0.02426, allocations: 1.163 MB / 269.7 MB, free: 4.863 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002677/0.02453, allocations: 75.91 kB / 269.8 MB, free: 4.789 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.507e-05/0.02456, allocations: 23.98 kB / 269.8 MB, free: 4.766 MB / 250.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.0001632/0.02472, allocations: 194.6 kB / 270 MB, free: 4.562 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.668e-05/0.02482, allocations: 79.59 kB / 270.1 MB, free: 4.484 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.085e-05/0.0249, allocations: 68.75 kB / 270.2 MB, free: 4.414 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.02491, allocations: 4 kB / 270.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.02491, allocations: 0 / 270.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.841e-06/0.02492, allocations: 7.984 kB / 270.2 MB, free: 4.402 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001505/0.02642, allocations: 1.24 MB / 271.4 MB, free: 3.113 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.915e-06/0.02643, allocations: 0 / 271.4 MB, free: 3.113 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000239/0.02667, allocations: 83.89 kB / 271.5 MB, free: 3.031 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006908/0.02736, allocations: 0.6279 MB / 272.1 MB, free: 2.398 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.226e-05/0.0274, allocations: 27.95 kB / 272.2 MB, free: 2.371 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008429/0.02824, allocations: 1.171 MB / 273.3 MB, free: 1.168 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.02824, allocations: 0 / 273.3 MB, free: 1.168 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.02954, allocations: 1.057 MB / 274.4 MB, free: 88 kB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001913/0.02973, allocations: 115.7 kB / 274.5 MB, free: 15.97 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.024e-05/0.0298, allocations: 23.98 kB / 274.5 MB, free: 15.95 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002475/0.03005, allocations: 71.91 kB / 274.6 MB, free: 15.88 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000196/0.03024, allocations: 140.3 kB / 274.7 MB, free: 15.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.613e-05/0.03028, allocations: 31.95 kB / 274.8 MB, free: 15.71 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001426/0.03042, allocations: 243 kB / 275 MB, free: 15.47 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.03042, allocations: 0 / 275 MB, free: 15.47 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003837/0.0308, allocations: 156 kB / 275.2 MB, free: 15.32 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.0002217/0.03103, allocations: 157.8 kB / 275.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008487/0.03188, allocations: 0.5786 MB / 275.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.03188, allocations: 0 / 275.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004524/0.03233, allocations: 351.1 kB / 276.2 MB, free: 14.24 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004395/0.03277, allocations: 125.7 kB / 276.3 MB, free: 14.12 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001858/0.03463, allocations: 1.186 MB / 277.5 MB, free: 12.91 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.359e-05/0.03471, allocations: 138.6 kB / 277.7 MB, free: 12.75 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001395/0.03485, allocations: 43.47 kB / 277.7 MB, free: 12.71 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.03495, allocations: 40.48 kB / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of SimCode: time 1.193e-06/0.03495, allocations: 0 / 277.8 MB, free: 12.66 MB / 266.7 MB Notification: Performance of Templates: time 0.01226/0.04722, allocations: 11.55 MB / 289.3 MB, free: 1.137 MB / 266.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=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] 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","",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.1210182141512632]