Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.0007864/0.0007864, allocations: 81.05 kB / 10.02 MB, free: 0.6719 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001123/0.001909, allocations: 453.8 kB / 10.46 MB, free: 236 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.0007075/0.0007075, allocations: 165.1 kB / 11.36 MB, free: 2.812 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001023/0.00173, allocations: 483.5 kB / 11.83 MB, free: 2.336 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.8689/0.8689, allocations: 158.6 MB / 171.2 MB, free: 2.5 MB / 170.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1521/1.021, allocations: 49.5 MB / 220.7 MB, free: 1.355 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.OneWayClutchDisengaged,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.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,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.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.694e-06/1.694e-06, allocations: 0 / 222 MB, free: 72 kB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.806e-05/2.976e-05, allocations: 2.312 kB / 222 MB, free: 68 kB / 218.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004555/0.004585, allocations: 2.288 MB / 224.3 MB, free: 13.75 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001454/0.006039, allocations: 0.7213 MB / 225 MB, free: 13.02 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001255/0.006165, allocations: 3.938 kB / 225 MB, free: 13.02 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001573/0.006322, allocations: 39.66 kB / 225 MB, free: 12.98 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001996/0.006522, allocations: 79.34 kB / 225.1 MB, free: 12.9 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003431/0.006865, allocations: 95.73 kB / 225.2 MB, free: 12.81 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003242/0.007189, allocations: 263.3 kB / 225.5 MB, free: 12.55 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001483/0.007337, allocations: 54.42 kB / 225.5 MB, free: 12.5 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003089/0.007646, allocations: 171.6 kB / 225.7 MB, free: 12.33 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000223/0.007869, allocations: 91.75 kB / 225.8 MB, free: 12.24 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.842e-05/0.007908, allocations: 16 kB / 225.8 MB, free: 12.23 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001861/0.008094, allocations: 79.94 kB / 225.9 MB, free: 12.15 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.451e-05/0.008158, allocations: 31.88 kB / 225.9 MB, free: 12.12 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.31e-05/0.008242, allocations: 71.88 kB / 226 MB, free: 12.05 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003185/0.00856, allocations: 187.3 kB / 226.1 MB, free: 11.86 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.28e-05/0.008573, allocations: 0 / 226.1 MB, free: 11.86 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.032e-06/0.008574, allocations: 0 / 226.1 MB, free: 11.86 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.419e-05/0.008588, allocations: 4 kB / 226.1 MB, free: 11.86 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0008099/0.009398, allocations: 467.9 kB / 226.6 MB, free: 11.38 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.009441, allocations: 8.031 kB / 226.6 MB, free: 11.37 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.697e-05/0.009528, allocations: 32.91 kB / 226.6 MB, free: 11.34 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002668/0.009794, allocations: 165.4 kB / 226.8 MB, free: 11.15 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.245e-05/0.009827, allocations: 16.88 kB / 226.8 MB, free: 11.14 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.836e-05/0.009875, allocations: 16.38 kB / 226.8 MB, free: 11.12 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003393/0.01021, allocations: 191.7 kB / 227 MB, free: 10.91 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.848e-05/0.01023, allocations: 192 / 227 MB, free: 10.91 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.506e-05/0.01026, allocations: 12.38 kB / 227 MB, free: 10.9 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.01027, allocations: 7.938 kB / 227 MB, free: 10.89 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001588/0.01043, allocations: 61.08 kB / 227.1 MB, free: 10.84 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008608/0.01129, allocations: 0.5085 MB / 227.6 MB, free: 10.3 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002546/0.01154, allocations: 94.31 kB / 227.7 MB, free: 10.2 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.331e-05/0.01161, allocations: 32.84 kB / 227.7 MB, free: 10.17 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.03e-05/0.01163, allocations: 4 kB / 227.7 MB, free: 10.16 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.72e-05/0.01166, allocations: 30.56 kB / 227.8 MB, free: 10.12 MB / 234.7 MB Notification: Performance of pre-optimization done (n=18): time 1.904e-06/0.01166, allocations: 0 / 227.8 MB, free: 10.12 MB / 234.7 MB Notification: Performance of matching and sorting (n=20): time 0.001342/0.013, allocations: 0.6519 MB / 228.4 MB, free: 9.398 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.829e-05/0.01303, allocations: 55.41 kB / 228.5 MB, free: 9.332 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001523/0.01318, allocations: 182.5 kB / 228.7 MB, free: 9.141 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.591e-05/0.01321, allocations: 33.7 kB / 228.7 MB, free: 9.102 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.569e-05/0.01328, allocations: 136.3 kB / 228.8 MB, free: 8.965 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.262e-05/0.01334, allocations: 75.39 kB / 228.9 MB, free: 8.891 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.034e-05/0.01342, allocations: 53.64 kB / 228.9 MB, free: 8.832 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001/0.01352, allocations: 342.7 kB / 229.3 MB, free: 8.488 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.298e-05/0.0136, allocations: 31.98 kB / 229.3 MB, free: 8.457 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.555e-05/0.01368, allocations: 67.62 kB / 229.4 MB, free: 8.379 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000158/0.01384, allocations: 112.5 kB / 229.5 MB, free: 8.258 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.01384, allocations: 0 / 229.5 MB, free: 8.258 MB / 234.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002673/0.01411, allocations: 175.9 kB / 229.7 MB, free: 8.078 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.01413, allocations: 7.938 kB / 229.7 MB, free: 8.07 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.945e-06/0.01414, allocations: 4 kB / 229.7 MB, free: 8.066 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001843/0.01432, allocations: 48.88 kB / 229.7 MB, free: 8.016 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001461/0.01447, allocations: 47.92 kB / 229.8 MB, free: 7.969 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003964/0.01486, allocations: 0.5719 MB / 230.3 MB, free: 7.371 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.01499, allocations: 15.98 kB / 230.4 MB, free: 7.355 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.702e-05/0.01501, allocations: 8 kB / 230.4 MB, free: 7.348 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.01511, allocations: 128.6 kB / 230.5 MB, free: 7.211 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.304e-05/0.01516, allocations: 15.98 kB / 230.5 MB, free: 7.195 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.398e-05/0.0152, allocations: 25.8 kB / 230.5 MB, free: 7.176 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.0152, allocations: 0 / 230.5 MB, free: 7.176 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.177e-06/0.01521, allocations: 4 kB / 230.5 MB, free: 7.172 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.01521, allocations: 3.938 kB / 230.5 MB, free: 7.168 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005563/0.01577, allocations: 359.9 kB / 230.9 MB, free: 6.785 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.387e-06/0.01577, allocations: 0 / 230.9 MB, free: 6.785 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001535/0.01592, allocations: 39.98 kB / 230.9 MB, free: 6.746 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.093e-05/0.01598, allocations: 23.83 kB / 231 MB, free: 6.723 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001383/0.01612, allocations: 44.83 kB / 231 MB, free: 6.676 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.614e-05/0.01614, allocations: 11.98 kB / 231 MB, free: 6.664 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003429/0.01648, allocations: 0.5641 MB / 231.6 MB, free: 6.074 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.01648, allocations: 3.938 kB / 231.6 MB, free: 6.07 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003418/0.01683, allocations: 285.9 kB / 231.9 MB, free: 5.766 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.069e-05/0.01686, allocations: 8.047 kB / 231.9 MB, free: 5.758 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000133/0.01699, allocations: 19.97 kB / 231.9 MB, free: 5.738 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.685e-05/0.01706, allocations: 23.89 kB / 231.9 MB, free: 5.715 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.172e-05/0.01707, allocations: 4 kB / 231.9 MB, free: 5.711 MB / 234.7 MB Notification: Performance of sorting global known variables: time 6.324e-05/0.01713, allocations: 46.39 kB / 232 MB, free: 5.664 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.01713, allocations: 0 / 232 MB, free: 5.664 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.0003078/0.01744, allocations: 67.94 kB / 232 MB, free: 5.598 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001877/0.01763, allocations: 104.3 kB / 232.1 MB, free: 5.484 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.0003035/0.01793, allocations: 133.7 kB / 232.3 MB, free: 5.352 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/0.01794, allocations: 4 kB / 232.3 MB, free: 5.348 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001728/0.01811, allocations: 85.81 kB / 232.3 MB, free: 5.262 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.01852, allocations: 299.2 kB / 232.6 MB, free: 4.914 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003694/0.02221, allocations: 496.3 kB / 233.1 MB, free: 4.398 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.649e-05/0.02229, allocations: 79.97 kB / 233.2 MB, free: 4.301 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 8.834e-05/0.02238, allocations: 21.95 kB / 233.2 MB, free: 4.277 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001254/0.0225, allocations: 79.36 kB / 233.3 MB, free: 4.199 MB / 234.7 MB Notification: Performance of SimCode: time 1.072e-06/0.02251, allocations: 3.938 kB / 233.3 MB, free: 4.195 MB / 234.7 MB Notification: Performance of Templates: time 0.009879/0.03238, allocations: 3.244 MB / 236.5 MB, free: 0.9688 MB / 234.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.6480438467115164]