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.001434/0.001434, allocations: 80.92 kB / 22.29 MB, free: 2.207 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.001287/0.001287, allocations: 168.1 kB / 25.7 MB, free: 8.434 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.9558/0.9558, allocations: 158.6 MB / 187.6 MB, free: 2.781 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.984e-06/1.984e-06, allocations: 0 / 251.6 MB, free: 7.254 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.052e-05/3.25e-05, allocations: 6.25 kB / 251.6 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004092/0.004124, allocations: 2.234 MB / 253.8 MB, free: 4.996 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001598/0.005722, allocations: 0.7369 MB / 254.5 MB, free: 4.246 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001628/0.005885, allocations: 3.938 kB / 254.5 MB, free: 4.242 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002102/0.006095, allocations: 31.66 kB / 254.6 MB, free: 4.211 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002305/0.006326, allocations: 71.41 kB / 254.6 MB, free: 4.141 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000446/0.006772, allocations: 107.7 kB / 254.7 MB, free: 4.035 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003773/0.007149, allocations: 291.3 kB / 255 MB, free: 3.75 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001386/0.007288, allocations: 34.55 kB / 255.1 MB, free: 3.719 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003188/0.007606, allocations: 171.6 kB / 255.2 MB, free: 3.551 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002223/0.007829, allocations: 103.7 kB / 255.3 MB, free: 3.449 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.102e-05/0.00787, allocations: 20 kB / 255.3 MB, free: 3.43 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001783/0.008048, allocations: 75.84 kB / 255.4 MB, free: 3.355 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.681e-05/0.008125, allocations: 51.83 kB / 255.5 MB, free: 3.305 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.49e-05/0.00822, allocations: 79.81 kB / 255.5 MB, free: 3.227 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003648/0.008585, allocations: 239.2 kB / 255.8 MB, free: 2.992 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.008589, allocations: 0 / 255.8 MB, free: 2.992 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.00859, allocations: 0 / 255.8 MB, free: 2.992 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.008596, allocations: 0 / 255.8 MB, free: 2.992 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.000772/0.009368, allocations: 453.5 kB / 256.2 MB, free: 2.52 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.091e-05/0.009409, allocations: 15.98 kB / 256.2 MB, free: 2.504 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.977e-05/0.009478, allocations: 28.91 kB / 256.3 MB, free: 2.477 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002545/0.009733, allocations: 165.4 kB / 256.4 MB, free: 2.289 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.066e-05/0.009764, allocations: 16.38 kB / 256.4 MB, free: 2.273 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.319e-05/0.009807, allocations: 20.38 kB / 256.5 MB, free: 2.254 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003207/0.01013, allocations: 192.4 kB / 256.7 MB, free: 2.051 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.554e-05/0.01014, allocations: 4.188 kB / 256.7 MB, free: 2.047 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.927e-05/0.01016, allocations: 8.375 kB / 256.7 MB, free: 2.039 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.32e-05/0.01018, allocations: 11.92 kB / 256.7 MB, free: 2.027 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000146/0.01032, allocations: 59.95 kB / 256.7 MB, free: 1.969 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007406/0.01106, allocations: 435.8 kB / 257.2 MB, free: 1.523 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002729/0.01133, allocations: 114 kB / 257.3 MB, free: 1.406 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.353e-05/0.01141, allocations: 40.84 kB / 257.3 MB, free: 1.363 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.207e-05/0.01143, allocations: 8 kB / 257.3 MB, free: 1.355 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/0.01161, allocations: 107.6 kB / 257.4 MB, free: 1.238 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.834e-06/0.01161, allocations: 0 / 257.4 MB, free: 1.238 MB / 234.7 MB Notification: Performance of matching and sorting (n=26): time 0.001232/0.01284, allocations: 0.6255 MB / 258.1 MB, free: 0.5547 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.203e-05/0.01288, allocations: 51.41 kB / 258.1 MB, free: 0.4922 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.01303, allocations: 183.3 kB / 258.3 MB, free: 308 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.595e-05/0.01306, allocations: 33.7 kB / 258.3 MB, free: 268 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.301e-05/0.01314, allocations: 128.5 kB / 258.4 MB, free: 136 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.22e-05/0.01322, allocations: 95.19 kB / 258.5 MB, free: 40 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001185/0.01333, allocations: 61.67 kB / 258.6 MB, free: 15.97 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.01346, allocations: 334.8 kB / 258.9 MB, free: 15.64 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001086/0.01357, allocations: 62.02 kB / 259 MB, free: 15.57 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.01369, allocations: 110 kB / 259.1 MB, free: 15.44 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001941/0.01389, allocations: 151.7 kB / 259.2 MB, free: 15.28 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.01389, allocations: 0 / 259.2 MB, free: 15.28 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003927/0.01428, allocations: 261.8 kB / 259.5 MB, free: 15 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.513e-05/0.01433, allocations: 37.64 kB / 259.5 MB, free: 14.96 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.063e-06/0.01434, allocations: 0 / 259.5 MB, free: 14.96 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001932/0.01453, allocations: 56.92 kB / 259.6 MB, free: 14.9 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001856/0.01471, allocations: 55.91 kB / 259.6 MB, free: 14.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003628/0.01508, allocations: 0.5717 MB / 260.2 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001456/0.01522, allocations: 23.98 kB / 260.2 MB, free: 14.22 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.961e-05/0.01524, allocations: 8 kB / 260.2 MB, free: 14.21 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.0001045/0.01535, allocations: 124.7 kB / 260.4 MB, free: 14.08 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.457e-05/0.01538, allocations: 31.94 kB / 260.4 MB, free: 14.05 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.89e-05/0.01543, allocations: 25.97 kB / 260.4 MB, free: 14.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.01543, allocations: 7.938 kB / 260.4 MB, free: 14.01 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.01544, allocations: 4 kB / 260.4 MB, free: 14.01 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.01544, allocations: 3.984 kB / 260.4 MB, free: 14 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005612/0.01601, allocations: 367.9 kB / 260.8 MB, free: 13.62 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.805e-06/0.01601, allocations: 0 / 260.8 MB, free: 13.62 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001683/0.01618, allocations: 35.98 kB / 260.8 MB, free: 13.58 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001288/0.01631, allocations: 56.75 kB / 260.9 MB, free: 13.52 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.701e-05/0.01632, allocations: 4 kB / 260.9 MB, free: 13.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003189/0.01664, allocations: 0.5679 MB / 261.5 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01664, allocations: 0 / 261.5 MB, free: 12.93 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004036/0.01705, allocations: 313.6 kB / 261.8 MB, free: 12.6 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.754e-05/0.01711, allocations: 19.89 kB / 261.8 MB, free: 12.58 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.561e-05/0.01715, allocations: 8 kB / 261.8 MB, free: 12.57 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.01729, allocations: 24.02 kB / 261.8 MB, free: 12.55 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.008e-05/0.01738, allocations: 35.92 kB / 261.8 MB, free: 12.51 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.624e-05/0.0174, allocations: 7.938 kB / 261.9 MB, free: 12.5 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.363e-05/0.01746, allocations: 56.95 kB / 261.9 MB, free: 12.45 MB / 250.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01746, allocations: 0 / 261.9 MB, free: 12.45 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003349/0.0178, allocations: 71.94 kB / 262 MB, free: 12.38 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.0001895/0.01799, allocations: 108.3 kB / 262.1 MB, free: 12.26 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003703/0.01836, allocations: 237.7 kB / 262.3 MB, free: 12 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.91e-06/0.01836, allocations: 3.938 kB / 262.3 MB, free: 12 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001565/0.01852, allocations: 92.67 kB / 262.4 MB, free: 11.91 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002978/0.01882, allocations: 51.98 kB / 262.5 MB, free: 11.86 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00115/0.01997, allocations: 495.6 kB / 262.9 MB, free: 11.34 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.494e-05/0.02003, allocations: 80.33 kB / 263 MB, free: 11.25 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 9.898e-05/0.02013, allocations: 25.94 kB / 263.1 MB, free: 11.22 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001443/0.02027, allocations: 87.34 kB / 263.1 MB, free: 11.14 MB / 250.7 MB Notification: Performance of SimCode: time 1.493e-06/0.02028, allocations: 0 / 263.1 MB, free: 11.14 MB / 250.7 MB Notification: Performance of Templates: time 0.0109/0.03117, allocations: 3.872 MB / 267 MB, free: 7.293 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 -s gbode -gbm=radauIIA3 -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.6954452279023826]