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.001481/0.001481, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.001404/0.001404, allocations: 161.2 kB / 25.6 MB, free: 8.895 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.9209/0.9209, allocations: 158.6 MB / 187.5 MB, free: 2.812 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.123e-06/1.123e-06, allocations: 0 / 251.4 MB, free: 7.367 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.282e-05/1.395e-05, allocations: 2.312 kB / 251.4 MB, free: 7.363 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002753/0.002767, allocations: 2.179 MB / 253.6 MB, free: 5.168 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001161/0.003928, allocations: 0.7293 MB / 254.4 MB, free: 4.43 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.00404, allocations: 3.938 kB / 254.4 MB, free: 4.426 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001604/0.0042, allocations: 27.72 kB / 254.4 MB, free: 4.398 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001807/0.004381, allocations: 75.36 kB / 254.5 MB, free: 4.324 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003163/0.004697, allocations: 115.7 kB / 254.6 MB, free: 4.211 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002715/0.004969, allocations: 279.3 kB / 254.8 MB, free: 3.938 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001119/0.005081, allocations: 40.48 kB / 254.9 MB, free: 3.898 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.005305, allocations: 171.6 kB / 255.1 MB, free: 3.73 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.005466, allocations: 99.75 kB / 255.2 MB, free: 3.633 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.438e-05/0.005501, allocations: 23.94 kB / 255.2 MB, free: 3.609 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001163/0.005617, allocations: 71.88 kB / 255.2 MB, free: 3.539 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.464e-05/0.005682, allocations: 55.81 kB / 255.3 MB, free: 3.484 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.00582, allocations: 79.83 kB / 255.4 MB, free: 3.406 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002623/0.006082, allocations: 223.3 kB / 255.6 MB, free: 3.188 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.653e-06/0.006084, allocations: 0 / 255.6 MB, free: 3.188 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.006084, allocations: 0 / 255.6 MB, free: 3.188 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.727e-06/0.006088, allocations: 0 / 255.6 MB, free: 3.188 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.0006776/0.006766, allocations: 0.583 MB / 256.2 MB, free: 2.559 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.483e-05/0.0068, allocations: 11.98 kB / 256.2 MB, free: 2.547 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.657e-05/0.006867, allocations: 36.8 kB / 256.2 MB, free: 2.512 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001881/0.007055, allocations: 188.2 kB / 256.4 MB, free: 2.301 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.132e-05/0.007077, allocations: 20.31 kB / 256.4 MB, free: 2.281 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.364e-05/0.00711, allocations: 16.38 kB / 256.4 MB, free: 2.266 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002758/0.007386, allocations: 194.1 kB / 256.6 MB, free: 2.059 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.577e-05/0.007402, allocations: 8.188 kB / 256.6 MB, free: 2.051 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.634e-05/0.007418, allocations: 4.375 kB / 256.6 MB, free: 2.047 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.007427, allocations: 7.938 kB / 256.7 MB, free: 2.039 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001329/0.00756, allocations: 75.86 kB / 256.7 MB, free: 1.965 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006802/0.00824, allocations: 0.6081 MB / 257.3 MB, free: 1.324 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002373/0.008478, allocations: 130.8 kB / 257.5 MB, free: 1.184 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.389e-05/0.008542, allocations: 43.66 kB / 257.5 MB, free: 1.137 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.008559, allocations: 4 kB / 257.5 MB, free: 1.133 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001517/0.008711, allocations: 117.4 kB / 257.6 MB, free: 1.004 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.492e-06/0.008712, allocations: 0 / 257.6 MB, free: 1.004 MB / 234.7 MB Notification: Performance of matching and sorting (n=26): time 0.0009793/0.009692, allocations: 0.6449 MB / 258.3 MB, free: 300 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.727e-05/0.009719, allocations: 59.41 kB / 258.3 MB, free: 228 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001497/0.009868, allocations: 242.5 kB / 258.6 MB, free: 15.97 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.124e-05/0.00989, allocations: 33.69 kB / 258.6 MB, free: 15.93 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.208e-05/0.009972, allocations: 183.2 kB / 258.8 MB, free: 15.75 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.826e-05/0.01003, allocations: 91.19 kB / 258.9 MB, free: 15.66 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.667e-05/0.01012, allocations: 71.31 kB / 258.9 MB, free: 15.58 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001274/0.01024, allocations: 0.5001 MB / 259.4 MB, free: 15.07 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.713e-05/0.01033, allocations: 69.98 kB / 259.5 MB, free: 14.99 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001092/0.01044, allocations: 121.3 kB / 259.6 MB, free: 14.85 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001631/0.0106, allocations: 163.1 kB / 259.8 MB, free: 14.67 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.0106, allocations: 0 / 259.8 MB, free: 14.67 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003954/0.011, allocations: 320.5 kB / 260.1 MB, free: 14.33 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.01103, allocations: 33.64 kB / 260.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.01103, allocations: 0 / 260.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001407/0.01117, allocations: 59.62 kB / 260.2 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.01131, allocations: 55.97 kB / 260.2 MB, free: 14.18 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005797/0.01189, allocations: 0.839 MB / 261.1 MB, free: 13.3 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/0.01202, allocations: 23.98 kB / 261.1 MB, free: 13.28 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.908e-05/0.01204, allocations: 8 kB / 261.1 MB, free: 13.27 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.0001017/0.01214, allocations: 180.5 kB / 261.3 MB, free: 13.09 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.663e-05/0.01218, allocations: 31.83 kB / 261.3 MB, free: 13.05 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.619e-05/0.01223, allocations: 29.91 kB / 261.3 MB, free: 13.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.156e-06/0.01223, allocations: 8.031 kB / 261.4 MB, free: 13.02 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.412e-06/0.01223, allocations: 0 / 261.4 MB, free: 13.02 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.01224, allocations: 3.984 kB / 261.4 MB, free: 13.01 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005522/0.01279, allocations: 0.5018 MB / 261.9 MB, free: 12.47 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.01279, allocations: 3.938 kB / 261.9 MB, free: 12.47 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.01292, allocations: 31.98 kB / 261.9 MB, free: 12.44 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001015/0.01302, allocations: 55.64 kB / 262 MB, free: 12.38 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.368e-05/0.01303, allocations: 8 kB / 262 MB, free: 12.37 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003446/0.01337, allocations: 0.8545 MB / 262.8 MB, free: 11.48 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.01338, allocations: 4 kB / 262.8 MB, free: 11.48 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003986/0.01378, allocations: 404.8 kB / 263.2 MB, free: 11.06 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.024e-05/0.01384, allocations: 31.88 kB / 263.2 MB, free: 11.03 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.916e-05/0.01387, allocations: 8 kB / 263.3 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001239/0.01399, allocations: 15.98 kB / 263.3 MB, free: 11 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.078e-05/0.01406, allocations: 47.89 kB / 263.3 MB, free: 10.96 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.01407, allocations: 4 kB / 263.3 MB, free: 10.95 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.823e-05/0.01415, allocations: 171.3 kB / 263.5 MB, free: 10.79 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01415, allocations: 0 / 263.5 MB, free: 10.79 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002948/0.01445, allocations: 71.94 kB / 263.6 MB, free: 10.71 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.0001357/0.01458, allocations: 119.1 kB / 263.7 MB, free: 10.59 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000321/0.0149, allocations: 244.5 kB / 263.9 MB, free: 10.33 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.0149, allocations: 0 / 263.9 MB, free: 10.33 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001446/0.01505, allocations: 103.6 kB / 264 MB, free: 10.22 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003186/0.01537, allocations: 55.56 kB / 264.1 MB, free: 10.17 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009583/0.01632, allocations: 0.5566 MB / 264.6 MB, free: 9.586 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.413e-05/0.01638, allocations: 80.33 kB / 264.7 MB, free: 9.488 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.659e-05/0.01646, allocations: 21.94 kB / 264.7 MB, free: 9.465 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001217/0.01658, allocations: 106.2 kB / 264.8 MB, free: 9.359 MB / 250.7 MB Notification: Performance of SimCode: time 6.51e-07/0.01658, allocations: 4 kB / 264.8 MB, free: 9.355 MB / 250.7 MB Notification: Performance of Templates: time 0.006741/0.02332, allocations: 3.947 MB / 268.8 MB, free: 5.434 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.7661917018704116]