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.001094/0.001094, allocations: 85.05 kB / 21.5 MB, free: 2.992 MB / 18.57 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.001062/0.001062, allocations: 148.2 kB / 24.89 MB, free: 9.164 MB / 18.57 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.9726/0.9726, allocations: 173.4 MB / 201.5 MB, free: 9.227 MB / 186.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.343e-06/1.343e-06, allocations: 0 / 268.5 MB, free: 6.188 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.973e-05/2.107e-05, allocations: 2.312 kB / 268.5 MB, free: 6.184 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002517/0.002538, allocations: 2.223 MB / 270.7 MB, free: 3.949 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009852/0.003523, allocations: 0.7086 MB / 271.4 MB, free: 3.234 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001006/0.003624, allocations: 7.938 kB / 271.4 MB, free: 3.227 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001717/0.003795, allocations: 27.72 kB / 271.5 MB, free: 3.199 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001548/0.00395, allocations: 75.41 kB / 271.5 MB, free: 3.125 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002942/0.004244, allocations: 99.67 kB / 271.6 MB, free: 3.027 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002309/0.004475, allocations: 287.3 kB / 271.9 MB, free: 2.746 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.872e-05/0.004574, allocations: 42.53 kB / 272 MB, free: 2.703 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000187/0.004761, allocations: 175.6 kB / 272.1 MB, free: 2.531 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001431/0.004904, allocations: 95.75 kB / 272.2 MB, free: 2.438 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.907e-05/0.004933, allocations: 20 kB / 272.2 MB, free: 2.418 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001213/0.005054, allocations: 79.94 kB / 272.3 MB, free: 2.34 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.699e-05/0.005111, allocations: 51.81 kB / 272.4 MB, free: 2.289 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.576e-05/0.005177, allocations: 71.83 kB / 272.4 MB, free: 2.219 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002405/0.005418, allocations: 235.2 kB / 272.7 MB, free: 1.988 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.104e-06/0.00542, allocations: 0 / 272.7 MB, free: 1.988 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.22e-07/0.00542, allocations: 0 / 272.7 MB, free: 1.988 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.817e-06/0.005424, allocations: 4 kB / 272.7 MB, free: 1.984 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.0005599/0.005984, allocations: 461.4 kB / 273.1 MB, free: 1.504 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.006018, allocations: 8.031 kB / 273.1 MB, free: 1.496 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001453/0.006163, allocations: 36.91 kB / 273.2 MB, free: 1.461 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001884/0.006351, allocations: 161.4 kB / 273.3 MB, free: 1.277 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.006373, allocations: 20.36 kB / 273.4 MB, free: 1.258 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.341e-05/0.006406, allocations: 16.38 kB / 273.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002326/0.006639, allocations: 188.4 kB / 273.6 MB, free: 1.043 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.006654, allocations: 8.141 kB / 273.6 MB, free: 1.035 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.737e-05/0.006671, allocations: 12.38 kB / 273.6 MB, free: 1.023 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.596e-06/0.00668, allocations: 7.938 kB / 273.6 MB, free: 1.016 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001108/0.006791, allocations: 67.88 kB / 273.6 MB, free: 0.9492 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005467/0.007337, allocations: 423.9 kB / 274.1 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001958/0.007533, allocations: 118.4 kB / 274.2 MB, free: 400 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.559e-05/0.007579, allocations: 36.84 kB / 274.2 MB, free: 360 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.709e-05/0.007596, allocations: 4 kB / 274.2 MB, free: 356 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001258/0.007722, allocations: 111.7 kB / 274.3 MB, free: 232 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.283e-06/0.007723, allocations: 0 / 274.3 MB, free: 232 kB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.0008669/0.00859, allocations: 0.6194 MB / 274.9 MB, free: 15.55 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.079e-05/0.008621, allocations: 59.41 kB / 275 MB, free: 15.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001008/0.008721, allocations: 183.3 kB / 275.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.008739, allocations: 33.7 kB / 275.2 MB, free: 15.25 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.142e-05/0.00879, allocations: 128.4 kB / 275.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.867e-05/0.008839, allocations: 99.19 kB / 275.4 MB, free: 15.02 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.55e-05/0.008905, allocations: 61.66 kB / 275.5 MB, free: 14.95 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.363e-05/0.008978, allocations: 326.8 kB / 275.8 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.673e-05/0.009045, allocations: 70 kB / 275.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.928e-05/0.009124, allocations: 113.6 kB / 276 MB, free: 14.42 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001228/0.009247, allocations: 151.8 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.009248, allocations: 3.938 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002552/0.009504, allocations: 258.7 kB / 276.4 MB, free: 13.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.009529, allocations: 33.7 kB / 276.4 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.881e-06/0.009535, allocations: 4 kB / 276.4 MB, free: 13.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001224/0.009657, allocations: 44.81 kB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000117/0.009774, allocations: 51.92 kB / 276.5 MB, free: 13.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004029/0.01018, allocations: 0.5719 MB / 277.1 MB, free: 13.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.945e-05/0.01028, allocations: 23.98 kB / 277.1 MB, free: 13.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.378e-05/0.01029, allocations: 8 kB / 277.1 MB, free: 13.21 MB / 266.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 8.26e-05/0.01037, allocations: 132.6 kB / 277.3 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.292e-05/0.0104, allocations: 19.98 kB / 277.3 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.561e-05/0.01043, allocations: 33.98 kB / 277.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.01044, allocations: 7.938 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.01044, allocations: 4.031 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.01044, allocations: 0 / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000398/0.01084, allocations: 388.1 kB / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.01084, allocations: 0 / 277.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001108/0.01095, allocations: 35.98 kB / 277.7 MB, free: 12.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.214e-05/0.01104, allocations: 44.81 kB / 277.8 MB, free: 12.51 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.01105, allocations: 8 kB / 277.8 MB, free: 12.5 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002298/0.01128, allocations: 0.5717 MB / 278.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.01128, allocations: 0 / 278.4 MB, free: 11.9 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003032/0.01158, allocations: 313.1 kB / 278.7 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.644e-05/0.01163, allocations: 19.86 kB / 278.7 MB, free: 11.56 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.667e-05/0.01165, allocations: 4 kB / 278.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.136e-05/0.01175, allocations: 23.97 kB / 278.7 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.349e-05/0.01181, allocations: 35.94 kB / 278.8 MB, free: 11.5 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.689e-06/0.01182, allocations: 7.969 kB / 278.8 MB, free: 11.49 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.028e-05/0.01186, allocations: 60.95 kB / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01186, allocations: 0 / 278.8 MB, free: 11.43 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001892/0.01205, allocations: 75.92 kB / 278.9 MB, free: 11.35 MB / 266.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.000128/0.01218, allocations: 108.3 kB / 279 MB, free: 11.24 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002704/0.01245, allocations: 233.7 kB / 279.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.446e-06/0.01245, allocations: 0 / 279.2 MB, free: 10.99 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001061/0.01256, allocations: 92.73 kB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002006/0.01276, allocations: 48.23 kB / 279.4 MB, free: 10.85 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000764/0.01352, allocations: 496.5 kB / 279.9 MB, free: 10.33 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.668e-05/0.01357, allocations: 84.31 kB / 279.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.247e-05/0.01364, allocations: 21.95 kB / 280 MB, free: 10.2 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001015/0.01374, allocations: 87.36 kB / 280 MB, free: 10.12 MB / 266.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01374, allocations: 0 / 280 MB, free: 10.12 MB / 266.7 MB Notification: Performance of Templates: time 0.005507/0.01925, allocations: 3.875 MB / 283.9 MB, free: 6.301 MB / 266.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 -s gbode -gbm=radauIIA3 -emit_protected -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.8190323119051754]