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.001009/0.001009, allocations: 85.08 kB / 23 MB, free: 1.504 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.00113/0.00113, allocations: 173.1 kB / 26.39 MB, free: 8 MB / 18.57 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.9611/0.9611, allocations: 158.6 MB / 188.3 MB, free: 2.816 MB / 170.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.522e-06/1.522e-06, allocations: 3.938 kB / 252.2 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.165e-05/2.317e-05, allocations: 6.25 kB / 252.2 MB, free: 7.258 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.005956/0.005979, allocations: 2.175 MB / 254.4 MB, free: 5.066 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.004234/0.01021, allocations: 0.7292 MB / 255.2 MB, free: 4.328 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001424/0.01036, allocations: 4 kB / 255.2 MB, free: 4.324 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001626/0.01052, allocations: 35.64 kB / 255.2 MB, free: 4.289 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000169/0.01069, allocations: 63.44 kB / 255.3 MB, free: 4.227 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003634/0.01105, allocations: 119.7 kB / 255.4 MB, free: 4.109 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.000582/0.01163, allocations: 283.4 kB / 255.6 MB, free: 3.832 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.01174, allocations: 44.45 kB / 255.7 MB, free: 3.789 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.01197, allocations: 171.6 kB / 255.9 MB, free: 3.621 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001648/0.01214, allocations: 95.75 kB / 256 MB, free: 3.527 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.203e-05/0.01217, allocations: 20 kB / 256 MB, free: 3.508 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001245/0.01229, allocations: 79.81 kB / 256 MB, free: 3.43 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.129e-05/0.01236, allocations: 51.81 kB / 256.1 MB, free: 3.379 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.438e-05/0.01244, allocations: 79.81 kB / 256.2 MB, free: 3.301 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002781/0.01272, allocations: 227.3 kB / 256.4 MB, free: 3.078 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.375e-06/0.01272, allocations: 4 kB / 256.4 MB, free: 3.074 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.01272, allocations: 0 / 256.4 MB, free: 3.074 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.01273, allocations: 0 / 256.4 MB, free: 3.074 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.0006528/0.01338, allocations: 0.5675 MB / 257 MB, free: 2.465 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.903e-05/0.01341, allocations: 15.98 kB / 257 MB, free: 2.449 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.697e-05/0.01347, allocations: 40.8 kB / 257 MB, free: 2.41 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001847/0.01366, allocations: 184.1 kB / 257.2 MB, free: 2.203 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.844e-05/0.01368, allocations: 12.38 kB / 257.2 MB, free: 2.191 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.321e-05/0.01371, allocations: 32.36 kB / 257.2 MB, free: 2.16 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000288/0.014, allocations: 186.1 kB / 257.4 MB, free: 1.961 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.411e-05/0.01401, allocations: 4.125 kB / 257.4 MB, free: 1.957 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.012e-05/0.01403, allocations: 12.38 kB / 257.4 MB, free: 1.945 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.01404, allocations: 7.938 kB / 257.5 MB, free: 1.938 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001398/0.01418, allocations: 75.84 kB / 257.5 MB, free: 1.863 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006951/0.01488, allocations: 0.5964 MB / 258.1 MB, free: 1.23 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002549/0.01513, allocations: 126.9 kB / 258.2 MB, free: 1.094 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.037e-05/0.0152, allocations: 55.59 kB / 258.3 MB, free: 1.035 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.852e-05/0.01522, allocations: 4 kB / 258.3 MB, free: 1.031 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001681/0.01539, allocations: 117.3 kB / 258.4 MB, free: 0.9023 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.01539, allocations: 0 / 258.4 MB, free: 0.9023 MB / 234.7 MB Notification: Performance of matching and sorting (n=26): time 0.0008967/0.01629, allocations: 0.6443 MB / 259.1 MB, free: 196 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.01631, allocations: 55.41 kB / 259.1 MB, free: 128 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001318/0.01645, allocations: 250.5 kB / 259.4 MB, free: 15.86 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.05e-05/0.01647, allocations: 33.7 kB / 259.4 MB, free: 15.82 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.179e-05/0.01654, allocations: 175.2 kB / 259.6 MB, free: 15.65 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.97e-05/0.01659, allocations: 95.19 kB / 259.7 MB, free: 15.55 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.086e-05/0.01666, allocations: 71.31 kB / 259.7 MB, free: 15.48 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001094/0.01677, allocations: 0.504 MB / 260.2 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.089e-05/0.01684, allocations: 70 kB / 260.3 MB, free: 14.88 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.782e-05/0.01693, allocations: 113.3 kB / 260.4 MB, free: 14.75 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.01706, allocations: 167.1 kB / 260.6 MB, free: 14.57 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.01706, allocations: 4 kB / 260.6 MB, free: 14.56 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003401/0.0174, allocations: 312.5 kB / 260.9 MB, free: 14.23 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.623e-05/0.01744, allocations: 33.7 kB / 260.9 MB, free: 14.2 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.752e-06/0.01745, allocations: 3.984 kB / 260.9 MB, free: 14.19 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001472/0.01759, allocations: 55.64 kB / 261 MB, free: 14.13 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001119/0.01771, allocations: 51.91 kB / 261 MB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000371/0.01808, allocations: 0.8507 MB / 261.9 MB, free: 13.2 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000114/0.01819, allocations: 19.98 kB / 261.9 MB, free: 13.18 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.0182, allocations: 8 kB / 261.9 MB, free: 13.17 MB / 250.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 0.0001013/0.01831, allocations: 180.5 kB / 262.1 MB, free: 12.98 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.3e-05/0.01834, allocations: 27.91 kB / 262.1 MB, free: 12.96 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.861e-05/0.01838, allocations: 29.91 kB / 262.1 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.01838, allocations: 0 / 262.1 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.587e-06/0.01838, allocations: 7.938 kB / 262.1 MB, free: 12.92 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.01839, allocations: 8.016 kB / 262.2 MB, free: 12.91 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000742/0.01913, allocations: 0.4979 MB / 262.7 MB, free: 12.38 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.01913, allocations: 0 / 262.7 MB, free: 12.38 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001065/0.01924, allocations: 39.92 kB / 262.7 MB, free: 12.34 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.18e-05/0.01933, allocations: 59.66 kB / 262.7 MB, free: 12.27 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.38e-05/0.01934, allocations: 8 kB / 262.8 MB, free: 12.27 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003195/0.01966, allocations: 0.8468 MB / 263.6 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.01966, allocations: 0 / 263.6 MB, free: 11.39 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003415/0.02001, allocations: 404.8 kB / 264 MB, free: 10.96 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.366e-05/0.02006, allocations: 35.88 kB / 264 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.654e-05/0.02009, allocations: 7.938 kB / 264 MB, free: 10.92 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.385e-05/0.02018, allocations: 15.98 kB / 264.1 MB, free: 10.91 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.244e-05/0.02025, allocations: 39.86 kB / 264.1 MB, free: 10.87 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.235e-05/0.02026, allocations: 8 kB / 264.1 MB, free: 10.86 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.246e-05/0.02034, allocations: 167.3 kB / 264.3 MB, free: 10.7 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02034, allocations: 4.031 kB / 264.3 MB, free: 10.69 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002505/0.02059, allocations: 71.94 kB / 264.3 MB, free: 10.62 MB / 250.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.0001651/0.02075, allocations: 123.2 kB / 264.5 MB, free: 10.49 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003128/0.02107, allocations: 244.6 kB / 264.7 MB, free: 10.23 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.142e-06/0.02107, allocations: 0 / 264.7 MB, free: 10.23 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.02118, allocations: 99.5 kB / 264.8 MB, free: 10.13 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002595/0.02144, allocations: 55.92 kB / 264.9 MB, free: 10.07 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008924/0.02234, allocations: 0.549 MB / 265.4 MB, free: 9.496 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.038e-05/0.02239, allocations: 84.31 kB / 265.5 MB, free: 9.395 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.275e-05/0.02246, allocations: 25.88 kB / 265.5 MB, free: 9.367 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001108/0.02257, allocations: 110.2 kB / 265.6 MB, free: 9.258 MB / 250.7 MB Notification: Performance of SimCode: time 9.42e-07/0.02257, allocations: 0 / 265.6 MB, free: 9.258 MB / 250.7 MB Notification: Performance of Templates: time 0.006371/0.02894, allocations: 4.019 MB / 269.6 MB, free: 5.258 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 -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.829805713146925]