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.0009595/0.0009595, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 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.0008796/0.0008796, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 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.9547/0.9547, allocations: 177 MB / 204.8 MB, free: 5.586 MB / 186.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.312e-06/1.312e-06, allocations: 0 / 272.9 MB, free: 1.48 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.147e-05/2.278e-05, allocations: 6.25 kB / 272.9 MB, free: 1.473 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002682/0.002705, allocations: 2.316 MB / 275.2 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001362/0.004067, allocations: 0.8528 MB / 276.1 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001186/0.004186, allocations: 7.938 kB / 276.1 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002429/0.004429, allocations: 51.52 kB / 276.1 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000262/0.004691, allocations: 107.2 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002106/0.004902, allocations: 91.75 kB / 276.3 MB, free: 14.03 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002786/0.00518, allocations: 299.3 kB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00013/0.00531, allocations: 44.48 kB / 276.7 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003854/0.005696, allocations: 191.6 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001634/0.005859, allocations: 103.7 kB / 276.9 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.919e-05/0.005948, allocations: 20 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001186/0.006067, allocations: 83.86 kB / 277 MB, free: 13.3 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.104e-05/0.006128, allocations: 55.81 kB / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.323e-05/0.006201, allocations: 87.75 kB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002754/0.006476, allocations: 239.2 kB / 277.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.244e-06/0.006479, allocations: 0 / 277.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.71e-07/0.006479, allocations: 7.938 kB / 277.4 MB, free: 12.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.006484, allocations: 0 / 277.4 MB, free: 12.91 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0007576/0.007242, allocations: 0.6063 MB / 278 MB, free: 12.27 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.556e-05/0.007277, allocations: 15.98 kB / 278 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001394/0.007416, allocations: 48.78 kB / 278.1 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002343/0.007651, allocations: 210.2 kB / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.274e-05/0.007674, allocations: 12.38 kB / 278.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.264e-05/0.007706, allocations: 24.38 kB / 278.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002663/0.007972, allocations: 185.4 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.007987, allocations: 4.172 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.633e-05/0.008003, allocations: 8.375 kB / 278.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.054e-05/0.008014, allocations: 7.938 kB / 278.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001491/0.008163, allocations: 87.92 kB / 278.6 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006357/0.008799, allocations: 0.6114 MB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002607/0.009059, allocations: 141.6 kB / 279.4 MB, free: 10.83 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.527e-05/0.009135, allocations: 51.67 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.72e-05/0.009152, allocations: 4 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002977/0.00945, allocations: 132.9 kB / 279.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.624e-06/0.009451, allocations: 0 / 279.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.001068/0.01052, allocations: 0.7349 MB / 280.3 MB, free: 9.828 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.979e-05/0.01055, allocations: 59.39 kB / 280.3 MB, free: 9.758 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001436/0.01069, allocations: 246.7 kB / 280.6 MB, free: 9.5 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.01071, allocations: 33.69 kB / 280.6 MB, free: 9.461 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.494e-05/0.01079, allocations: 179.3 kB / 280.8 MB, free: 9.281 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.836e-05/0.01084, allocations: 91.2 kB / 280.9 MB, free: 9.191 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.032e-05/0.01092, allocations: 71.3 kB / 281 MB, free: 9.113 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.01106, allocations: 0.504 MB / 281.5 MB, free: 8.598 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.01117, allocations: 81.36 kB / 281.5 MB, free: 8.512 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001209/0.01129, allocations: 136.4 kB / 281.7 MB, free: 8.355 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.01148, allocations: 169.4 kB / 281.8 MB, free: 8.168 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.01148, allocations: 4 kB / 281.8 MB, free: 8.164 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0004032/0.01188, allocations: 326.2 kB / 282.2 MB, free: 7.824 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.037e-05/0.01191, allocations: 33.7 kB / 282.2 MB, free: 7.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.189e-06/0.01192, allocations: 0 / 282.2 MB, free: 7.785 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001678/0.01209, allocations: 51.66 kB / 282.2 MB, free: 7.73 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001174/0.0122, allocations: 47.91 kB / 282.3 MB, free: 7.684 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001378/0.01358, allocations: 2.145 MB / 284.4 MB, free: 5.418 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001139/0.0137, allocations: 19.98 kB / 284.5 MB, free: 5.398 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.804e-05/0.01371, allocations: 12 kB / 284.5 MB, free: 5.387 MB / 266.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 0.0001074/0.01382, allocations: 180.4 kB / 284.6 MB, free: 5.199 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.998e-05/0.01386, allocations: 35.94 kB / 284.7 MB, free: 5.164 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.835e-05/0.01389, allocations: 30.64 kB / 284.7 MB, free: 5.133 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.01389, allocations: 4 kB / 284.7 MB, free: 5.129 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.484e-06/0.01389, allocations: 0 / 284.7 MB, free: 5.129 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.0139, allocations: 3.984 kB / 284.7 MB, free: 5.125 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005324/0.01443, allocations: 0.5599 MB / 285.3 MB, free: 4.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.566e-06/0.01443, allocations: 8 kB / 285.3 MB, free: 4.512 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.01455, allocations: 39.91 kB / 285.3 MB, free: 4.473 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.602e-05/0.01464, allocations: 47.66 kB / 285.4 MB, free: 4.422 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.01465, allocations: 8 kB / 285.4 MB, free: 4.414 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009075/0.01556, allocations: 1.917 MB / 287.3 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.01556, allocations: 0 / 287.3 MB, free: 2.375 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004096/0.01597, allocations: 444.9 kB / 287.7 MB, free: 1.918 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.447e-05/0.01603, allocations: 31.88 kB / 287.8 MB, free: 1.887 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.264e-05/0.01605, allocations: 8 kB / 287.8 MB, free: 1.879 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.839e-05/0.01615, allocations: 23.97 kB / 287.8 MB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.01626, allocations: 71.86 kB / 287.9 MB, free: 1.785 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.22e-05/0.01627, allocations: 4 kB / 287.9 MB, free: 1.781 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.408e-05/0.01636, allocations: 175.1 kB / 288 MB, free: 1.609 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01636, allocations: 0 / 288 MB, free: 1.609 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002561/0.01661, allocations: 72 kB / 288.1 MB, free: 1.539 MB / 266.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.0007258/0.01734, allocations: 361.9 kB / 288.5 MB, free: 1.277 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004672/0.01781, allocations: 439.9 kB / 288.9 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.01781, allocations: 0 / 288.9 MB, free: 0.8086 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002052/0.01801, allocations: 285.2 kB / 289.2 MB, free: 0.5078 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.01828, allocations: 64.05 kB / 289.2 MB, free: 456 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009396/0.01922, allocations: 0.5615 MB / 289.8 MB, free: 15.85 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.232e-05/0.01927, allocations: 84.27 kB / 289.9 MB, free: 15.75 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.776e-05/0.01935, allocations: 37.92 kB / 289.9 MB, free: 15.71 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.667e-05/0.0194, allocations: 24.5 kB / 289.9 MB, free: 15.69 MB / 282.7 MB Notification: Performance of SimCode: time 7.91e-07/0.0194, allocations: 0 / 289.9 MB, free: 15.69 MB / 282.7 MB Notification: Performance of Templates: time 0.007056/0.02646, allocations: 4.888 MB / 294.8 MB, free: 10.85 MB / 282.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 -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.883391936775297]