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.001145/0.001145, allocations: 68.19 kB / 9.935 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001612/0.002756, allocations: 445.7 kB / 10.37 MB, free: 328 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.001235/0.001235, allocations: 161.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001723/0.002958, allocations: 463.6 kB / 11.71 MB, free: 2.453 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 0.9628/0.9628, allocations: 158.6 MB / 171.1 MB, free: 2.586 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.156/1.119, allocations: 49.49 MB / 220.6 MB, free: 1.445 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.483e-06/1.483e-06, allocations: 0 / 221.8 MB, free: 180 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.19e-05/2.338e-05, allocations: 2.312 kB / 221.8 MB, free: 176 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.007309/0.007333, allocations: 2.222 MB / 224.1 MB, free: 13.93 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001364/0.008697, allocations: 0.737 MB / 224.8 MB, free: 13.18 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001334/0.00883, allocations: 11.88 kB / 224.8 MB, free: 13.17 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.008967, allocations: 31.66 kB / 224.8 MB, free: 13.14 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002389/0.009206, allocations: 71.42 kB / 224.9 MB, free: 13.07 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003295/0.009535, allocations: 111.6 kB / 225 MB, free: 12.96 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003181/0.009854, allocations: 283.4 kB / 225.3 MB, free: 12.68 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.009964, allocations: 34.55 kB / 225.3 MB, free: 12.65 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003301/0.01327, allocations: 187.6 kB / 225.5 MB, free: 12.47 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.01344, allocations: 103.7 kB / 225.6 MB, free: 12.37 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.497e-05/0.01348, allocations: 20 kB / 225.6 MB, free: 12.35 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001642/0.01364, allocations: 79.94 kB / 225.7 MB, free: 12.27 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.294e-05/0.0137, allocations: 35.88 kB / 225.7 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.443e-05/0.01379, allocations: 63.81 kB / 225.8 MB, free: 12.17 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003109/0.0141, allocations: 195.3 kB / 226 MB, free: 11.98 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.741e-05/0.01412, allocations: 0 / 226 MB, free: 11.98 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.01412, allocations: 0 / 226 MB, free: 11.98 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.656e-05/0.01413, allocations: 0 / 226 MB, free: 11.98 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.0007659/0.0149, allocations: 0.501 MB / 226.5 MB, free: 11.45 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.004e-05/0.01493, allocations: 8.031 kB / 226.5 MB, free: 11.44 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.571e-05/0.015, allocations: 32.92 kB / 226.5 MB, free: 11.41 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003206/0.01532, allocations: 161.4 kB / 226.7 MB, free: 11.23 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.588e-05/0.01534, allocations: 24.36 kB / 226.7 MB, free: 11.2 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.534e-05/0.01538, allocations: 16.38 kB / 226.7 MB, free: 11.19 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002781/0.01566, allocations: 192.4 kB / 226.9 MB, free: 10.98 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.01567, allocations: 192 / 226.9 MB, free: 10.98 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.57e-05/0.01568, allocations: 4.375 kB / 226.9 MB, free: 10.98 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.667e-06/0.01569, allocations: 11.94 kB / 226.9 MB, free: 10.97 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001194/0.01581, allocations: 67.86 kB / 227 MB, free: 10.9 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00365/0.01946, allocations: 439.9 kB / 227.4 MB, free: 10.45 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002391/0.0197, allocations: 118.3 kB / 227.5 MB, free: 10.33 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.661e-05/0.01976, allocations: 36.84 kB / 227.6 MB, free: 10.29 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.815e-05/0.01978, allocations: 4 kB / 227.6 MB, free: 10.29 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001753/0.01995, allocations: 115.2 kB / 227.7 MB, free: 10.16 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.01995, allocations: 0 / 227.7 MB, free: 10.16 MB / 234.7 MB Notification: Performance of matching and sorting (n=26): time 0.001039/0.02099, allocations: 0.6099 MB / 228.3 MB, free: 9.492 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/0.02102, allocations: 59.34 kB / 228.4 MB, free: 9.422 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001203/0.02114, allocations: 179.3 kB / 228.5 MB, free: 9.234 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.179e-05/0.02116, allocations: 33.7 kB / 228.6 MB, free: 9.195 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.848e-05/0.02122, allocations: 132.4 kB / 228.7 MB, free: 9.062 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.903e-05/0.02128, allocations: 95.19 kB / 228.8 MB, free: 8.969 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.397e-05/0.02137, allocations: 69.62 kB / 228.9 MB, free: 8.895 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.231e-05/0.02146, allocations: 334.8 kB / 229.2 MB, free: 8.559 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.189e-05/0.02154, allocations: 62.02 kB / 229.3 MB, free: 8.488 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001001/0.02164, allocations: 110 kB / 229.4 MB, free: 8.363 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001545/0.0218, allocations: 146.6 kB / 229.5 MB, free: 8.203 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/0.0218, allocations: 0 / 229.5 MB, free: 8.203 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.003351/0.02515, allocations: 270.9 kB / 229.8 MB, free: 7.918 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.176e-05/0.02519, allocations: 33.77 kB / 229.8 MB, free: 7.879 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.202e-06/0.0252, allocations: 4 kB / 229.8 MB, free: 7.875 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001507/0.02535, allocations: 48.83 kB / 229.9 MB, free: 7.824 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000156/0.0255, allocations: 55.91 kB / 229.9 MB, free: 7.77 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005791/0.02608, allocations: 0.5718 MB / 230.5 MB, free: 7.172 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001362/0.02622, allocations: 23.98 kB / 230.5 MB, free: 7.148 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.687e-05/0.02623, allocations: 8 kB / 230.5 MB, free: 7.141 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 9.476e-05/0.02633, allocations: 128.7 kB / 230.6 MB, free: 7.004 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.935e-05/0.02636, allocations: 23.98 kB / 230.7 MB, free: 6.98 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.418e-05/0.0264, allocations: 29.91 kB / 230.7 MB, free: 6.953 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.02641, allocations: 3.938 kB / 230.7 MB, free: 6.949 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.02641, allocations: 4 kB / 230.7 MB, free: 6.945 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.02642, allocations: 3.984 kB / 230.7 MB, free: 6.941 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005006/0.02692, allocations: 371.9 kB / 231.1 MB, free: 6.551 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.02692, allocations: 0 / 231.1 MB, free: 6.551 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.02707, allocations: 39.98 kB / 231.1 MB, free: 6.512 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.672e-05/0.02712, allocations: 23.84 kB / 231.1 MB, free: 6.488 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001093/0.02723, allocations: 56.75 kB / 231.2 MB, free: 6.43 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.348e-05/0.02725, allocations: 7.938 kB / 231.2 MB, free: 6.422 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002665/0.02751, allocations: 0.564 MB / 231.8 MB, free: 5.832 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.02752, allocations: 0 / 231.8 MB, free: 5.832 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00335/0.03087, allocations: 309.8 kB / 232.1 MB, free: 5.508 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.041e-05/0.0309, allocations: 4 kB / 232.1 MB, free: 5.504 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.03102, allocations: 23.97 kB / 232.1 MB, free: 5.48 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.327e-05/0.03109, allocations: 31.94 kB / 232.1 MB, free: 5.449 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.506e-05/0.03111, allocations: 15.94 kB / 232.1 MB, free: 5.434 MB / 234.7 MB Notification: Performance of sorting global known variables: time 5.126e-05/0.03116, allocations: 49.08 kB / 232.2 MB, free: 5.383 MB / 234.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03116, allocations: 3.938 kB / 232.2 MB, free: 5.379 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002747/0.03144, allocations: 75.92 kB / 232.3 MB, free: 5.305 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.0001764/0.03161, allocations: 108.4 kB / 232.4 MB, free: 5.188 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0003448/0.03196, allocations: 246.6 kB / 232.6 MB, free: 4.926 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.025e-05/0.03197, allocations: 0 / 232.6 MB, free: 4.926 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.03211, allocations: 96.67 kB / 232.7 MB, free: 4.828 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002827/0.03239, allocations: 63.66 kB / 232.8 MB, free: 4.766 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005937/0.03833, allocations: 485.4 kB / 233.2 MB, free: 4.266 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.088e-05/0.03839, allocations: 84.31 kB / 233.3 MB, free: 4.164 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0001008/0.03849, allocations: 21.95 kB / 233.3 MB, free: 4.145 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.03861, allocations: 83.34 kB / 233.4 MB, free: 4.062 MB / 234.7 MB Notification: Performance of SimCode: time 1.232e-06/0.03861, allocations: 0 / 233.4 MB, free: 4.062 MB / 234.7 MB Notification: Performance of Templates: time 0.00991/0.04852, allocations: 3.972 MB / 237.4 MB, free: 112 kB / 234.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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7232985831797123]