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.0009004/0.0009004, allocations: 82.17 kB / 21.42 MB, free: 3.082 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.00102/0.00102, allocations: 153.7 kB / 24.81 MB, free: 8.875 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.9048/0.9048, allocations: 173.4 MB / 201.5 MB, free: 8.312 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 9.62e-07/9.62e-07, allocations: 0 / 268.4 MB, free: 9.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.13e-05/1.226e-05, allocations: 2.312 kB / 268.4 MB, free: 9.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002324/0.002336, allocations: 2.188 MB / 270.6 MB, free: 7.598 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000825/0.003161, allocations: 0.6748 MB / 271.3 MB, free: 6.922 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.519e-05/0.003246, allocations: 4 kB / 271.3 MB, free: 6.918 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.003376, allocations: 36.41 kB / 271.3 MB, free: 6.883 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001178/0.003494, allocations: 73.09 kB / 271.4 MB, free: 6.812 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002558/0.003749, allocations: 109.3 kB / 271.5 MB, free: 6.707 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002254/0.003975, allocations: 291.3 kB / 271.8 MB, free: 6.422 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001012/0.004076, allocations: 32.58 kB / 271.8 MB, free: 6.387 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.00426, allocations: 175.6 kB / 272 MB, free: 6.215 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.004394, allocations: 96.25 kB / 272.1 MB, free: 6.121 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.073e-05/0.004425, allocations: 24.48 kB / 272.1 MB, free: 6.098 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.16e-05/0.004516, allocations: 71.95 kB / 272.2 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.435e-05/0.004571, allocations: 47.83 kB / 272.2 MB, free: 5.98 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.138e-05/0.004632, allocations: 79.81 kB / 272.3 MB, free: 5.902 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000222/0.004854, allocations: 235.2 kB / 272.5 MB, free: 5.672 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.492e-06/0.004855, allocations: 0 / 272.5 MB, free: 5.672 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.004856, allocations: 0 / 272.5 MB, free: 5.672 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.645e-06/0.004859, allocations: 0 / 272.5 MB, free: 5.672 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.0005545/0.005413, allocations: 0.5752 MB / 273.1 MB, free: 5.055 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.076e-05/0.005444, allocations: 12.03 kB / 273.1 MB, free: 5.043 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.275e-05/0.005497, allocations: 44.8 kB / 273.1 MB, free: 5 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000437/0.005934, allocations: 188.7 kB / 273.3 MB, free: 4.789 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.562e-05/0.005949, allocations: 12.38 kB / 273.3 MB, free: 4.777 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.595e-05/0.005985, allocations: 28.33 kB / 273.4 MB, free: 4.75 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002207/0.006206, allocations: 186.1 kB / 273.5 MB, free: 4.551 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.006217, allocations: 4.172 kB / 273.5 MB, free: 4.547 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.006231, allocations: 12.38 kB / 273.6 MB, free: 4.535 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.242e-06/0.006237, allocations: 7.938 kB / 273.6 MB, free: 4.527 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001041/0.006341, allocations: 75.81 kB / 273.6 MB, free: 4.453 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005371/0.006878, allocations: 0.6081 MB / 274.2 MB, free: 3.812 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002201/0.007099, allocations: 130.8 kB / 274.4 MB, free: 3.672 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.045e-05/0.007149, allocations: 43.67 kB / 274.4 MB, free: 3.625 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.541e-05/0.007164, allocations: 4 kB / 274.4 MB, free: 3.621 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001334/0.007298, allocations: 113.4 kB / 274.5 MB, free: 3.496 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.007299, allocations: 0 / 274.5 MB, free: 3.496 MB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.0008362/0.008136, allocations: 0.6562 MB / 275.2 MB, free: 2.777 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.335e-05/0.008159, allocations: 55.41 kB / 275.2 MB, free: 2.711 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000111/0.00827, allocations: 234.6 kB / 275.5 MB, free: 2.461 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.706e-05/0.008287, allocations: 33.7 kB / 275.5 MB, free: 2.422 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.741e-05/0.008354, allocations: 187.1 kB / 275.7 MB, free: 2.234 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.903e-05/0.008403, allocations: 99.22 kB / 275.8 MB, free: 2.137 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.335e-05/0.008467, allocations: 67.23 kB / 275.8 MB, free: 2.062 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.008572, allocations: 0.504 MB / 276.4 MB, free: 1.547 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.561e-05/0.008637, allocations: 70 kB / 276.4 MB, free: 1.469 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.797e-05/0.008725, allocations: 133 kB / 276.6 MB, free: 1.316 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001245/0.00885, allocations: 159.7 kB / 276.7 MB, free: 1.141 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.008851, allocations: 0 / 276.7 MB, free: 1.141 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003264/0.009178, allocations: 313.4 kB / 277 MB, free: 0.8125 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.0092, allocations: 33.7 kB / 277 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.887e-06/0.009204, allocations: 0 / 277 MB, free: 0.7734 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001152/0.009319, allocations: 59.66 kB / 277.1 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001056/0.009425, allocations: 47.97 kB / 277.2 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003404/0.009766, allocations: 0.8467 MB / 278 MB, free: 15.79 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.00987, allocations: 23.97 kB / 278 MB, free: 15.76 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.66e-05/0.009887, allocations: 12 kB / 278 MB, free: 15.75 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.907e-05/0.009976, allocations: 168.5 kB / 278.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.912e-05/0.01001, allocations: 31.86 kB / 278.2 MB, free: 15.54 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.925e-05/0.01004, allocations: 37.92 kB / 278.3 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.01005, allocations: 4 kB / 278.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.954e-06/0.01005, allocations: 0 / 278.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.678e-06/0.01005, allocations: 0 / 278.3 MB, free: 15.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004681/0.01052, allocations: 0.5038 MB / 278.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.01052, allocations: 0 / 278.8 MB, free: 14.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.01063, allocations: 39.91 kB / 278.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.155e-05/0.01072, allocations: 51.66 kB / 278.9 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.01073, allocations: 11.98 kB / 278.9 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003007/0.01103, allocations: 0.8428 MB / 279.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.81e-07/0.01103, allocations: 3.938 kB / 279.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003176/0.01135, allocations: 413.9 kB / 280.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.181e-05/0.0114, allocations: 35.83 kB / 280.2 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.046e-05/0.01142, allocations: 4 kB / 280.2 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.951e-05/0.01151, allocations: 24 kB / 280.2 MB, free: 13.49 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.609e-05/0.01157, allocations: 39.88 kB / 280.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.099e-05/0.01158, allocations: 8 kB / 280.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003217/0.0119, allocations: 171.3 kB / 280.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.0119, allocations: 3.938 kB / 280.4 MB, free: 13.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002028/0.0121, allocations: 71.94 kB / 280.5 MB, free: 13.2 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.0001227/0.01222, allocations: 123.2 kB / 280.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002566/0.01248, allocations: 236.5 kB / 280.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.293e-06/0.01248, allocations: 4.125 kB / 280.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001069/0.01259, allocations: 101 kB / 280.9 MB, free: 12.71 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.01282, allocations: 44.11 kB / 281 MB, free: 12.66 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007631/0.01359, allocations: 0.5555 MB / 281.5 MB, free: 12.08 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.273e-05/0.01363, allocations: 80.33 kB / 281.6 MB, free: 11.98 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.603e-05/0.01369, allocations: 21.94 kB / 281.6 MB, free: 11.96 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.01379, allocations: 114.2 kB / 281.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of SimCode: time 5.91e-07/0.01379, allocations: 0 / 281.7 MB, free: 11.85 MB / 266.7 MB Notification: Performance of Templates: time 0.005147/0.01894, allocations: 3.954 MB / 285.7 MB, free: 7.969 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 -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.5783728063106537]