Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.00074/0.00074, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009985/0.001739, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0006951/0.0006951, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0008586/0.001554, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.008/1.008, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08446/1.093, allocations: 53.65 MB / 243.3 MB, free: 15.58 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.796e-05/1.934e-05, allocations: 9.203 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.CoupledClutches): time 0.002865/0.002884, allocations: 3.243 MB / 247.8 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001613/0.004497, allocations: 1.266 MB / 249 MB, free: 9.773 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001696/0.004666, allocations: 11.94 kB / 249 MB, free: 9.762 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002118/0.004878, allocations: 99.08 kB / 249.1 MB, free: 9.664 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003194/0.005197, allocations: 230.2 kB / 249.4 MB, free: 9.438 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004076/0.005605, allocations: 287.4 kB / 249.6 MB, free: 9.156 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005857/0.006191, allocations: 0.8463 MB / 250.5 MB, free: 8.305 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.006347, allocations: 106.1 kB / 250.6 MB, free: 8.199 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005772/0.006924, allocations: 0.5683 MB / 251.2 MB, free: 7.633 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000329/0.007253, allocations: 339.2 kB / 251.5 MB, free: 7.301 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.141e-05/0.007324, allocations: 64 kB / 251.6 MB, free: 7.238 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001828/0.007507, allocations: 119.9 kB / 251.7 MB, free: 7.121 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001264/0.007633, allocations: 131.6 kB / 251.8 MB, free: 6.992 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001461/0.007779, allocations: 171.6 kB / 252 MB, free: 6.824 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004646/0.008244, allocations: 0.5372 MB / 252.5 MB, free: 6.285 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.371e-05/0.008258, allocations: 3.984 kB / 252.5 MB, free: 6.281 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.008259, allocations: 0 / 252.5 MB, free: 6.281 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.008275, allocations: 0 / 252.5 MB, free: 6.281 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 112 * Number of variables: 112 Notification: Performance of Generate backend data structure: time 0.001006/0.009281, allocations: 0.947 MB / 253.5 MB, free: 5.305 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.031e-05/0.009312, allocations: 12.03 kB / 253.5 MB, free: 5.293 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002427/0.009554, allocations: 166 kB / 253.6 MB, free: 5.113 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003235/0.009878, allocations: 296.5 kB / 253.9 MB, free: 4.797 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/0.009912, allocations: 41.31 kB / 254 MB, free: 4.754 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.987e-05/0.009972, allocations: 52.33 kB / 254 MB, free: 4.703 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004657/0.01044, allocations: 462.3 kB / 254.5 MB, free: 4.238 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.01046, allocations: 12.11 kB / 254.5 MB, free: 4.227 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.317e-05/0.01049, allocations: 20.12 kB / 254.5 MB, free: 4.207 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.418e-06/0.0105, allocations: 12 kB / 254.5 MB, free: 4.195 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003357/0.01083, allocations: 254.7 kB / 254.8 MB, free: 3.945 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001131/0.01197, allocations: 0.8058 MB / 255.6 MB, free: 3.117 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004311/0.0124, allocations: 294.2 kB / 255.9 MB, free: 2.812 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001533/0.01255, allocations: 138.8 kB / 256 MB, free: 2.676 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.188e-05/0.01259, allocations: 16.66 kB / 256 MB, free: 2.66 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.332e-05/0.01262, allocations: 43.16 kB / 256 MB, free: 2.609 MB / 250.7 MB Notification: Performance of pre-optimization done (n=67): time 1.954e-06/0.01262, allocations: 0 / 256 MB, free: 2.609 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.002368/0.01499, allocations: 1.623 MB / 257.7 MB, free: 0.9414 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.878e-05/0.01501, allocations: 64.05 kB / 257.7 MB, free: 0.8672 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001891/0.0152, allocations: 313 kB / 258 MB, free: 0.5508 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.674e-05/0.01525, allocations: 49.7 kB / 258.1 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.677e-05/0.01532, allocations: 174.2 kB / 258.3 MB, free: 328 kB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.01545, allocations: 265.7 kB / 258.5 MB, free: 60 kB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.01559, allocations: 134.5 kB / 258.6 MB, free: 15.92 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.337e-05/0.01568, allocations: 374.6 kB / 259 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.01584, allocations: 114 kB / 259.1 MB, free: 15.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001688/0.01601, allocations: 185.4 kB / 259.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000267/0.01628, allocations: 291.7 kB / 259.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.01628, allocations: 8 kB / 259.6 MB, free: 14.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.0005908/0.01687, allocations: 496 kB / 260.1 MB, free: 14.45 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.01688, allocations: 8 kB / 260.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.01689, allocations: 0 / 260.1 MB, free: 14.44 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005371/0.01743, allocations: 400.5 kB / 260.5 MB, free: 14.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001966/0.01762, allocations: 103.8 kB / 260.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006876/0.01831, allocations: 0.7826 MB / 261.4 MB, free: 13.13 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003402/0.01865, allocations: 67.92 kB / 261.4 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.886e-05/0.0187, allocations: 23.97 kB / 261.5 MB, free: 13.04 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 (61): * Single equations (assignments): 60 * 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,28)} Notification: Performance of prepare postOptimizeDAE: time 0.0001689/0.01887, allocations: 162.5 kB / 261.6 MB, free: 12.87 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001148/0.01898, allocations: 59.94 kB / 261.7 MB, free: 12.81 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.01909, allocations: 72.98 kB / 261.7 MB, free: 12.74 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.0191, allocations: 8 kB / 261.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.0191, allocations: 3.938 kB / 261.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.01911, allocations: 3.984 kB / 261.8 MB, free: 12.73 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001208/0.02031, allocations: 0.8108 MB / 262.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.02032, allocations: 0 / 262.6 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002364/0.02055, allocations: 99.88 kB / 262.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001317/0.02069, allocations: 79.66 kB / 262.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005065/0.02119, allocations: 388.5 kB / 263.1 MB, free: 11.33 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.686e-05/0.02123, allocations: 35.89 kB / 263.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005545/0.02178, allocations: 0.774 MB / 263.9 MB, free: 10.49 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.02179, allocations: 7.938 kB / 263.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007602/0.02255, allocations: 0.7126 MB / 264.7 MB, free: 9.75 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.026e-05/0.02262, allocations: 23.94 kB / 264.7 MB, free: 9.727 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002232/0.02284, allocations: 75.92 kB / 264.8 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.023, allocations: 140.4 kB / 264.9 MB, free: 9.516 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-05/0.02303, allocations: 23.97 kB / 264.9 MB, free: 9.492 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.772e-05/0.02312, allocations: 124.7 kB / 265 MB, free: 9.367 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02312, allocations: 0 / 265 MB, free: 9.367 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002863/0.02341, allocations: 167.9 kB / 265.2 MB, free: 9.203 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,28)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001006/0.02442, allocations: 0.4979 MB / 265.7 MB, free: 8.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005361/0.02495, allocations: 438.1 kB / 266.1 MB, free: 8.504 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.269e-05/0.02496, allocations: 8 kB / 266.1 MB, free: 8.496 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003117/0.02528, allocations: 283 kB / 266.4 MB, free: 8.215 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003928/0.02567, allocations: 213.3 kB / 266.6 MB, free: 8.004 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004037/0.02971, allocations: 1.025 MB / 267.6 MB, free: 6.945 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.477e-05/0.02978, allocations: 138.8 kB / 267.8 MB, free: 6.793 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001167/0.0299, allocations: 48.39 kB / 267.8 MB, free: 6.746 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002119/0.03011, allocations: 149.3 kB / 268 MB, free: 6.602 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.03011, allocations: 0 / 268 MB, free: 6.602 MB / 266.7 MB Notification: Performance of Templates: time 0.1074/0.1375, allocations: 12.91 MB / 280.9 MB, free: 22.68 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.CoupledClutches_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 2.909658057615161]