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.00153/0.00153, allocations: 75.75 kB / 21.97 MB, free: 2.602 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.001216/0.001216, allocations: 170.9 kB / 25.33 MB, free: 9.473 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.8831/0.8831, allocations: 158.6 MB / 187.2 MB, free: 2.508 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.623e-06/1.623e-06, allocations: 0 / 251 MB, free: 3.613 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.155e-05/2.317e-05, allocations: 2.312 kB / 251 MB, free: 3.609 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002507/0.00253, allocations: 2.197 MB / 253.2 MB, free: 1.395 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009762/0.003507, allocations: 0.7331 MB / 253.9 MB, free: 0.6523 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001058/0.003612, allocations: 3.938 kB / 254 MB, free: 0.6484 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001697/0.003782, allocations: 27.72 kB / 254 MB, free: 0.6211 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001466/0.003929, allocations: 75.41 kB / 254.1 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003175/0.004246, allocations: 119.6 kB / 254.2 MB, free: 440 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002475/0.004494, allocations: 283.4 kB / 254.4 MB, free: 156 kB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.004618, allocations: 36.56 kB / 254.5 MB, free: 120 kB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002149/0.004833, allocations: 171.6 kB / 254.7 MB, free: 15.95 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001527/0.004986, allocations: 99.75 kB / 254.7 MB, free: 15.85 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.522e-05/0.005021, allocations: 24 kB / 254.8 MB, free: 15.83 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.005127, allocations: 63.89 kB / 254.8 MB, free: 15.77 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.553e-05/0.005192, allocations: 59.81 kB / 254.9 MB, free: 15.71 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.534e-05/0.005268, allocations: 83.75 kB / 255 MB, free: 15.62 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002763/0.005544, allocations: 227.3 kB / 255.2 MB, free: 15.4 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.114e-06/0.005546, allocations: 0 / 255.2 MB, free: 15.4 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.005547, allocations: 0 / 255.2 MB, free: 15.4 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.005552, allocations: 0 / 255.2 MB, free: 15.4 MB / 250.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.0006674/0.00622, allocations: 0.5714 MB / 255.8 MB, free: 14.79 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.006256, allocations: 11.98 kB / 255.8 MB, free: 14.78 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.738e-05/0.006323, allocations: 36.8 kB / 255.8 MB, free: 14.74 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002094/0.006533, allocations: 192.2 kB / 256 MB, free: 14.53 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.006556, allocations: 16.38 kB / 256 MB, free: 14.51 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.676e-05/0.006593, allocations: 20.36 kB / 256 MB, free: 14.49 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002937/0.006887, allocations: 214.1 kB / 256.2 MB, free: 14.27 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.164e-05/0.006898, allocations: 192 / 256.2 MB, free: 14.27 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.698e-05/0.006915, allocations: 4.375 kB / 256.3 MB, free: 14.26 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.006926, allocations: 7.938 kB / 256.3 MB, free: 14.25 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000158/0.007084, allocations: 95.92 kB / 256.4 MB, free: 14.16 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006831/0.007767, allocations: 0.6387 MB / 257 MB, free: 13.48 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002695/0.008037, allocations: 134.9 kB / 257.1 MB, free: 13.34 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.681e-05/0.008113, allocations: 51.66 kB / 257.2 MB, free: 13.28 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.008e-05/0.008134, allocations: 7.938 kB / 257.2 MB, free: 13.27 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001645/0.008298, allocations: 128.8 kB / 257.3 MB, free: 13.13 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.202e-06/0.008299, allocations: 4 kB / 257.3 MB, free: 13.13 MB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.00109/0.009389, allocations: 0.7271 MB / 258 MB, free: 12.34 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.009426, allocations: 55.41 kB / 258.1 MB, free: 12.27 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001558/0.009582, allocations: 250.5 kB / 258.3 MB, free: 12.01 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.009603, allocations: 33.7 kB / 258.4 MB, free: 11.97 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.572e-05/0.009678, allocations: 179.2 kB / 258.5 MB, free: 11.79 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.23e-05/0.009731, allocations: 91.25 kB / 258.6 MB, free: 11.7 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.181e-05/0.009803, allocations: 67.3 kB / 258.7 MB, free: 11.62 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.009922, allocations: 0.5001 MB / 259.2 MB, free: 11.11 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001081/0.01003, allocations: 85.98 kB / 259.3 MB, free: 11.02 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001174/0.01015, allocations: 137.3 kB / 259.4 MB, free: 10.86 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001771/0.01032, allocations: 183.1 kB / 259.6 MB, free: 10.66 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.01033, allocations: 0 / 259.6 MB, free: 10.66 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004034/0.01073, allocations: 352.5 kB / 259.9 MB, free: 10.3 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.358e-05/0.01076, allocations: 36.67 kB / 260 MB, free: 10.26 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.01077, allocations: 0 / 260 MB, free: 10.26 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001646/0.01093, allocations: 59.7 kB / 260 MB, free: 10.2 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.01105, allocations: 55.91 kB / 260.1 MB, free: 10.14 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004057/0.01145, allocations: 0.8507 MB / 260.9 MB, free: 9.258 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.01156, allocations: 19.98 kB / 261 MB, free: 9.238 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.788e-05/0.01158, allocations: 15.98 kB / 261 MB, free: 9.223 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 9.804e-05/0.01167, allocations: 172.5 kB / 261.1 MB, free: 9.043 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.068e-05/0.01171, allocations: 35.8 kB / 261.2 MB, free: 9.008 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.633e-05/0.01174, allocations: 21.97 kB / 261.2 MB, free: 8.984 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.01175, allocations: 12.02 kB / 261.2 MB, free: 8.973 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.01175, allocations: 0 / 261.2 MB, free: 8.973 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.01175, allocations: 0 / 261.2 MB, free: 8.973 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005611/0.01232, allocations: 0.5481 MB / 261.8 MB, free: 8.379 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.01232, allocations: 0 / 261.8 MB, free: 8.379 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001172/0.01243, allocations: 39.97 kB / 261.8 MB, free: 8.34 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001089/0.01254, allocations: 59.62 kB / 261.9 MB, free: 8.277 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.64e-05/0.01256, allocations: 8 kB / 261.9 MB, free: 8.27 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003371/0.0129, allocations: 0.8584 MB / 262.7 MB, free: 7.379 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.0129, allocations: 3.938 kB / 262.7 MB, free: 7.375 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004248/0.01332, allocations: 432.8 kB / 263.2 MB, free: 6.926 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.909e-05/0.01338, allocations: 35.83 kB / 263.2 MB, free: 6.891 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.68e-05/0.01341, allocations: 8 kB / 263.2 MB, free: 6.883 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.663e-05/0.0135, allocations: 23.91 kB / 263.2 MB, free: 6.859 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.643e-05/0.01358, allocations: 39.97 kB / 263.3 MB, free: 6.82 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.2e-05/0.01359, allocations: 4 kB / 263.3 MB, free: 6.816 MB / 250.7 MB Notification: Performance of sorting global known variables: time 8.323e-05/0.01368, allocations: 175.4 kB / 263.4 MB, free: 6.645 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01368, allocations: 0 / 263.4 MB, free: 6.645 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002424/0.01392, allocations: 71.94 kB / 263.5 MB, free: 6.574 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.0001764/0.0141, allocations: 127.2 kB / 263.6 MB, free: 6.441 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003807/0.01448, allocations: 268.6 kB / 263.9 MB, free: 6.156 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.01448, allocations: 0 / 263.9 MB, free: 6.156 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001427/0.01462, allocations: 115.6 kB / 264 MB, free: 6.039 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002861/0.01491, allocations: 66.61 kB / 264.1 MB, free: 5.977 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001038/0.01594, allocations: 0.5497 MB / 264.6 MB, free: 5.395 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.787e-05/0.01599, allocations: 84.34 kB / 264.7 MB, free: 5.293 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.383e-05/0.01606, allocations: 25.94 kB / 264.7 MB, free: 5.266 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.963e-05/0.01614, allocations: 24.5 kB / 264.7 MB, free: 5.242 MB / 250.7 MB Notification: Performance of SimCode: time 7.12e-07/0.01614, allocations: 0 / 264.7 MB, free: 5.242 MB / 250.7 MB Notification: Performance of Templates: time 0.005804/0.02194, allocations: 3.621 MB / 268.4 MB, free: 1.648 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.7868314562365413]