Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002351/0.002351, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002717/0.002717, allocations: 164.8 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.577/1.577, allocations: 177 MB / 204.5 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 272.2 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.079e-05/3.254e-05, allocations: 5.266 kB / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004668/0.0047, allocations: 2.279 MB / 274.5 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001918/0.006618, allocations: 0.8412 MB / 275.3 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002417/0.00686, allocations: 8 kB / 275.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002866/0.007146, allocations: 47.52 kB / 275.4 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003715/0.007518, allocations: 115.1 kB / 275.5 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003079/0.007826, allocations: 91.8 kB / 275.6 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004118/0.008238, allocations: 295.3 kB / 275.8 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001443/0.008382, allocations: 48.48 kB / 275.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003556/0.008737, allocations: 179.6 kB / 276.1 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002351/0.008972, allocations: 119.7 kB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.301e-05/0.009025, allocations: 20 kB / 276.2 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001737/0.009199, allocations: 75.91 kB / 276.3 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.393e-05/0.009293, allocations: 55.83 kB / 276.3 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001331/0.009426, allocations: 83.75 kB / 276.4 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005169/0.009943, allocations: 331 kB / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.009948, allocations: 0 / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.61e-07/0.009949, allocations: 0 / 276.7 MB, free: 13.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.693e-06/0.009955, allocations: 0 / 276.7 MB, free: 13.23 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.001209/0.01116, allocations: 0.6215 MB / 277.4 MB, free: 12.56 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.01121, allocations: 15.98 kB / 277.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002087/0.01142, allocations: 52.72 kB / 277.4 MB, free: 12.5 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.01177, allocations: 201.5 kB / 277.6 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.977e-05/0.0118, allocations: 16.38 kB / 277.6 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.449e-05/0.01185, allocations: 16.38 kB / 277.7 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004825/0.01233, allocations: 221.5 kB / 277.9 MB, free: 12.01 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.803e-05/0.01235, allocations: 8.172 kB / 277.9 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.785e-05/0.01238, allocations: 12.38 kB / 277.9 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.01239, allocations: 7.938 kB / 277.9 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004558/0.01284, allocations: 155.8 kB / 278.1 MB, free: 11.83 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001098/0.01394, allocations: 0.6544 MB / 278.7 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005549/0.0145, allocations: 190.9 kB / 278.9 MB, free: 10.93 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002265/0.01472, allocations: 87.64 kB / 279 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.509e-05/0.01475, allocations: 4 kB / 279 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003756/0.01512, allocations: 164.9 kB / 279.1 MB, free: 10.66 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.483e-06/0.01513, allocations: 0 / 279.1 MB, free: 10.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.002419/0.01754, allocations: 0.9225 MB / 280.1 MB, free: 9.68 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.894e-05/0.0176, allocations: 59.41 kB / 280.1 MB, free: 9.609 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003124/0.01792, allocations: 266.8 kB / 280.4 MB, free: 9.332 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.033e-05/0.01796, allocations: 33.7 kB / 280.4 MB, free: 9.293 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.0181, allocations: 187.2 kB / 280.6 MB, free: 9.105 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.01821, allocations: 95.22 kB / 280.7 MB, free: 9.012 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000144/0.01835, allocations: 71.34 kB / 280.8 MB, free: 8.934 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002938/0.01865, allocations: 0.5118 MB / 281.3 MB, free: 8.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002799/0.01892, allocations: 125.4 kB / 281.4 MB, free: 8.281 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003192/0.01924, allocations: 180.5 kB / 281.6 MB, free: 8.082 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005049/0.01975, allocations: 241.5 kB / 281.8 MB, free: 7.824 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01975, allocations: 0 / 281.8 MB, free: 7.824 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008756/0.02063, allocations: 422.1 kB / 282.2 MB, free: 7.391 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.437e-05/0.02067, allocations: 33.7 kB / 282.3 MB, free: 7.352 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.795e-06/0.02068, allocations: 8.062 kB / 282.3 MB, free: 7.344 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002261/0.0209, allocations: 63.58 kB / 282.3 MB, free: 7.277 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.02112, allocations: 47.97 kB / 282.4 MB, free: 7.23 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002461/0.02358, allocations: 2.266 MB / 284.6 MB, free: 4.844 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002249/0.0238, allocations: 24.02 kB / 284.7 MB, free: 4.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.816e-05/0.02383, allocations: 15.94 kB / 284.7 MB, free: 4.805 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.0001917/0.02402, allocations: 184.5 kB / 284.9 MB, free: 4.613 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.607e-05/0.02409, allocations: 31.86 kB / 284.9 MB, free: 4.582 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.713e-05/0.02417, allocations: 30.66 kB / 284.9 MB, free: 4.551 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.02417, allocations: 4 kB / 284.9 MB, free: 4.547 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.374e-06/0.02417, allocations: 0 / 284.9 MB, free: 4.547 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.033e-06/0.02418, allocations: 7.922 kB / 284.9 MB, free: 4.539 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001209/0.02539, allocations: 0.6575 MB / 285.6 MB, free: 3.832 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.09e-06/0.0254, allocations: 3.938 kB / 285.6 MB, free: 3.828 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002105/0.02561, allocations: 31.98 kB / 285.6 MB, free: 3.797 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001668/0.02577, allocations: 71.72 kB / 285.7 MB, free: 3.723 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.532e-05/0.0258, allocations: 8.094 kB / 285.7 MB, free: 3.715 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002044/0.02784, allocations: 2.03 MB / 287.7 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.02784, allocations: 0 / 287.7 MB, free: 1.562 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001066/0.02891, allocations: 0.5594 MB / 288.3 MB, free: 0.9805 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.905e-05/0.02901, allocations: 31.88 kB / 288.3 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.067e-05/0.02905, allocations: 8 kB / 288.3 MB, free: 0.9414 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002222/0.02927, allocations: 24 kB / 288.4 MB, free: 0.918 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001886/0.02946, allocations: 75.86 kB / 288.4 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.976e-05/0.02948, allocations: 4 kB / 288.4 MB, free: 0.8398 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001889/0.02967, allocations: 191.1 kB / 288.6 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02967, allocations: 0 / 288.6 MB, free: 0.6523 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004173/0.03009, allocations: 76 kB / 288.7 MB, free: 0.5781 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.002518/0.0326, allocations: 392 kB / 289.1 MB, free: 324 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009904/0.03359, allocations: 0.5156 MB / 289.6 MB, free: 15.76 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.87e-06/0.0336, allocations: 4 kB / 289.6 MB, free: 15.75 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005279/0.03413, allocations: 333.3 kB / 289.9 MB, free: 15.41 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004448/0.03457, allocations: 55.92 kB / 290 MB, free: 15.35 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.03586, allocations: 0.5832 MB / 290.6 MB, free: 14.74 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001659/0.03602, allocations: 138.1 kB / 290.7 MB, free: 14.59 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001111/0.03614, allocations: 29.92 kB / 290.7 MB, free: 14.55 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.763e-05/0.03621, allocations: 24.5 kB / 290.7 MB, free: 14.53 MB / 282.7 MB Notification: Performance of SimCode: time 5.11e-07/0.03621, allocations: 0 / 290.7 MB, free: 14.53 MB / 282.7 MB Notification: Performance of Templates: time 0.01049/0.0467, allocations: 4.583 MB / 295.3 MB, free: 9.992 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.7115740639856085]