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.001079/0.001079, allocations: 87.67 kB / 21.19 MB, free: 3.371 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.001104/0.001104, allocations: 156.5 kB / 24.55 MB, free: 16 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 0.9722/0.9722, allocations: 177 MB / 204.8 MB, free: 5.609 MB / 186.7 MB " [Timeout remaining time 179] 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.663e-06/1.663e-06, allocations: 0 / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.934e-05/3.1e-05, allocations: 5.266 kB / 272.9 MB, free: 1.488 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003173/0.003204, allocations: 2.313 MB / 275.2 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001146/0.004351, allocations: 0.8528 MB / 276.1 MB, free: 14.3 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.00446, allocations: 7.938 kB / 276.1 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002609/0.004721, allocations: 55.52 kB / 276.1 MB, free: 14.23 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002497/0.00497, allocations: 111.2 kB / 276.2 MB, free: 14.12 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00021/0.00518, allocations: 91.69 kB / 276.3 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002741/0.005455, allocations: 303.3 kB / 276.6 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.005595, allocations: 40.55 kB / 276.7 MB, free: 13.7 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002677/0.005863, allocations: 183.5 kB / 276.8 MB, free: 13.52 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000181/0.006044, allocations: 111.7 kB / 276.9 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.018e-05/0.006084, allocations: 24 kB / 277 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.006206, allocations: 75.91 kB / 277 MB, free: 13.31 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.279e-05/0.006279, allocations: 55.81 kB / 277.1 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.86e-05/0.006357, allocations: 87.75 kB / 277.2 MB, free: 13.17 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003154/0.006673, allocations: 247.1 kB / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.006677, allocations: 0 / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.393e-06/0.006678, allocations: 0 / 277.4 MB, free: 12.93 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.541e-06/0.006683, allocations: 4 kB / 277.4 MB, free: 12.92 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.0007435/0.007427, allocations: 0.6024 MB / 278 MB, free: 12.28 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.007465, allocations: 15.98 kB / 278 MB, free: 12.26 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001459/0.00761, allocations: 44.78 kB / 278.1 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002481/0.007859, allocations: 214.2 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.676e-05/0.007885, allocations: 16.38 kB / 278.3 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.562e-05/0.007921, allocations: 20.36 kB / 278.3 MB, free: 11.94 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002751/0.008196, allocations: 185.4 kB / 278.5 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.173e-05/0.008208, allocations: 8.188 kB / 278.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.94e-05/0.008227, allocations: 8.375 kB / 278.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.956e-06/0.008236, allocations: 7.938 kB / 278.5 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001489/0.008385, allocations: 83.92 kB / 278.6 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007167/0.009102, allocations: 0.6192 MB / 279.2 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002926/0.009394, allocations: 137.9 kB / 279.4 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.55e-05/0.00949, allocations: 59.66 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.408e-05/0.009514, allocations: 4 kB / 279.4 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001882/0.009702, allocations: 128.8 kB / 279.6 MB, free: 10.63 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.844e-06/0.009704, allocations: 4 kB / 279.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.001255/0.01096, allocations: 0.7272 MB / 280.3 MB, free: 9.836 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.011, allocations: 55.41 kB / 280.3 MB, free: 9.77 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.01115, allocations: 250.7 kB / 280.6 MB, free: 9.508 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.894e-05/0.01117, allocations: 33.64 kB / 280.6 MB, free: 9.469 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.354e-05/0.01126, allocations: 179.3 kB / 280.8 MB, free: 9.289 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.742e-05/0.01131, allocations: 103.2 kB / 280.9 MB, free: 9.188 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.684e-05/0.01139, allocations: 63.31 kB / 281 MB, free: 9.117 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.01152, allocations: 0.5039 MB / 281.5 MB, free: 8.602 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.01164, allocations: 81.42 kB / 281.5 MB, free: 8.516 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.01176, allocations: 132.5 kB / 281.7 MB, free: 8.363 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001836/0.01194, allocations: 165.4 kB / 281.8 MB, free: 8.18 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.01194, allocations: 4 kB / 281.8 MB, free: 8.176 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003846/0.01233, allocations: 330.2 kB / 282.2 MB, free: 7.832 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.549e-05/0.01236, allocations: 37.69 kB / 282.2 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.01237, allocations: 0 / 282.2 MB, free: 7.789 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001691/0.01254, allocations: 47.66 kB / 282.2 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001261/0.01266, allocations: 43.92 kB / 282.3 MB, free: 7.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001379/0.01404, allocations: 2.145 MB / 284.4 MB, free: 5.43 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.01416, allocations: 23.97 kB / 284.5 MB, free: 5.406 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.525e-05/0.01418, allocations: 12 kB / 284.5 MB, free: 5.395 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.0001088/0.01429, allocations: 176.5 kB / 284.6 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.586e-05/0.01432, allocations: 31.86 kB / 284.7 MB, free: 5.18 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.02e-05/0.01436, allocations: 30.64 kB / 284.7 MB, free: 5.148 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.01436, allocations: 4 kB / 284.7 MB, free: 5.145 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.937e-06/0.01437, allocations: 4.031 kB / 284.7 MB, free: 5.141 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.01437, allocations: 0 / 284.7 MB, free: 5.141 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007167/0.01509, allocations: 0.5599 MB / 285.3 MB, free: 4.535 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.344e-06/0.0151, allocations: 11.98 kB / 285.3 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001283/0.01522, allocations: 39.92 kB / 285.3 MB, free: 4.484 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001047/0.01533, allocations: 43.66 kB / 285.4 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.747e-05/0.01536, allocations: 8 kB / 285.4 MB, free: 4.43 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.01639, allocations: 1.917 MB / 287.3 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.01639, allocations: 0 / 287.3 MB, free: 2.391 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004583/0.01685, allocations: 440.9 kB / 287.7 MB, free: 1.938 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.621e-05/0.01692, allocations: 39.86 kB / 287.8 MB, free: 1.898 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.32e-05/0.01694, allocations: 8 kB / 287.8 MB, free: 1.891 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.931e-05/0.01704, allocations: 20.02 kB / 287.8 MB, free: 1.871 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001351/0.01718, allocations: 75.89 kB / 287.9 MB, free: 1.797 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.846e-05/0.01719, allocations: 15.98 kB / 287.9 MB, free: 1.781 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.622e-05/0.01729, allocations: 171.1 kB / 288 MB, free: 1.613 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01729, allocations: 0 / 288 MB, free: 1.613 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002945/0.01758, allocations: 79.94 kB / 288.1 MB, free: 1.535 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.0008062/0.01839, allocations: 350.8 kB / 288.5 MB, free: 1.289 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005616/0.01895, allocations: 443.9 kB / 288.9 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.01895, allocations: 0 / 288.9 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002424/0.0192, allocations: 289.2 kB / 289.2 MB, free: 0.5117 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003124/0.01951, allocations: 51.91 kB / 289.2 MB, free: 472 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001039/0.02055, allocations: 0.5695 MB / 289.8 MB, free: 15.86 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.033e-05/0.02061, allocations: 92.25 kB / 289.9 MB, free: 15.75 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.126e-05/0.02069, allocations: 29.94 kB / 289.9 MB, free: 15.72 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.71e-05/0.02075, allocations: 24.48 kB / 289.9 MB, free: 15.7 MB / 282.7 MB Notification: Performance of SimCode: time 6.41e-07/0.02075, allocations: 0 / 289.9 MB, free: 15.7 MB / 282.7 MB Notification: Performance of Templates: time 0.007381/0.02813, allocations: 4.586 MB / 294.5 MB, free: 11.16 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","",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.1477239169180393]