Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009968/0.0009968, allocations: 79.59 kB / 21.18 MB, free: 3.383 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.00116/0.00116, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9682/0.9682, allocations: 177.1 MB / 205 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 273 MB, free: 1.562 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.188e-05/3.397e-05, allocations: 2.312 kB / 273 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004217/0.004251, allocations: 2.317 MB / 275.3 MB, free: 15.23 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.005929, allocations: 0.8489 MB / 276.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001534/0.006083, allocations: 4 kB / 276.1 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003116/0.006394, allocations: 51.5 kB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003692/0.006764, allocations: 119.1 kB / 276.3 MB, free: 14.2 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000315/0.007079, allocations: 83.77 kB / 276.4 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004375/0.007516, allocations: 303.3 kB / 276.7 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00017/0.007686, allocations: 39.94 kB / 276.7 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004689/0.008155, allocations: 183.6 kB / 276.9 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002662/0.008421, allocations: 107.7 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.018e-05/0.008471, allocations: 20 kB / 277 MB, free: 13.48 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000334/0.008805, allocations: 79.92 kB / 277.1 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.64e-05/0.008902, allocations: 63.73 kB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001082/0.00901, allocations: 83.81 kB / 277.2 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004538/0.009464, allocations: 247.1 kB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.009468, allocations: 0 / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.143e-06/0.009469, allocations: 0 / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.933e-06/0.009476, allocations: 0 / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0009999/0.01048, allocations: 0.6063 MB / 278.1 MB, free: 12.36 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.436e-05/0.01052, allocations: 12.03 kB / 278.1 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002462/0.01077, allocations: 52.78 kB / 278.1 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003626/0.01113, allocations: 210.5 kB / 278.3 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.281e-05/0.01116, allocations: 12.38 kB / 278.4 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.456e-05/0.01122, allocations: 16.38 kB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004278/0.01164, allocations: 193.4 kB / 278.6 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.206e-05/0.01167, allocations: 4.188 kB / 278.6 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.903e-05/0.01169, allocations: 4.375 kB / 278.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.293e-05/0.01171, allocations: 7.938 kB / 278.6 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002575/0.01197, allocations: 91.86 kB / 278.7 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009567/0.01292, allocations: 0.627 MB / 279.3 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003881/0.01331, allocations: 142.9 kB / 279.4 MB, free: 10.91 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.01344, allocations: 55.66 kB / 279.5 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.682e-05/0.01347, allocations: 8 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002695/0.01374, allocations: 125.2 kB / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 2.775e-06/0.01374, allocations: 0 / 279.6 MB, free: 10.71 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.001695/0.01543, allocations: 0.7375 MB / 280.4 MB, free: 9.91 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.623e-05/0.01548, allocations: 59.41 kB / 280.4 MB, free: 9.84 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002413/0.01572, allocations: 249.5 kB / 280.7 MB, free: 9.578 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.444e-05/0.01575, allocations: 29.7 kB / 280.7 MB, free: 9.543 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.867e-05/0.01583, allocations: 179.3 kB / 280.9 MB, free: 9.363 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.448e-05/0.01589, allocations: 91.2 kB / 281 MB, free: 9.273 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.842e-05/0.01597, allocations: 71.3 kB / 281 MB, free: 9.195 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.01611, allocations: 0.5001 MB / 281.5 MB, free: 8.684 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.01622, allocations: 81.42 kB / 281.6 MB, free: 8.598 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001197/0.01634, allocations: 128.4 kB / 281.7 MB, free: 8.449 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001824/0.01652, allocations: 169.4 kB / 281.9 MB, free: 8.262 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.01652, allocations: 4 kB / 281.9 MB, free: 8.258 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003907/0.01692, allocations: 322.2 kB / 282.2 MB, free: 7.922 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.01694, allocations: 37.69 kB / 282.3 MB, free: 7.879 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.01695, allocations: 0 / 282.3 MB, free: 7.879 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001461/0.01709, allocations: 47.73 kB / 282.3 MB, free: 7.828 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/0.01721, allocations: 51.91 kB / 282.3 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001437/0.01865, allocations: 2.14 MB / 284.5 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.01877, allocations: 28.08 kB / 284.5 MB, free: 5.492 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.847e-05/0.01879, allocations: 15.98 kB / 284.5 MB, free: 5.477 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 (31): * Single equations (assignments): 29 * 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.0001018/0.01889, allocations: 180.5 kB / 284.7 MB, free: 5.289 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.301e-05/0.01893, allocations: 27.86 kB / 284.7 MB, free: 5.262 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.265e-05/0.01896, allocations: 34.64 kB / 284.8 MB, free: 5.227 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.037e-06/0.01896, allocations: 4 kB / 284.8 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.01897, allocations: 0 / 284.8 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.131e-06/0.01897, allocations: 3.938 kB / 284.8 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005669/0.01954, allocations: 0.5679 MB / 285.3 MB, free: 4.605 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.01954, allocations: 3.938 kB / 285.3 MB, free: 4.602 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.01966, allocations: 35.97 kB / 285.4 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.805e-05/0.01975, allocations: 47.8 kB / 285.4 MB, free: 4.516 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.596e-05/0.01977, allocations: 8 kB / 285.4 MB, free: 4.508 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000989/0.02076, allocations: 1.92 MB / 287.4 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.02076, allocations: 0 / 287.4 MB, free: 2.465 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004199/0.02118, allocations: 440.4 kB / 287.8 MB, free: 2.012 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.105e-05/0.02124, allocations: 35.86 kB / 287.8 MB, free: 1.977 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.254e-05/0.02126, allocations: 8 kB / 287.8 MB, free: 1.969 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.02136, allocations: 19.98 kB / 287.8 MB, free: 1.949 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.02148, allocations: 67.86 kB / 287.9 MB, free: 1.883 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.251e-05/0.0215, allocations: 8 kB / 287.9 MB, free: 1.875 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.804e-05/0.02159, allocations: 181 kB / 288.1 MB, free: 1.699 MB / 266.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.02159, allocations: 0 / 288.1 MB, free: 1.699 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003063/0.0219, allocations: 75.98 kB / 288.2 MB, free: 1.625 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 (21): * Single equations (assignments): 18 * 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.000899/0.0228, allocations: 348.3 kB / 288.5 MB, free: 1.395 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005907/0.02339, allocations: 443.4 kB / 288.9 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.02339, allocations: 0 / 288.9 MB, free: 0.9219 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002607/0.02365, allocations: 293.7 kB / 289.2 MB, free: 0.6133 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.02395, allocations: 59.88 kB / 289.3 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001099/0.02505, allocations: 0.5698 MB / 289.9 MB, free: 15.96 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.269e-05/0.02511, allocations: 92.25 kB / 290 MB, free: 15.85 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 7.996e-05/0.02519, allocations: 21.94 kB / 290 MB, free: 15.83 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.857e-05/0.02525, allocations: 24.5 kB / 290 MB, free: 15.8 MB / 282.7 MB Notification: Performance of SimCode: time 7.11e-07/0.02525, allocations: 4 kB / 290 MB, free: 15.8 MB / 282.7 MB Notification: Performance of Templates: time 0.006811/0.03206, allocations: 4.58 MB / 294.6 MB, free: 11.27 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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: 3.0428662900812924]