Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.0009108/0.0009108, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001326/0.002237, allocations: 457.8 kB / 10.45 MB, free: 244 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.0008833/0.0008833, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001231/0.002114, allocations: 475.6 kB / 11.82 MB, free: 2.348 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 0.9542/0.9542, allocations: 177.5 MB / 190 MB, free: 4.809 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08076/1.035, allocations: 53.87 MB / 243.9 MB, free: 14.86 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.OneWayClutchDisengaged,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.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,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.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.963e-06/1.963e-06, allocations: 0 / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.354e-05/1.55e-05, allocations: 6.312 kB / 245.2 MB, free: 13.59 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.003576/0.003592, allocations: 2.397 MB / 247.6 MB, free: 11.17 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001593/0.005185, allocations: 0.868 MB / 248.5 MB, free: 10.3 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001256/0.005311, allocations: 4 kB / 248.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001938/0.005504, allocations: 55.45 kB / 248.5 MB, free: 10.24 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002717/0.005776, allocations: 115.1 kB / 248.6 MB, free: 10.12 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002041/0.00598, allocations: 83.75 kB / 248.7 MB, free: 10.04 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003257/0.006306, allocations: 283.3 kB / 249 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001298/0.006436, allocations: 54.52 kB / 249 MB, free: 9.715 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003327/0.006768, allocations: 195.6 kB / 249.2 MB, free: 9.523 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001977/0.006966, allocations: 95.77 kB / 249.3 MB, free: 9.43 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.15e-05/0.007008, allocations: 20 kB / 249.4 MB, free: 9.41 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001819/0.007189, allocations: 75.86 kB / 249.4 MB, free: 9.336 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.966e-05/0.007259, allocations: 43.8 kB / 249.5 MB, free: 9.293 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.242e-05/0.007342, allocations: 67.88 kB / 249.5 MB, free: 9.227 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003468/0.007688, allocations: 223.2 kB / 249.8 MB, free: 9.008 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.194e-05/0.0077, allocations: 0 / 249.8 MB, free: 9.008 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.007701, allocations: 0 / 249.8 MB, free: 9.008 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.007713, allocations: 0 / 249.8 MB, free: 9.008 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0007603/0.008473, allocations: 499.5 kB / 250.2 MB, free: 8.492 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.008508, allocations: 8.625 kB / 250.2 MB, free: 8.484 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001944/0.008702, allocations: 118 kB / 250.4 MB, free: 8.352 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002879/0.00899, allocations: 186.1 kB / 250.5 MB, free: 8.141 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.819e-05/0.009018, allocations: 12.75 kB / 250.6 MB, free: 8.129 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.638e-05/0.009064, allocations: 24.36 kB / 250.6 MB, free: 8.105 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002691/0.009333, allocations: 167.2 kB / 250.7 MB, free: 7.93 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.726e-05/0.009351, allocations: 4.141 kB / 250.7 MB, free: 7.926 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.151e-05/0.009372, allocations: 12.38 kB / 250.8 MB, free: 7.914 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.009382, allocations: 7.938 kB / 250.8 MB, free: 7.906 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001464/0.009529, allocations: 71 kB / 250.8 MB, free: 7.84 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008136/0.01034, allocations: 0.4911 MB / 251.3 MB, free: 7.324 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002336/0.01058, allocations: 90.52 kB / 251.4 MB, free: 7.227 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.186e-05/0.01064, allocations: 36.78 kB / 251.5 MB, free: 7.188 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.88e-05/0.01066, allocations: 4 kB / 251.5 MB, free: 7.184 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.01068, allocations: 38.55 kB / 251.5 MB, free: 7.137 MB / 250.7 MB Notification: Performance of pre-optimization done (n=19): time 1.573e-06/0.01068, allocations: 0 / 251.5 MB, free: 7.137 MB / 250.7 MB Notification: Performance of matching and sorting (n=21): time 0.001191/0.01187, allocations: 0.5654 MB / 252.1 MB, free: 6.516 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.485e-05/0.01191, allocations: 55.41 kB / 252.1 MB, free: 6.449 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001784/0.01209, allocations: 196.9 kB / 252.3 MB, free: 6.242 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.309e-05/0.01211, allocations: 29.7 kB / 252.3 MB, free: 6.207 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.253e-05/0.01218, allocations: 136.3 kB / 252.5 MB, free: 6.07 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.31e-05/0.01225, allocations: 79.34 kB / 252.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.561e-05/0.01232, allocations: 49.69 kB / 252.6 MB, free: 5.938 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.679e-05/0.01242, allocations: 334.8 kB / 252.9 MB, free: 5.602 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.286e-05/0.01248, allocations: 20 kB / 252.9 MB, free: 5.582 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.934e-05/0.01257, allocations: 71.38 kB / 253 MB, free: 5.5 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001561/0.01273, allocations: 103.9 kB / 253.1 MB, free: 5.387 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.01273, allocations: 0 / 253.1 MB, free: 5.387 MB / 250.7 MB Notification: Performance of matching and sorting (n=31) (initialization): time 0.0002729/0.013, allocations: 166.3 kB / 253.3 MB, free: 5.215 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.01302, allocations: 4 kB / 253.3 MB, free: 5.211 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.01302, allocations: 0 / 253.3 MB, free: 5.211 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001674/0.01319, allocations: 44.77 kB / 253.3 MB, free: 5.164 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001446/0.01334, allocations: 39.92 kB / 253.4 MB, free: 5.125 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001264/0.0146, allocations: 1.477 MB / 254.8 MB, free: 3.559 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001277/0.01473, allocations: 23.92 kB / 254.9 MB, free: 3.535 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.778e-05/0.01475, allocations: 8.156 kB / 254.9 MB, free: 3.527 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 24 * 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 {(1,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0001018/0.01485, allocations: 128 kB / 255 MB, free: 3.395 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.661e-05/0.01489, allocations: 19.92 kB / 255 MB, free: 3.375 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.24e-05/0.01494, allocations: 29.95 kB / 255 MB, free: 3.348 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.547e-06/0.01494, allocations: 4 kB / 255 MB, free: 3.344 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.124e-06/0.01494, allocations: 0 / 255 MB, free: 3.344 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.01495, allocations: 0 / 255 MB, free: 3.344 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005572/0.0155, allocations: 372.5 kB / 255.4 MB, free: 2.945 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.01551, allocations: 0 / 255.4 MB, free: 2.945 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001632/0.01567, allocations: 39.98 kB / 255.4 MB, free: 2.906 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.104e-05/0.01574, allocations: 27.88 kB / 255.5 MB, free: 2.879 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001127/0.01585, allocations: 36.83 kB / 255.5 MB, free: 2.84 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.736e-05/0.01587, allocations: 8 kB / 255.5 MB, free: 2.832 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001041/0.01691, allocations: 1.315 MB / 256.8 MB, free: 1.434 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.01691, allocations: 7.969 kB / 256.8 MB, free: 1.426 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003519/0.01727, allocations: 286.5 kB / 257.1 MB, free: 1.121 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.31e-05/0.0173, allocations: 11.98 kB / 257.1 MB, free: 1.109 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001275/0.01743, allocations: 11.94 kB / 257.1 MB, free: 1.098 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001289/0.01756, allocations: 63.81 kB / 257.2 MB, free: 1.035 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.143e-05/0.01757, allocations: 4 kB / 257.2 MB, free: 1.031 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.518e-05/0.01764, allocations: 60.62 kB / 257.3 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.01764, allocations: 0 / 257.3 MB, free: 0.9688 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003556/0.018, allocations: 79.92 kB / 257.4 MB, free: 0.8906 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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 {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001347/0.01934, allocations: 470.1 kB / 257.8 MB, free: 0.6133 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004044/0.01975, allocations: 250.3 kB / 258.1 MB, free: 364 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/0.01976, allocations: 0 / 258.1 MB, free: 364 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002583/0.02002, allocations: 207.2 kB / 258.3 MB, free: 140 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004485/0.02047, allocations: 353 kB / 258.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002364/0.02283, allocations: 0.499 MB / 259.1 MB, free: 15.2 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.294e-05/0.02288, allocations: 92.33 kB / 259.2 MB, free: 15.09 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.091e-05/0.02294, allocations: 22.08 kB / 259.2 MB, free: 15.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.178e-05/0.02304, allocations: 91.34 kB / 259.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of SimCode: time 7.71e-07/0.02304, allocations: 0 / 259.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of Templates: time 0.006124/0.02916, allocations: 4.231 MB / 263.5 MB, free: 10.8 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5503574199974537]