Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 71.77 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0008676/0.0008676, allocations: 170.6 kB / 24.99 MB, free: 8.793 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9429/0.9429, allocations: 177.1 MB / 205.3 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 273 MB, free: 1.848 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.433e-05/2.611e-05, allocations: 5.266 kB / 273 MB, free: 1.844 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00295/0.002976, allocations: 2.306 MB / 275.4 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001006/0.003982, allocations: 0.845 MB / 276.2 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.44e-05/0.004076, allocations: 4 kB / 276.2 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002276/0.004304, allocations: 55.5 kB / 276.3 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002292/0.004533, allocations: 107.1 kB / 276.4 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001792/0.004712, allocations: 95.75 kB / 276.5 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002586/0.004971, allocations: 307.3 kB / 276.8 MB, free: 14.11 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001216/0.005092, allocations: 32.58 kB / 276.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002431/0.005335, allocations: 179.6 kB / 277 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.005487, allocations: 107.7 kB / 277.1 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.19e-05/0.005519, allocations: 24 kB / 277.1 MB, free: 13.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002445/0.005763, allocations: 83.84 kB / 277.2 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.563e-05/0.005829, allocations: 47.83 kB / 277.2 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.282e-05/0.005902, allocations: 87.8 kB / 277.3 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000291/0.006193, allocations: 255 kB / 277.6 MB, free: 13.31 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.006196, allocations: 0 / 277.6 MB, free: 13.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.006196, allocations: 0 / 277.6 MB, free: 13.31 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.006201, allocations: 0 / 277.6 MB, free: 13.31 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.0006884/0.006889, allocations: 0.6024 MB / 278.2 MB, free: 12.66 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.719e-05/0.006927, allocations: 12.03 kB / 278.2 MB, free: 12.65 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001338/0.00706, allocations: 48.78 kB / 278.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002356/0.007296, allocations: 214.5 kB / 278.4 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.007318, allocations: 12.38 kB / 278.4 MB, free: 12.35 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/0.007351, allocations: 24.36 kB / 278.5 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002523/0.007603, allocations: 185.4 kB / 278.6 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.363e-05/0.007617, allocations: 4.188 kB / 278.6 MB, free: 12.13 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.64e-05/0.007633, allocations: 4.375 kB / 278.6 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.007643, allocations: 7.938 kB / 278.7 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001542/0.007797, allocations: 99.78 kB / 278.8 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006045/0.008401, allocations: 0.6192 MB / 279.4 MB, free: 11.36 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000257/0.008658, allocations: 142.9 kB / 279.5 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.104e-05/0.008739, allocations: 59.66 kB / 279.6 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.008756, allocations: 4 kB / 279.6 MB, free: 11.14 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001736/0.00893, allocations: 125.6 kB / 279.7 MB, free: 11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.533e-06/0.008931, allocations: 0 / 279.7 MB, free: 11 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.001086/0.01002, allocations: 0.7375 MB / 280.4 MB, free: 10.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.01005, allocations: 55.41 kB / 280.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001506/0.0102, allocations: 249.5 kB / 280.7 MB, free: 9.879 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.788e-05/0.01022, allocations: 29.7 kB / 280.8 MB, free: 9.844 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.218e-05/0.01029, allocations: 183.3 kB / 280.9 MB, free: 9.66 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.037e-05/0.01034, allocations: 91.2 kB / 281 MB, free: 9.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.668e-05/0.01041, allocations: 67.31 kB / 281.1 MB, free: 9.496 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001138/0.01052, allocations: 0.504 MB / 281.6 MB, free: 8.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.825e-05/0.01062, allocations: 77.42 kB / 281.7 MB, free: 8.898 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001132/0.01073, allocations: 124.4 kB / 281.8 MB, free: 8.754 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001703/0.0109, allocations: 173.4 kB / 282 MB, free: 8.562 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.01091, allocations: 4 kB / 282 MB, free: 8.559 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003671/0.01127, allocations: 326.2 kB / 282.3 MB, free: 8.219 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.324e-05/0.0113, allocations: 33.7 kB / 282.3 MB, free: 8.18 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.0113, allocations: 0 / 282.3 MB, free: 8.18 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001411/0.01144, allocations: 47.66 kB / 282.4 MB, free: 8.129 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001098/0.01155, allocations: 51.98 kB / 282.4 MB, free: 8.078 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001309/0.01286, allocations: 2.144 MB / 284.6 MB, free: 5.816 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001161/0.01298, allocations: 24.03 kB / 284.6 MB, free: 5.793 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.01299, allocations: 12 kB / 284.6 MB, free: 5.781 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 9.861e-05/0.01309, allocations: 184.5 kB / 284.8 MB, free: 5.59 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.505e-05/0.01313, allocations: 31.86 kB / 284.8 MB, free: 5.559 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.339e-05/0.01316, allocations: 30.64 kB / 284.8 MB, free: 5.527 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.745e-06/0.01316, allocations: 4 kB / 284.8 MB, free: 5.523 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.132e-06/0.01316, allocations: 3.938 kB / 284.8 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.01317, allocations: 0 / 284.8 MB, free: 5.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005602/0.01373, allocations: 0.5678 MB / 285.4 MB, free: 4.906 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.01373, allocations: 3.938 kB / 285.4 MB, free: 4.902 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001323/0.01386, allocations: 35.98 kB / 285.5 MB, free: 4.867 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001001/0.01396, allocations: 47.8 kB / 285.5 MB, free: 4.816 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.733e-05/0.01398, allocations: 11.94 kB / 285.5 MB, free: 4.805 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009434/0.01492, allocations: 1.912 MB / 287.4 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.01493, allocations: 32 / 287.4 MB, free: 2.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004623/0.01539, allocations: 444.4 kB / 287.9 MB, free: 2.312 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.466e-05/0.01547, allocations: 35.86 kB / 287.9 MB, free: 2.277 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.433e-05/0.01551, allocations: 8 kB / 287.9 MB, free: 2.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001182/0.01563, allocations: 19.98 kB / 287.9 MB, free: 2.25 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.01574, allocations: 71.86 kB / 288 MB, free: 2.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.331e-05/0.01576, allocations: 7.984 kB / 288 MB, free: 2.172 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.214e-05/0.01585, allocations: 177 kB / 288.2 MB, free: 2 MB / 266.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.01585, allocations: 0 / 288.2 MB, free: 2 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002626/0.01611, allocations: 76 kB / 288.2 MB, free: 1.926 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.0007641/0.01688, allocations: 364.3 kB / 288.6 MB, free: 1.688 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004577/0.01733, allocations: 435.3 kB / 289 MB, free: 1.223 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.443e-06/0.01734, allocations: 0 / 289 MB, free: 1.223 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000229/0.01756, allocations: 297.8 kB / 289.3 MB, free: 0.9102 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002912/0.01786, allocations: 52.7 kB / 289.4 MB, free: 0.8594 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009563/0.01881, allocations: 0.562 MB / 289.9 MB, free: 272 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.721e-05/0.01887, allocations: 92.25 kB / 290 MB, free: 160 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.145e-05/0.01894, allocations: 25.94 kB / 290 MB, free: 136 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.379e-05/0.01899, allocations: 28.48 kB / 290.1 MB, free: 108 kB / 266.7 MB Notification: Performance of SimCode: time 7.52e-07/0.019, allocations: 4 kB / 290.1 MB, free: 104 kB / 266.7 MB Notification: Performance of Templates: time 0.009334/0.02833, allocations: 4.581 MB / 294.7 MB, free: 11.57 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.8238130111712962]