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.001535/0.001535, allocations: 83.89 kB / 21.19 MB, free: 3.383 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.001257/0.001257, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 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.973/0.973, allocations: 173.4 MB / 201.1 MB, free: 9.328 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 2.024e-06/2.024e-06, allocations: 3.938 kB / 268 MB, free: 6.449 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.348e-05/3.551e-05, allocations: 6.25 kB / 268 MB, free: 6.441 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.0041/0.004135, allocations: 2.189 MB / 270.2 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001487/0.005622, allocations: 0.6972 MB / 270.9 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001513/0.005773, allocations: 0 / 270.9 MB, free: 3.535 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000229/0.006002, allocations: 35.59 kB / 270.9 MB, free: 3.5 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002278/0.00623, allocations: 67.47 kB / 271 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005351/0.006765, allocations: 111.7 kB / 271.1 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004951/0.00726, allocations: 295.3 kB / 271.4 MB, free: 3.035 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.007424, allocations: 32.58 kB / 271.4 MB, free: 3 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003432/0.007767, allocations: 175.6 kB / 271.6 MB, free: 2.828 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002523/0.008019, allocations: 95.75 kB / 271.7 MB, free: 2.734 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.984e-05/0.008069, allocations: 20 kB / 271.7 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000184/0.008253, allocations: 71.94 kB / 271.8 MB, free: 2.645 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001021/0.008355, allocations: 47.83 kB / 271.8 MB, free: 2.598 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000119/0.008474, allocations: 79.81 kB / 271.9 MB, free: 2.52 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004832/0.008957, allocations: 235.2 kB / 272.1 MB, free: 2.289 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.402e-06/0.008964, allocations: 0 / 272.1 MB, free: 2.289 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.008966, allocations: 4 kB / 272.1 MB, free: 2.285 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.356e-06/0.008974, allocations: 0 / 272.1 MB, free: 2.285 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.001028/0.01, allocations: 0.5714 MB / 272.7 MB, free: 1.672 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.747e-05/0.01005, allocations: 8.031 kB / 272.7 MB, free: 1.664 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001101/0.01016, allocations: 36.8 kB / 272.7 MB, free: 1.629 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003252/0.01048, allocations: 196.1 kB / 272.9 MB, free: 1.41 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.377e-05/0.01052, allocations: 12.38 kB / 272.9 MB, free: 1.398 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.734e-05/0.01058, allocations: 24.33 kB / 273 MB, free: 1.375 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000445/0.01102, allocations: 206.1 kB / 273.2 MB, free: 1.156 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.835e-05/0.01104, allocations: 8.172 kB / 273.2 MB, free: 1.148 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.315e-05/0.01106, allocations: 8.375 kB / 273.2 MB, free: 1.141 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.437e-05/0.01108, allocations: 7.938 kB / 273.2 MB, free: 1.133 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000237/0.01131, allocations: 99.86 kB / 273.3 MB, free: 1.035 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001114/0.01243, allocations: 0.6309 MB / 273.9 MB, free: 372 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004031/0.01283, allocations: 131 kB / 274 MB, free: 228 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001193/0.01295, allocations: 51.66 kB / 274.1 MB, free: 172 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.727e-05/0.01298, allocations: 11.94 kB / 274.1 MB, free: 160 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002507/0.01323, allocations: 129.3 kB / 274.2 MB, free: 16 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.914e-06/0.01323, allocations: 0 / 274.2 MB, free: 16 kB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.001754/0.01498, allocations: 0.7283 MB / 275 MB, free: 15.22 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.374e-05/0.01504, allocations: 63.39 kB / 275 MB, free: 15.15 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002332/0.01527, allocations: 238.6 kB / 275.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.325e-05/0.0153, allocations: 33.7 kB / 275.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000119/0.01542, allocations: 187.2 kB / 275.5 MB, free: 14.67 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.172e-05/0.01551, allocations: 91.22 kB / 275.6 MB, free: 14.58 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001256/0.01563, allocations: 67.34 kB / 275.6 MB, free: 14.5 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001845/0.01582, allocations: 0.5001 MB / 276.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.01601, allocations: 85.92 kB / 276.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.0162, allocations: 140.8 kB / 276.3 MB, free: 13.74 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002963/0.0165, allocations: 183.1 kB / 276.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.0165, allocations: 0 / 276.5 MB, free: 13.54 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0006831/0.01719, allocations: 345.4 kB / 276.9 MB, free: 13.18 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.403e-05/0.01723, allocations: 33.7 kB / 276.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.01724, allocations: 0 / 276.9 MB, free: 13.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002667/0.0175, allocations: 67.62 kB / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002045/0.01771, allocations: 47.91 kB / 277 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005687/0.01828, allocations: 0.8545 MB / 277.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001983/0.01848, allocations: 28.08 kB / 277.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.071e-05/0.01851, allocations: 12 kB / 277.9 MB, free: 12.1 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 0.000145/0.01865, allocations: 176.5 kB / 278.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.377e-05/0.01871, allocations: 31.8 kB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.76e-05/0.01876, allocations: 25.97 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.01877, allocations: 4 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.01877, allocations: 0 / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.207e-05/0.01879, allocations: 3.984 kB / 278.1 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009135/0.0197, allocations: 0.5563 MB / 278.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.0197, allocations: 4 kB / 278.7 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001919/0.01989, allocations: 39.91 kB / 278.7 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001703/0.02006, allocations: 55.66 kB / 278.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.2e-05/0.02009, allocations: 3.984 kB / 278.8 MB, free: 11.14 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005136/0.0206, allocations: 0.8507 MB / 279.6 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.0206, allocations: 3.984 kB / 279.6 MB, free: 10.25 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000664/0.02127, allocations: 444.2 kB / 280.1 MB, free: 9.797 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.324e-05/0.02136, allocations: 35.88 kB / 280.1 MB, free: 9.762 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.89e-05/0.0214, allocations: 4 kB / 280.1 MB, free: 9.758 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000171/0.02157, allocations: 19.92 kB / 280.1 MB, free: 9.738 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001039/0.02167, allocations: 43.86 kB / 280.2 MB, free: 9.695 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.092e-05/0.02169, allocations: 8 kB / 280.2 MB, free: 9.688 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001289/0.02182, allocations: 175.3 kB / 280.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.02182, allocations: 0 / 280.4 MB, free: 9.516 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003745/0.0222, allocations: 75.94 kB / 280.4 MB, free: 9.441 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.0002442/0.02244, allocations: 131.2 kB / 280.6 MB, free: 9.301 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005621/0.023, allocations: 264.6 kB / 280.8 MB, free: 9.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.02301, allocations: 0 / 280.8 MB, free: 9.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002451/0.02325, allocations: 107.5 kB / 280.9 MB, free: 8.91 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004703/0.02372, allocations: 54.83 kB / 281 MB, free: 8.859 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001562/0.02528, allocations: 0.5575 MB / 281.5 MB, free: 8.273 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.993e-05/0.02535, allocations: 80.33 kB / 281.6 MB, free: 8.176 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.02545, allocations: 21.94 kB / 281.6 MB, free: 8.156 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.2e-05/0.02553, allocations: 24.48 kB / 281.7 MB, free: 8.133 MB / 266.7 MB Notification: Performance of SimCode: time 1.042e-06/0.02553, allocations: 0 / 281.7 MB, free: 8.133 MB / 266.7 MB Notification: Performance of Templates: time 0.008722/0.03425, allocations: 3.63 MB / 285.3 MB, free: 4.547 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: 3.0726464758627117]