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.001719/0.001719, allocations: 86.09 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001494/0.001494, allocations: 158.3 kB / 23.95 MB, free: 4.168 MB / 14.72 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.456/1.456, allocations: 177 MB / 204.1 MB, free: 9.145 MB / 190.1 MB " [Timeout remaining time 178] 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.543e-06/1.543e-06, allocations: 0 / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.246e-05/2.401e-05, allocations: 6.219 kB / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003584/0.003608, allocations: 2.201 MB / 327.2 MB, free: 15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.005361, allocations: 0.8311 MB / 328 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001182/0.00548, allocations: 2.969 kB / 328 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002766/0.005756, allocations: 53.17 kB / 328.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003464/0.006103, allocations: 118.7 kB / 328.2 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002717/0.006374, allocations: 87.61 kB / 328.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000427/0.006801, allocations: 303.5 kB / 328.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000144/0.006945, allocations: 38.34 kB / 328.6 MB, free: 14.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000371/0.007316, allocations: 181.6 kB / 328.8 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002291/0.007545, allocations: 105.1 kB / 328.9 MB, free: 14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.9e-05/0.007594, allocations: 21.66 kB / 328.9 MB, free: 14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001736/0.007768, allocations: 78.39 kB / 329 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001071/0.007875, allocations: 66.48 kB / 329.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001421/0.008017, allocations: 80.11 kB / 329.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005085/0.008526, allocations: 333.3 kB / 329.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.8e-06/0.008531, allocations: 4 kB / 329.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.008533, allocations: 1.5 kB / 329.5 MB, free: 13.77 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.26e-06/0.008538, allocations: 0 / 329.5 MB, free: 13.77 MB / 302.1 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.001141/0.009679, allocations: 0.5068 MB / 330 MB, free: 13.36 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.009715, allocations: 17.42 kB / 330 MB, free: 13.35 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/0.009903, allocations: 38.34 kB / 330 MB, free: 13.34 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003696/0.01027, allocations: 192.7 kB / 330.2 MB, free: 13.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.073e-05/0.0103, allocations: 16.31 kB / 330.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.887e-05/0.01035, allocations: 18.28 kB / 330.2 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005218/0.01087, allocations: 229.8 kB / 330.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.7e-05/0.01089, allocations: 1.375 kB / 330.5 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.593e-05/0.01092, allocations: 5.438 kB / 330.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.646e-06/0.01093, allocations: 12.84 kB / 330.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005146/0.01144, allocations: 179.5 kB / 330.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001001/0.01244, allocations: 0.5345 MB / 331.2 MB, free: 12.47 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006106/0.01305, allocations: 196.7 kB / 331.4 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000256/0.01331, allocations: 99.39 kB / 331.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.269e-05/0.01333, allocations: 2.438 kB / 331.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003888/0.01372, allocations: 161 kB / 331.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.663e-06/0.01372, allocations: 0 / 331.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of matching and sorting (n=27): time 0.002542/0.01626, allocations: 0.9369 MB / 332.6 MB, free: 11.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.984e-05/0.01631, allocations: 55.28 kB / 332.6 MB, free: 11.53 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/0.01654, allocations: 207 kB / 332.8 MB, free: 11.37 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.624e-05/0.01658, allocations: 36.94 kB / 332.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.01668, allocations: 137.3 kB / 333 MB, free: 11.2 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.418e-05/0.01678, allocations: 94.23 kB / 333.1 MB, free: 11.12 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001102/0.01689, allocations: 59.84 kB / 333.2 MB, free: 11.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001636/0.01705, allocations: 332.5 kB / 333.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002967/0.01735, allocations: 127.2 kB / 333.6 MB, free: 10.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003226/0.01767, allocations: 165.5 kB / 333.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000536/0.01821, allocations: 246.4 kB / 334 MB, free: 10.39 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.01821, allocations: 0 / 334 MB, free: 10.39 MB / 302.1 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008899/0.0191, allocations: 413.4 kB / 334.4 MB, free: 10.14 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.55e-05/0.01913, allocations: 35.23 kB / 334.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.121e-06/0.01914, allocations: 1.281 kB / 334.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002068/0.01935, allocations: 55.92 kB / 334.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.01956, allocations: 51.53 kB / 334.6 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001956/0.02152, allocations: 1.67 MB / 336.2 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002725/0.02179, allocations: 35.05 kB / 336.3 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.636e-05/0.02181, allocations: 10.81 kB / 336.3 MB, free: 8.465 MB / 302.1 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.0001644/0.02198, allocations: 147.8 kB / 336.4 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.592e-05/0.02202, allocations: 21.48 kB / 336.4 MB, free: 8.312 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.72e-05/0.0221, allocations: 31.73 kB / 336.5 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.0221, allocations: 6.594 kB / 336.5 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.334e-06/0.02211, allocations: 0 / 336.5 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.02211, allocations: 1.594 kB / 336.5 MB, free: 8.281 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001157/0.02327, allocations: 0.5948 MB / 337.1 MB, free: 7.828 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.779e-06/0.02327, allocations: 3.938 kB / 337.1 MB, free: 7.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002314/0.02351, allocations: 47.97 kB / 337.1 MB, free: 7.809 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001452/0.02365, allocations: 57.73 kB / 337.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.357e-05/0.02367, allocations: 6.25 kB / 337.2 MB, free: 7.77 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001665/0.02534, allocations: 1.509 MB / 338.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.02534, allocations: 0 / 338.7 MB, free: 6.363 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001074/0.02641, allocations: 0.5072 MB / 339.2 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.238e-05/0.02651, allocations: 36.16 kB / 339.2 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.524e-05/0.02655, allocations: 14.52 kB / 339.3 MB, free: 5.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002549/0.02681, allocations: 24.12 kB / 339.3 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001803/0.02699, allocations: 79.2 kB / 339.4 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.963e-05/0.02701, allocations: 5.469 kB / 339.4 MB, free: 5.934 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001502/0.02716, allocations: 154.1 kB / 339.5 MB, free: 5.82 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.02716, allocations: 0 / 339.5 MB, free: 5.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004125/0.02757, allocations: 78.83 kB / 339.6 MB, free: 5.805 MB / 302.1 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.001403/0.02897, allocations: 380.9 kB / 340 MB, free: 5.598 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009337/0.02991, allocations: 458.3 kB / 340.4 MB, free: 5.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.02991, allocations: 0 / 340.4 MB, free: 5.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004919/0.0304, allocations: 258.7 kB / 340.7 MB, free: 4.895 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004324/0.03083, allocations: 63 kB / 340.7 MB, free: 4.836 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00122/0.03205, allocations: 0.5625 MB / 341.3 MB, free: 4.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001421/0.03219, allocations: 146.1 kB / 341.4 MB, free: 4.094 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001134/0.03231, allocations: 21.95 kB / 341.4 MB, free: 4.066 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.79e-05/0.03238, allocations: 24.48 kB / 341.5 MB, free: 4.043 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.03239, allocations: 4 kB / 341.5 MB, free: 4.039 MB / 302.1 MB Notification: Performance of Templates: time 0.009605/0.04199, allocations: 4.512 MB / 346 MB, free: 15.57 MB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.396813068538904]