Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007963/0.0007963, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00133/0.002127, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001431/0.001431, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001865/0.003296, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9543/0.9543, allocations: 173.4 MB / 185.8 MB, free: 9 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09045/1.045, allocations: 52.49 MB / 238.3 MB, free: 4.445 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.472e-06/1.472e-06, allocations: 3.938 kB / 239.5 MB, free: 3.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.028e-05/2.175e-05, allocations: 2.312 kB / 239.5 MB, free: 3.203 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.006642/0.006663, allocations: 2.229 MB / 241.8 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001428/0.008091, allocations: 0.7048 MB / 242.5 MB, free: 260 kB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000134/0.008225, allocations: 3.938 kB / 242.5 MB, free: 256 kB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.008367, allocations: 35.72 kB / 242.5 MB, free: 220 kB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001968/0.008564, allocations: 79.28 kB / 242.6 MB, free: 140 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003379/0.008902, allocations: 91.81 kB / 242.7 MB, free: 48 kB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.002458/0.01136, allocations: 283.4 kB / 243 MB, free: 15.77 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.01149, allocations: 50.41 kB / 243 MB, free: 15.72 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003405/0.01184, allocations: 187.5 kB / 243.2 MB, free: 15.54 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001976/0.01203, allocations: 103.8 kB / 243.3 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.068e-05/0.01207, allocations: 20 kB / 243.3 MB, free: 15.41 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001785/0.01225, allocations: 75.92 kB / 243.4 MB, free: 15.34 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.802e-05/0.01232, allocations: 39.88 kB / 243.4 MB, free: 15.3 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.773e-05/0.01241, allocations: 67.81 kB / 243.5 MB, free: 15.23 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003193/0.01273, allocations: 191.3 kB / 243.7 MB, free: 15.05 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.609e-05/0.01274, allocations: 0 / 243.7 MB, free: 15.05 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.042e-06/0.01274, allocations: 0 / 243.7 MB, free: 15.05 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.64e-05/0.01276, allocations: 0 / 243.7 MB, free: 15.05 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.0008217/0.01358, allocations: 0.5049 MB / 244.2 MB, free: 14.51 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.01362, allocations: 8.031 kB / 244.2 MB, free: 14.5 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.116e-05/0.01369, allocations: 36.91 kB / 244.2 MB, free: 14.47 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.01391, allocations: 157.5 kB / 244.4 MB, free: 14.29 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.549e-05/0.01394, allocations: 16.38 kB / 244.4 MB, free: 14.27 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.098e-05/0.01398, allocations: 20.33 kB / 244.4 MB, free: 14.25 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003187/0.0143, allocations: 192.4 kB / 244.6 MB, free: 14.05 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.526e-05/0.01432, allocations: 192 / 244.6 MB, free: 14.05 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.941e-05/0.01433, allocations: 8.375 kB / 244.6 MB, free: 14.04 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.137e-06/0.01434, allocations: 11.94 kB / 244.6 MB, free: 14.03 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001492/0.01449, allocations: 67.84 kB / 244.7 MB, free: 13.96 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006917/0.01518, allocations: 435.8 kB / 245.1 MB, free: 13.52 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000271/0.01546, allocations: 122.2 kB / 245.2 MB, free: 13.39 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.661e-05/0.01552, allocations: 36.84 kB / 245.3 MB, free: 13.35 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.937e-05/0.01554, allocations: 8 kB / 245.3 MB, free: 13.34 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001676/0.01571, allocations: 103.3 kB / 245.4 MB, free: 13.23 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.743e-06/0.01571, allocations: 0 / 245.4 MB, free: 13.23 MB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.001243/0.01695, allocations: 0.6146 MB / 246 MB, free: 12.56 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.01699, allocations: 55.41 kB / 246 MB, free: 12.49 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001082/0.0171, allocations: 183.3 kB / 246.2 MB, free: 12.3 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.017e-05/0.01712, allocations: 29.7 kB / 246.3 MB, free: 12.26 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.718e-05/0.01717, allocations: 140.4 kB / 246.4 MB, free: 12.12 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.439e-05/0.01722, allocations: 91.19 kB / 246.5 MB, free: 12.03 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.769e-05/0.01728, allocations: 57.69 kB / 246.5 MB, free: 11.97 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.747e-05/0.01735, allocations: 338.8 kB / 246.9 MB, free: 11.63 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.219e-05/0.01741, allocations: 62.02 kB / 246.9 MB, free: 11.56 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.578e-05/0.01749, allocations: 125.3 kB / 247 MB, free: 11.42 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001147/0.01761, allocations: 147.8 kB / 247.2 MB, free: 11.26 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.01761, allocations: 0 / 247.2 MB, free: 11.26 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002499/0.01786, allocations: 270.6 kB / 247.5 MB, free: 10.97 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.634e-05/0.01789, allocations: 33.7 kB / 247.5 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.0179, allocations: 0 / 247.5 MB, free: 10.93 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001187/0.01802, allocations: 48.81 kB / 247.5 MB, free: 10.88 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001175/0.01813, allocations: 55.92 kB / 247.6 MB, free: 10.83 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002533/0.01839, allocations: 0.5719 MB / 248.2 MB, free: 10.23 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.59e-05/0.01848, allocations: 24.08 kB / 248.2 MB, free: 10.21 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.49e-05/0.0185, allocations: 15.98 kB / 248.2 MB, free: 10.19 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 7.838e-05/0.01858, allocations: 132.6 kB / 248.3 MB, free: 10.05 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.48e-05/0.0186, allocations: 19.98 kB / 248.4 MB, free: 10.03 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.154e-05/0.01864, allocations: 29.95 kB / 248.4 MB, free: 10 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.488e-06/0.01865, allocations: 7.938 kB / 248.4 MB, free: 9.992 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.106e-06/0.01865, allocations: 0 / 248.4 MB, free: 9.992 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.01865, allocations: 0 / 248.4 MB, free: 9.992 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004022/0.01906, allocations: 388.8 kB / 248.8 MB, free: 9.582 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-06/0.01906, allocations: 0 / 248.8 MB, free: 9.582 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.01917, allocations: 43.97 kB / 248.8 MB, free: 9.539 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.167e-05/0.01921, allocations: 19.91 kB / 248.8 MB, free: 9.52 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.133e-05/0.01929, allocations: 48.81 kB / 248.9 MB, free: 9.469 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.0193, allocations: 4 kB / 248.9 MB, free: 9.465 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002193/0.01952, allocations: 0.5717 MB / 249.5 MB, free: 8.867 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.01952, allocations: 4.031 kB / 249.5 MB, free: 8.863 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002631/0.01979, allocations: 305 kB / 249.8 MB, free: 8.547 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.776e-05/0.01981, allocations: 11.98 kB / 249.8 MB, free: 8.535 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.753e-05/0.0199, allocations: 15.98 kB / 249.8 MB, free: 8.52 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.963e-05/0.01996, allocations: 35.94 kB / 249.8 MB, free: 8.484 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.096e-05/0.01997, allocations: 7.922 kB / 249.8 MB, free: 8.477 MB / 250.7 MB Notification: Performance of sorting global known variables: time 4.244e-05/0.02001, allocations: 57.02 kB / 249.9 MB, free: 8.418 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02001, allocations: 0 / 249.9 MB, free: 8.418 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000191/0.02021, allocations: 72 kB / 250 MB, free: 8.348 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.00014/0.02035, allocations: 108.3 kB / 250.1 MB, free: 8.234 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002609/0.02061, allocations: 237.6 kB / 250.3 MB, free: 7.98 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.117e-06/0.02062, allocations: 4 kB / 250.3 MB, free: 7.977 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.02072, allocations: 88.75 kB / 250.4 MB, free: 7.887 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002099/0.02093, allocations: 60.78 kB / 250.4 MB, free: 7.828 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.0231, allocations: 483.9 kB / 250.9 MB, free: 7.332 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.434e-05/0.02314, allocations: 84.33 kB / 251 MB, free: 7.23 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.35e-05/0.02322, allocations: 17.95 kB / 251 MB, free: 7.207 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.02332, allocations: 91.34 kB / 251.1 MB, free: 7.117 MB / 250.7 MB Notification: Performance of SimCode: time 9.12e-07/0.02332, allocations: 4 kB / 251.1 MB, free: 7.113 MB / 250.7 MB Notification: Performance of Templates: time 0.005526/0.02884, allocations: 3.965 MB / 255.1 MB, free: 3.199 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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.5861058067530394]