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.0008478/0.0008478, allocations: 88.73 kB / 21.5 MB, free: 2.98 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.0008541/0.0008541, allocations: 163.2 kB / 24.91 MB, free: 8.77 MB / 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.9013/0.9013, allocations: 177 MB / 205.2 MB, free: 5.402 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.222e-06/1.222e-06, allocations: 0 / 273.4 MB, free: 1.199 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.898e-06/1.112e-05, allocations: 2.312 kB / 273.4 MB, free: 1.195 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00253/0.002541, allocations: 2.296 MB / 275.7 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.003669, allocations: 0.8643 MB / 276.5 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.535e-05/0.003764, allocations: 4 kB / 276.5 MB, free: 14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002069/0.003971, allocations: 59.5 kB / 276.6 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000199/0.00417, allocations: 115.1 kB / 276.7 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001749/0.004345, allocations: 87.75 kB / 276.8 MB, free: 13.75 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002497/0.004595, allocations: 303.3 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.502e-05/0.00469, allocations: 42.52 kB / 277.1 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002481/0.004938, allocations: 179.6 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001637/0.005102, allocations: 107.7 kB / 277.4 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.732e-05/0.005139, allocations: 24 kB / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001094/0.005248, allocations: 79.91 kB / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.594e-05/0.005314, allocations: 59.75 kB / 277.6 MB, free: 12.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.82e-05/0.005383, allocations: 83.81 kB / 277.6 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002715/0.005654, allocations: 255 kB / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.462e-06/0.005656, allocations: 0 / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.71e-07/0.005656, allocations: 0 / 277.9 MB, free: 12.63 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.897e-06/0.00566, allocations: 0 / 277.9 MB, free: 12.63 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.0005885/0.006249, allocations: 489.1 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.057e-05/0.006279, allocations: 19.92 kB / 278.4 MB, free: 12.11 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.006395, allocations: 40.89 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002055/0.006601, allocations: 187.5 kB / 278.6 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.006619, allocations: 12.38 kB / 278.6 MB, free: 11.84 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.764e-05/0.006657, allocations: 24.36 kB / 278.7 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002181/0.006875, allocations: 163.8 kB / 278.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.006888, allocations: 192 / 278.8 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.006903, allocations: 12.38 kB / 278.8 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.006909, allocations: 7.938 kB / 278.8 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.692e-05/0.007006, allocations: 67.88 kB / 278.9 MB, free: 11.56 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004552/0.007461, allocations: 415.9 kB / 279.3 MB, free: 11.13 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001923/0.007653, allocations: 102.5 kB / 279.4 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.228e-05/0.007706, allocations: 40.84 kB / 279.4 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.764e-05/0.007723, allocations: 7.938 kB / 279.5 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001465/0.00787, allocations: 119.2 kB / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.513e-06/0.007871, allocations: 4 kB / 279.6 MB, free: 10.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009122/0.008784, allocations: 0.6182 MB / 280.2 MB, free: 10.17 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.641e-05/0.00881, allocations: 59.34 kB / 280.2 MB, free: 10.1 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001311/0.008941, allocations: 204.5 kB / 280.4 MB, free: 9.883 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.008965, allocations: 33.7 kB / 280.5 MB, free: 9.844 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.045e-05/0.009015, allocations: 116.6 kB / 280.6 MB, free: 9.727 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.752e-05/0.009063, allocations: 95.19 kB / 280.7 MB, free: 9.633 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.105e-05/0.009124, allocations: 65.66 kB / 280.8 MB, free: 9.562 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.669e-05/0.0092, allocations: 338.8 kB / 281.1 MB, free: 9.223 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.752e-05/0.009258, allocations: 61.44 kB / 281.1 MB, free: 9.156 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.233e-05/0.00933, allocations: 93.09 kB / 281.2 MB, free: 9.047 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001232/0.009454, allocations: 150.1 kB / 281.4 MB, free: 8.883 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.009456, allocations: 4 kB / 281.4 MB, free: 8.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002541/0.00971, allocations: 251.5 kB / 281.6 MB, free: 8.613 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.664e-05/0.009736, allocations: 40.97 kB / 281.7 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.757e-06/0.00974, allocations: 0 / 281.7 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001112/0.009851, allocations: 40.83 kB / 281.7 MB, free: 8.527 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001034/0.009955, allocations: 47.91 kB / 281.8 MB, free: 8.48 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009621/0.01092, allocations: 1.464 MB / 283.2 MB, free: 6.934 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.01102, allocations: 19.98 kB / 283.2 MB, free: 6.914 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.597e-05/0.01104, allocations: 15.98 kB / 283.3 MB, free: 6.898 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 8.658e-05/0.01112, allocations: 124.6 kB / 283.4 MB, free: 6.766 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.848e-05/0.01115, allocations: 32.02 kB / 283.4 MB, free: 6.734 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.911e-05/0.01118, allocations: 34.64 kB / 283.4 MB, free: 6.699 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.01118, allocations: 4 kB / 283.4 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.513e-06/0.01118, allocations: 0 / 283.4 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.01119, allocations: 0 / 283.4 MB, free: 6.695 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004066/0.01159, allocations: 379.8 kB / 283.8 MB, free: 6.297 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.0116, allocations: 4 kB / 283.8 MB, free: 6.293 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001107/0.01171, allocations: 35.98 kB / 283.9 MB, free: 6.258 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.752e-05/0.01179, allocations: 44.81 kB / 283.9 MB, free: 6.211 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.168e-05/0.0118, allocations: 7.938 kB / 283.9 MB, free: 6.203 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006606/0.01246, allocations: 1.304 MB / 285.2 MB, free: 4.812 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.01246, allocations: 4 kB / 285.2 MB, free: 4.809 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003111/0.01277, allocations: 321.9 kB / 285.5 MB, free: 4.477 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.379e-05/0.01282, allocations: 27.84 kB / 285.6 MB, free: 4.449 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.252e-05/0.01285, allocations: 8 kB / 285.6 MB, free: 4.441 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.764e-05/0.01294, allocations: 19.92 kB / 285.6 MB, free: 4.422 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.413e-05/0.01304, allocations: 75.8 kB / 285.7 MB, free: 4.348 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.089e-05/0.01305, allocations: 11.98 kB / 285.7 MB, free: 4.336 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.051e-05/0.0131, allocations: 53.5 kB / 285.7 MB, free: 4.281 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.0131, allocations: 0 / 285.7 MB, free: 4.281 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002255/0.01332, allocations: 79.94 kB / 285.8 MB, free: 4.203 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.000875/0.0142, allocations: 438 kB / 286.2 MB, free: 3.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003407/0.01454, allocations: 357.2 kB / 286.6 MB, free: 3.547 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.469e-06/0.01454, allocations: 4 kB / 286.6 MB, free: 3.543 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.0147, allocations: 219.2 kB / 286.8 MB, free: 3.312 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/0.0149, allocations: 61.59 kB / 286.9 MB, free: 3.254 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007588/0.01566, allocations: 0.5054 MB / 287.4 MB, free: 2.719 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.804e-05/0.01571, allocations: 84.31 kB / 287.4 MB, free: 2.617 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.202e-05/0.01579, allocations: 29.92 kB / 287.5 MB, free: 2.586 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001086/0.0159, allocations: 95.34 kB / 287.6 MB, free: 2.492 MB / 266.7 MB Notification: Performance of SimCode: time 5.01e-07/0.0159, allocations: 0 / 287.6 MB, free: 2.492 MB / 266.7 MB Notification: Performance of Templates: time 0.1052/0.1211, allocations: 4.842 MB / 292.4 MB, free: 24.96 MB / 266.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: 2.5824014181271195]