Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.001401/0.001401, allocations: 78.66 kB / 21.42 MB, free: 3.074 MB / 18.57 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.001811/0.001811, allocations: 170.3 kB / 24.82 MB, free: 9.266 MB / 18.57 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.026/1.026, allocations: 177.1 MB / 205.3 MB, free: 5.469 MB / 186.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.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 273.4 MB, free: 1.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.659e-05/2.833e-05, allocations: 2.312 kB / 273.4 MB, free: 1.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004618/0.004647, allocations: 2.292 MB / 275.7 MB, free: 14.97 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.006411, allocations: 0.8373 MB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002256/0.006637, allocations: 3.938 kB / 276.5 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002947/0.006932, allocations: 47.53 kB / 276.6 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003425/0.007274, allocations: 111.2 kB / 276.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002951/0.007569, allocations: 103.7 kB / 276.8 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003957/0.007965, allocations: 295.3 kB / 277.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000143/0.008108, allocations: 40.5 kB / 277.1 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003997/0.008507, allocations: 183.6 kB / 277.3 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.008749, allocations: 111.7 kB / 277.4 MB, free: 13.24 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001075/0.008856, allocations: 20 kB / 277.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002546/0.009111, allocations: 75.92 kB / 277.5 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.945e-05/0.00919, allocations: 59.77 kB / 277.5 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.387e-05/0.009274, allocations: 83.8 kB / 277.6 MB, free: 13.01 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003326/0.009607, allocations: 255 kB / 277.9 MB, free: 12.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.009611, allocations: 0 / 277.9 MB, free: 12.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.402e-06/0.009612, allocations: 0 / 277.9 MB, free: 12.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.359e-06/0.009616, allocations: 0 / 277.9 MB, free: 12.76 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.0006841/0.0103, allocations: 0.6101 MB / 278.5 MB, free: 12.11 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.01034, allocations: 8.031 kB / 278.5 MB, free: 12.1 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.0105, allocations: 52.78 kB / 278.5 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.01073, allocations: 210.5 kB / 278.7 MB, free: 11.81 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.361e-05/0.01075, allocations: 16.38 kB / 278.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.835e-05/0.01078, allocations: 20.38 kB / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002184/0.011, allocations: 173.3 kB / 279 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.438e-05/0.01101, allocations: 12.16 kB / 279 MB, free: 11.58 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.01103, allocations: 8.375 kB / 279 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.01104, allocations: 7.938 kB / 279 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001027/0.01114, allocations: 67.91 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005421/0.01168, allocations: 0.5923 MB / 279.6 MB, free: 10.87 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001979/0.01188, allocations: 123 kB / 279.8 MB, free: 10.74 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.645e-05/0.01194, allocations: 51.64 kB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.545e-05/0.01195, allocations: 4 kB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001464/0.0121, allocations: 114.6 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.743e-06/0.0121, allocations: 3.938 kB / 279.9 MB, free: 10.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.0008829/0.01298, allocations: 0.6558 MB / 280.6 MB, free: 9.836 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.758e-05/0.01301, allocations: 63.34 kB / 280.6 MB, free: 9.762 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001241/0.01313, allocations: 254 kB / 280.9 MB, free: 9.496 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.725e-05/0.01315, allocations: 29.7 kB / 280.9 MB, free: 9.461 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.093e-05/0.01322, allocations: 175.3 kB / 281.1 MB, free: 9.285 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.171e-05/0.01327, allocations: 103.2 kB / 281.2 MB, free: 9.184 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.781e-05/0.01334, allocations: 71.22 kB / 281.3 MB, free: 9.105 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.01346, allocations: 0.5001 MB / 281.8 MB, free: 8.594 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.627e-05/0.01353, allocations: 73.41 kB / 281.8 MB, free: 8.516 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.543e-05/0.01362, allocations: 116.4 kB / 282 MB, free: 8.379 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001318/0.01376, allocations: 153.4 kB / 282.1 MB, free: 8.207 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.01376, allocations: 4 kB / 282.1 MB, free: 8.203 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.000292/0.01405, allocations: 306.2 kB / 282.4 MB, free: 7.883 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.01408, allocations: 29.7 kB / 282.4 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.528e-06/0.01408, allocations: 0 / 282.4 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001055/0.01419, allocations: 47.66 kB / 282.5 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001011/0.01429, allocations: 51.97 kB / 282.5 MB, free: 7.746 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.01532, allocations: 2.107 MB / 284.6 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.01542, allocations: 27.97 kB / 284.7 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.01543, allocations: 8 kB / 284.7 MB, free: 5.492 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 9.203e-05/0.01553, allocations: 176.5 kB / 284.8 MB, free: 5.309 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.005e-05/0.01557, allocations: 35.8 kB / 284.9 MB, free: 5.273 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.042e-05/0.0156, allocations: 30.64 kB / 284.9 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.0156, allocations: 0 / 284.9 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.753e-06/0.0156, allocations: 0 / 284.9 MB, free: 5.242 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.0156, allocations: 4 kB / 284.9 MB, free: 5.238 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004579/0.01606, allocations: 0.5139 MB / 285.4 MB, free: 4.688 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.01606, allocations: 0 / 285.4 MB, free: 4.688 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.01617, allocations: 43.91 kB / 285.5 MB, free: 4.645 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.822e-05/0.01624, allocations: 51.62 kB / 285.5 MB, free: 4.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.01626, allocations: 8 kB / 285.5 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008352/0.01709, allocations: 1.874 MB / 287.4 MB, free: 2.594 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.774e-06/0.01709, allocations: 8.016 kB / 287.4 MB, free: 2.586 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003382/0.01743, allocations: 416.4 kB / 287.8 MB, free: 2.156 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.011e-05/0.01748, allocations: 31.88 kB / 287.8 MB, free: 2.125 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.88e-05/0.0175, allocations: 7.938 kB / 287.9 MB, free: 2.117 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.01766, allocations: 27.91 kB / 287.9 MB, free: 2.09 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001026/0.01776, allocations: 75.86 kB / 288 MB, free: 2.016 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.01777, allocations: 4 kB / 288 MB, free: 2.012 MB / 266.7 MB Notification: Performance of sorting global known variables: time 7.629e-05/0.01785, allocations: 176.7 kB / 288.1 MB, free: 1.84 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01785, allocations: 4 kB / 288.1 MB, free: 1.836 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002393/0.01809, allocations: 71.94 kB / 288.2 MB, free: 1.766 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.000892/0.01898, allocations: 351.9 kB / 288.6 MB, free: 1.539 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003991/0.01938, allocations: 418.3 kB / 289 MB, free: 1.09 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.01938, allocations: 0 / 289 MB, free: 1.09 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001986/0.01958, allocations: 289.7 kB / 289.2 MB, free: 0.7852 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.01986, allocations: 64.56 kB / 289.3 MB, free: 0.7266 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008737/0.02073, allocations: 0.5542 MB / 289.9 MB, free: 144 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.626e-05/0.02078, allocations: 92.31 kB / 289.9 MB, free: 32 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.884e-05/0.02084, allocations: 29.92 kB / 290 MB, free: 4 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001247/0.02097, allocations: 114.2 kB / 290.1 MB, free: 15.89 MB / 282.7 MB Notification: Performance of SimCode: time 6.01e-07/0.02097, allocations: 0 / 290.1 MB, free: 15.89 MB / 282.7 MB Notification: Performance of Templates: time 0.006158/0.02713, allocations: 4.977 MB / 295.1 MB, free: 10.98 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.892596215941012]