Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00111/0.00111, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001545/0.002655, allocations: 449.7 kB / 10.37 MB, free: 324 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001116/0.001116, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001499/0.002615, allocations: 463.6 kB / 11.72 MB, free: 2.453 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.021/1.021, allocations: 177.4 MB / 189.9 MB, free: 4.836 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08332/1.105, allocations: 53.87 MB / 243.7 MB, free: 14.91 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.177e-05/1.359e-05, allocations: 2.312 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002355/0.002368, allocations: 2.347 MB / 247.4 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001114/0.003483, allocations: 0.8719 MB / 248.2 MB, free: 10.41 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.003586, allocations: 7.938 kB / 248.2 MB, free: 10.4 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001549/0.003741, allocations: 47.58 kB / 248.3 MB, free: 10.36 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001958/0.003936, allocations: 115.2 kB / 248.4 MB, free: 10.24 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001784/0.004115, allocations: 91.69 kB / 248.5 MB, free: 10.15 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002634/0.004378, allocations: 291.4 kB / 248.8 MB, free: 9.867 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.977e-05/0.004478, allocations: 46.45 kB / 248.8 MB, free: 9.824 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002596/0.004738, allocations: 211.5 kB / 249 MB, free: 9.617 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001527/0.00489, allocations: 103.7 kB / 249.1 MB, free: 9.516 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.138e-05/0.004922, allocations: 24 kB / 249.1 MB, free: 9.492 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001261/0.005048, allocations: 83.86 kB / 249.2 MB, free: 9.41 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.334e-05/0.005101, allocations: 39.81 kB / 249.3 MB, free: 9.371 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.798e-05/0.005169, allocations: 63.88 kB / 249.3 MB, free: 9.309 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002591/0.005428, allocations: 223.2 kB / 249.5 MB, free: 9.09 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.576e-05/0.005444, allocations: 0 / 249.5 MB, free: 9.09 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.005445, allocations: 4 kB / 249.5 MB, free: 9.086 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.551e-05/0.00546, allocations: 0 / 249.5 MB, free: 9.086 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0006856/0.006146, allocations: 0.5319 MB / 250.1 MB, free: 8.523 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.77e-05/0.006174, allocations: 12.03 kB / 250.1 MB, free: 8.512 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001436/0.006317, allocations: 118 kB / 250.2 MB, free: 8.379 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002142/0.006531, allocations: 188.3 kB / 250.4 MB, free: 8.164 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.006552, allocations: 12.38 kB / 250.4 MB, free: 8.152 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.037e-05/0.006582, allocations: 20.38 kB / 250.4 MB, free: 8.133 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002044/0.006787, allocations: 175.5 kB / 250.6 MB, free: 7.949 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.0068, allocations: 4.125 kB / 250.6 MB, free: 7.945 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.459e-05/0.006814, allocations: 8.359 kB / 250.6 MB, free: 7.938 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.006823, allocations: 15.94 kB / 250.6 MB, free: 7.922 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.511e-05/0.006918, allocations: 55.95 kB / 250.7 MB, free: 7.867 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004978/0.007416, allocations: 415.9 kB / 251.1 MB, free: 7.441 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.00761, allocations: 110.5 kB / 251.2 MB, free: 7.324 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.761e-05/0.007657, allocations: 36.84 kB / 251.2 MB, free: 7.285 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.039e-05/0.007678, allocations: 11.98 kB / 251.2 MB, free: 7.273 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001446/0.007822, allocations: 108 kB / 251.3 MB, free: 7.156 MB / 250.7 MB Notification: Performance of pre-optimization done (n=25): time 1.593e-06/0.007824, allocations: 0 / 251.3 MB, free: 7.156 MB / 250.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009019/0.008726, allocations: 0.6298 MB / 252 MB, free: 6.473 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.008759, allocations: 63.39 kB / 252 MB, free: 6.398 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001309/0.00889, allocations: 180.2 kB / 252.2 MB, free: 6.207 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.426e-05/0.008914, allocations: 33.7 kB / 252.2 MB, free: 6.168 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.188e-05/0.008966, allocations: 132.4 kB / 252.4 MB, free: 6.035 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.857e-05/0.009024, allocations: 99.17 kB / 252.5 MB, free: 5.938 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.088e-05/0.009085, allocations: 53.69 kB / 252.5 MB, free: 5.879 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.825e-05/0.009163, allocations: 338.8 kB / 252.9 MB, free: 5.539 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.959e-05/0.009223, allocations: 61.44 kB / 252.9 MB, free: 5.473 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.235e-05/0.009295, allocations: 110 kB / 253 MB, free: 5.348 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001192/0.009415, allocations: 146.6 kB / 253.2 MB, free: 5.188 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.009416, allocations: 0 / 253.2 MB, free: 5.188 MB / 250.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002429/0.009659, allocations: 263.5 kB / 253.4 MB, free: 4.91 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.009689, allocations: 29.7 kB / 253.5 MB, free: 4.875 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.009694, allocations: 0 / 253.5 MB, free: 4.875 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001132/0.009807, allocations: 44.83 kB / 253.5 MB, free: 4.828 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001171/0.009924, allocations: 51.91 kB / 253.5 MB, free: 4.777 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009378/0.01086, allocations: 1.47 MB / 255 MB, free: 3.223 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.01098, allocations: 23.98 kB / 255 MB, free: 3.199 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.444e-05/0.01099, allocations: 12.19 kB / 255 MB, free: 3.188 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 11 (signalEngagement.count,$PRE.signalEngagement.count,signalEngagement.T_start,$PRE.signalEngagement.T_start,oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (31): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 1 * 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 {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 9.209e-05/0.01108, allocations: 136.5 kB / 255.2 MB, free: 3.043 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.713e-05/0.01111, allocations: 23.92 kB / 255.2 MB, free: 3.02 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.298e-05/0.01114, allocations: 34.67 kB / 255.2 MB, free: 2.984 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.01115, allocations: 4 kB / 255.2 MB, free: 2.98 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.01115, allocations: 0 / 255.2 MB, free: 2.98 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.01115, allocations: 0 / 255.2 MB, free: 2.98 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004083/0.01156, allocations: 388.2 kB / 255.6 MB, free: 2.574 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.01156, allocations: 0 / 255.6 MB, free: 2.574 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001217/0.01169, allocations: 47.91 kB / 255.7 MB, free: 2.527 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.613e-05/0.01173, allocations: 27.83 kB / 255.7 MB, free: 2.5 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.711e-05/0.01181, allocations: 44.78 kB / 255.7 MB, free: 2.453 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.418e-05/0.01182, allocations: 7.984 kB / 255.7 MB, free: 2.445 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007003/0.01252, allocations: 1.307 MB / 257.1 MB, free: 1.055 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01252, allocations: 4 kB / 257.1 MB, free: 1.051 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002701/0.01279, allocations: 309.1 kB / 257.4 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.303e-05/0.01282, allocations: 11.92 kB / 257.4 MB, free: 0.7188 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.591e-05/0.01291, allocations: 23.92 kB / 257.4 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.01302, allocations: 67.86 kB / 257.5 MB, free: 0.6289 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.223e-05/0.01303, allocations: 15.98 kB / 257.5 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.934e-05/0.01308, allocations: 51.64 kB / 257.5 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01308, allocations: 4 kB / 257.5 MB, free: 0.5547 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002487/0.01333, allocations: 68 kB / 257.6 MB, free: 500 kB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (inertiaOut.phi,inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel) * Number of discrete variables: 7 ($whenCondition1,oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck,oneWayClutch.free,signalEngagement.T_start,signalEngagement.count) * Number of discrete states: 3 (signalEngagement.count,oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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 {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001097/0.01442, allocations: 486.8 kB / 258.1 MB, free: 208 kB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003747/0.0148, allocations: 357.9 kB / 258.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.01e-05/0.01481, allocations: 4 kB / 258.4 MB, free: 15.82 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000172/0.01498, allocations: 215.7 kB / 258.6 MB, free: 15.59 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.01521, allocations: 78.86 kB / 258.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002268/0.01747, allocations: 0.4954 MB / 259.2 MB, free: 14.99 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.343e-05/0.01753, allocations: 88.31 kB / 259.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.959e-05/0.01761, allocations: 22.05 kB / 259.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001127/0.01772, allocations: 91.34 kB / 259.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of SimCode: time 8.21e-07/0.01772, allocations: 0 / 259.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of Templates: time 0.006511/0.02423, allocations: 4.95 MB / 264.4 MB, free: 9.875 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.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.769115590490401]