Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001364/0.001364, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001337/0.002702, allocations: 453.8 kB / 10.46 MB, free: 236 kB / 10.45 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.0007302/0.0007302, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001104/0.001834, allocations: 483.5 kB / 11.83 MB, free: 2.336 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.005/1.005, allocations: 158.6 MB / 171.2 MB, free: 2.512 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.146/1.151, allocations: 49.5 MB / 220.7 MB, free: 1.363 MB / 218.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.323e-06/1.323e-06, allocations: 0 / 222 MB, free: 88 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.93e-05/2.062e-05, allocations: 5.406 kB / 222 MB, free: 84 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002582/0.002602, allocations: 2.226 MB / 224.2 MB, free: 13.83 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001082/0.003684, allocations: 0.7369 MB / 224.9 MB, free: 13.09 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001152/0.0038, allocations: 7.938 kB / 224.9 MB, free: 13.08 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001194/0.003919, allocations: 35.66 kB / 225 MB, free: 13.04 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001399/0.004059, allocations: 75.41 kB / 225.1 MB, free: 12.97 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003034/0.004362, allocations: 107.6 kB / 225.2 MB, free: 12.86 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002811/0.004643, allocations: 279.4 kB / 225.4 MB, free: 12.59 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001039/0.004747, allocations: 42.53 kB / 225.5 MB, free: 12.55 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002383/0.004986, allocations: 187.6 kB / 225.7 MB, free: 12.37 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001718/0.005158, allocations: 99.73 kB / 225.8 MB, free: 12.27 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.3e-05/0.005191, allocations: 20 kB / 225.8 MB, free: 12.25 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001391/0.00533, allocations: 79.89 kB / 225.9 MB, free: 12.17 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.187e-05/0.005391, allocations: 39.86 kB / 225.9 MB, free: 12.13 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.68e-05/0.005458, allocations: 63.88 kB / 226 MB, free: 12.07 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002476/0.005706, allocations: 191.3 kB / 226.1 MB, free: 11.88 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.104e-05/0.005717, allocations: 0 / 226.1 MB, free: 11.88 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.42e-07/0.005718, allocations: 4 kB / 226.1 MB, free: 11.88 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.116e-05/0.005729, allocations: 0 / 226.1 MB, free: 11.88 MB / 234.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0006828/0.006412, allocations: 0.4971 MB / 226.6 MB, free: 11.35 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.26e-05/0.006444, allocations: 12.03 kB / 226.7 MB, free: 11.34 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.86e-05/0.006503, allocations: 28.92 kB / 226.7 MB, free: 11.31 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002085/0.006711, allocations: 173.3 kB / 226.9 MB, free: 11.12 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.006733, allocations: 20.31 kB / 226.9 MB, free: 11.1 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.29e-05/0.006766, allocations: 16.38 kB / 226.9 MB, free: 11.08 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002348/0.007001, allocations: 192.4 kB / 227.1 MB, free: 10.88 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.007014, allocations: 4.188 kB / 227.1 MB, free: 10.88 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.924e-05/0.007033, allocations: 4.375 kB / 227.1 MB, free: 10.87 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.007041, allocations: 7.938 kB / 227.1 MB, free: 10.86 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001324/0.007173, allocations: 71.86 kB / 227.2 MB, free: 10.79 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000516/0.007689, allocations: 431.9 kB / 227.6 MB, free: 10.35 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002084/0.007898, allocations: 118.4 kB / 227.7 MB, free: 10.23 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.532e-05/0.007943, allocations: 32.86 kB / 227.7 MB, free: 10.19 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.685e-05/0.00796, allocations: 4 kB / 227.7 MB, free: 10.19 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001578/0.008118, allocations: 111.2 kB / 227.8 MB, free: 10.07 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.593e-06/0.008119, allocations: 4 kB / 227.8 MB, free: 10.06 MB / 234.7 MB Notification: Performance of matching and sorting (n=26): time 0.001013/0.009132, allocations: 0.7055 MB / 228.6 MB, free: 9.281 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.715e-05/0.009159, allocations: 63.34 kB / 228.6 MB, free: 9.207 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.892e-05/0.009258, allocations: 179.3 kB / 228.8 MB, free: 9.02 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.942e-05/0.009278, allocations: 33.7 kB / 228.8 MB, free: 8.98 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.041e-05/0.009328, allocations: 128.4 kB / 228.9 MB, free: 8.852 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.216e-05/0.00938, allocations: 95.19 kB / 229 MB, free: 8.758 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.247e-05/0.009463, allocations: 69.62 kB / 229.1 MB, free: 8.684 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.551e-05/0.009538, allocations: 338.8 kB / 229.4 MB, free: 8.344 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.081e-05/0.009609, allocations: 62.02 kB / 229.5 MB, free: 8.273 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.868e-05/0.009688, allocations: 106 kB / 229.6 MB, free: 8.152 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002618/0.00995, allocations: 160.7 kB / 229.8 MB, free: 7.98 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.009951, allocations: 0 / 229.8 MB, free: 7.98 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003027/0.01025, allocations: 257.8 kB / 230 MB, free: 7.707 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.213e-05/0.0103, allocations: 33.7 kB / 230 MB, free: 7.668 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.563e-06/0.0103, allocations: 4.062 kB / 230.1 MB, free: 7.664 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001538/0.01046, allocations: 56.8 kB / 230.1 MB, free: 7.605 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001338/0.01059, allocations: 59.91 kB / 230.2 MB, free: 7.547 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002758/0.01087, allocations: 0.5602 MB / 230.7 MB, free: 6.961 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.01098, allocations: 19.98 kB / 230.7 MB, free: 6.941 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.583e-05/0.011, allocations: 19.92 kB / 230.8 MB, free: 6.922 MB / 234.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 (32): * Single equations (assignments): 30 * 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 8.728e-05/0.01109, allocations: 124.7 kB / 230.9 MB, free: 6.789 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.448e-05/0.01111, allocations: 23.98 kB / 230.9 MB, free: 6.766 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.665e-05/0.01115, allocations: 29.95 kB / 230.9 MB, free: 6.738 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.906e-06/0.01115, allocations: 7.875 kB / 230.9 MB, free: 6.73 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.01115, allocations: 3.938 kB / 231 MB, free: 6.727 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/0.01116, allocations: 4 kB / 231 MB, free: 6.723 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003907/0.01155, allocations: 371.8 kB / 231.3 MB, free: 6.332 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.01155, allocations: 0 / 231.3 MB, free: 6.332 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001119/0.01166, allocations: 43.97 kB / 231.4 MB, free: 6.289 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.429e-05/0.01171, allocations: 19.86 kB / 231.4 MB, free: 6.27 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.402e-05/0.0118, allocations: 60.73 kB / 231.4 MB, free: 6.207 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.266e-05/0.01182, allocations: 4 kB / 231.4 MB, free: 6.203 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002327/0.01205, allocations: 0.5601 MB / 232 MB, free: 5.617 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.01205, allocations: 0 / 232 MB, free: 5.617 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002784/0.01233, allocations: 317 kB / 232.3 MB, free: 5.289 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.01235, allocations: 12.03 kB / 232.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.559e-05/0.01244, allocations: 15.98 kB / 232.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.318e-05/0.0125, allocations: 39.94 kB / 232.4 MB, free: 5.223 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.137e-05/0.01251, allocations: 12.02 kB / 232.4 MB, free: 5.211 MB / 234.7 MB Notification: Performance of sorting global known variables: time 3.903e-05/0.01255, allocations: 49.03 kB / 232.4 MB, free: 5.16 MB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01255, allocations: 0 / 232.4 MB, free: 5.16 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0001944/0.01275, allocations: 71.94 kB / 232.5 MB, free: 5.09 MB / 234.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 (20): * Single equations (assignments): 17 * 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.0001534/0.0129, allocations: 116.3 kB / 232.6 MB, free: 4.965 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.000291/0.01319, allocations: 238.3 kB / 232.9 MB, free: 4.711 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.029e-05/0.0132, allocations: 7.984 kB / 232.9 MB, free: 4.703 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001197/0.01332, allocations: 100.6 kB / 233 MB, free: 4.602 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007345/0.01406, allocations: 362.3 kB / 233.3 MB, free: 4.18 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003501/0.01756, allocations: 487.5 kB / 233.8 MB, free: 3.676 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.857e-05/0.01764, allocations: 80.33 kB / 233.9 MB, free: 3.578 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.01775, allocations: 22.08 kB / 233.9 MB, free: 3.559 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001527/0.0179, allocations: 91.36 kB / 234 MB, free: 3.469 MB / 234.7 MB Notification: Performance of SimCode: time 1.122e-06/0.01791, allocations: 0 / 234 MB, free: 3.469 MB / 234.7 MB Notification: Performance of Templates: time 0.006972/0.02488, allocations: 3.992 MB / 238 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.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.737974247895181]