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.001096/0.001096, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.001102/0.001102, allocations: 145.3 kB / 24.89 MB, free: 8.742 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.906/0.906, allocations: 173.4 MB / 201.5 MB, free: 8.266 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 1.262e-06/1.262e-06, allocations: 3.938 kB / 268.5 MB, free: 9.801 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.147e-05/1.273e-05, allocations: 5.406 kB / 268.5 MB, free: 9.797 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.00208/0.002093, allocations: 2.176 MB / 270.6 MB, free: 7.621 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000887/0.00298, allocations: 0.6978 MB / 271.3 MB, free: 6.922 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.386e-05/0.003063, allocations: 7.938 kB / 271.3 MB, free: 6.914 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001454/0.003209, allocations: 34.3 kB / 271.4 MB, free: 6.883 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001338/0.003343, allocations: 71.36 kB / 271.5 MB, free: 6.812 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.003611, allocations: 112.4 kB / 271.6 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002145/0.003826, allocations: 283.4 kB / 271.8 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.029e-05/0.003916, allocations: 44.05 kB / 271.9 MB, free: 6.383 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001731/0.004089, allocations: 171.6 kB / 272 MB, free: 6.215 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001358/0.004225, allocations: 95.75 kB / 272.1 MB, free: 6.121 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.894e-05/0.004254, allocations: 20 kB / 272.2 MB, free: 6.102 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001005/0.004354, allocations: 73.28 kB / 272.2 MB, free: 6.031 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.957e-05/0.004414, allocations: 63.69 kB / 272.3 MB, free: 5.969 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.337e-05/0.004477, allocations: 75.83 kB / 272.4 MB, free: 5.895 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002283/0.004705, allocations: 227.8 kB / 272.6 MB, free: 5.672 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.463e-06/0.004707, allocations: 0 / 272.6 MB, free: 5.672 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.01e-07/0.004707, allocations: 0.6875 kB / 272.6 MB, free: 5.672 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.186e-06/0.004711, allocations: 0 / 272.6 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.0005174/0.005228, allocations: 463.7 kB / 273 MB, free: 5.191 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.00526, allocations: 12.02 kB / 273.1 MB, free: 5.18 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.556e-05/0.005306, allocations: 28.92 kB / 273.1 MB, free: 5.152 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001608/0.005467, allocations: 170.7 kB / 273.3 MB, free: 4.961 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.679e-05/0.005484, allocations: 12.38 kB / 273.3 MB, free: 4.949 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.988e-05/0.005514, allocations: 21.34 kB / 273.3 MB, free: 4.93 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002027/0.005716, allocations: 188.4 kB / 273.5 MB, free: 4.73 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.293e-05/0.005729, allocations: 12.62 kB / 273.5 MB, free: 4.719 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.302e-05/0.005742, allocations: 4.375 kB / 273.5 MB, free: 4.715 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.133e-06/0.005749, allocations: 12.38 kB / 273.5 MB, free: 4.703 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.435e-05/0.005844, allocations: 71.91 kB / 273.6 MB, free: 4.633 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004599/0.006304, allocations: 427.9 kB / 274 MB, free: 4.195 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001789/0.006483, allocations: 114.4 kB / 274.1 MB, free: 4.074 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.586e-05/0.006528, allocations: 44.78 kB / 274.1 MB, free: 4.027 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.533e-05/0.006544, allocations: 4 kB / 274.1 MB, free: 4.023 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001105/0.006654, allocations: 107.7 kB / 274.2 MB, free: 3.906 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.413e-06/0.006656, allocations: 0 / 274.2 MB, free: 3.906 MB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.0008134/0.007469, allocations: 0.6158 MB / 274.9 MB, free: 3.234 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.517e-05/0.007494, allocations: 59.41 kB / 274.9 MB, free: 3.164 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.847e-05/0.007583, allocations: 175.4 kB / 275.1 MB, free: 2.977 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.712e-05/0.00763, allocations: 33.69 kB / 275.1 MB, free: 2.938 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.43e-05/0.007674, allocations: 132.4 kB / 275.3 MB, free: 2.805 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.429e-05/0.007718, allocations: 99.19 kB / 275.4 MB, free: 2.707 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.986e-05/0.007778, allocations: 61.66 kB / 275.4 MB, free: 2.641 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.934e-05/0.007848, allocations: 334.8 kB / 275.7 MB, free: 2.305 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.979e-05/0.007907, allocations: 65.94 kB / 275.8 MB, free: 2.23 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.299e-05/0.00798, allocations: 113.7 kB / 275.9 MB, free: 2.102 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001726/0.008153, allocations: 152.3 kB / 276.1 MB, free: 1.938 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.008154, allocations: 0 / 276.1 MB, free: 1.938 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002431/0.008397, allocations: 262.8 kB / 276.3 MB, free: 1.66 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.11e-05/0.008418, allocations: 33.7 kB / 276.4 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.008422, allocations: 0 / 276.4 MB, free: 1.621 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001089/0.008531, allocations: 52.81 kB / 276.4 MB, free: 1.566 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.859e-05/0.00863, allocations: 47.92 kB / 276.5 MB, free: 1.52 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002277/0.008858, allocations: 0.564 MB / 277 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.376e-05/0.008951, allocations: 24.02 kB / 277 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.355e-05/0.008965, allocations: 11.98 kB / 277.1 MB, free: 0.8945 MB / 250.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 7.674e-05/0.009042, allocations: 136.6 kB / 277.2 MB, free: 0.75 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.159e-05/0.009063, allocations: 19.98 kB / 277.2 MB, free: 0.7305 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.104e-05/0.009094, allocations: 25.95 kB / 277.2 MB, free: 0.7031 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.399e-06/0.009099, allocations: 7.938 kB / 277.2 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.422e-06/0.0091, allocations: 0 / 277.2 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.346e-06/0.009104, allocations: 0 / 277.2 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003685/0.009472, allocations: 385.7 kB / 277.6 MB, free: 296 kB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.009474, allocations: 4 kB / 277.6 MB, free: 292 kB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.726e-05/0.009571, allocations: 31.98 kB / 277.6 MB, free: 260 kB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8e-05/0.009651, allocations: 52.81 kB / 277.7 MB, free: 204 kB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.058e-05/0.009661, allocations: 4 kB / 277.7 MB, free: 200 kB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003354/0.009997, allocations: 0.568 MB / 278.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-07/0.009997, allocations: 3.938 kB / 278.3 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002623/0.01026, allocations: 318.8 kB / 278.6 MB, free: 15.27 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.41e-05/0.0103, allocations: 23.86 kB / 278.6 MB, free: 15.25 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.314e-05/0.01033, allocations: 8 kB / 278.6 MB, free: 15.24 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.652e-05/0.01041, allocations: 19.97 kB / 278.6 MB, free: 15.22 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.43e-05/0.01047, allocations: 31.94 kB / 278.7 MB, free: 15.19 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.01048, allocations: 7.938 kB / 278.7 MB, free: 15.18 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.591e-05/0.01051, allocations: 53.02 kB / 278.7 MB, free: 15.12 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01051, allocations: 0 / 278.7 MB, free: 15.12 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001799/0.01069, allocations: 71.98 kB / 278.8 MB, free: 15.05 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.000118/0.01081, allocations: 116.3 kB / 278.9 MB, free: 14.93 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002688/0.01108, allocations: 229.7 kB / 279.1 MB, free: 14.69 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.721e-06/0.01109, allocations: 4 kB / 279.1 MB, free: 14.68 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.01122, allocations: 86.28 kB / 279.2 MB, free: 14.6 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001843/0.01141, allocations: 47.89 kB / 279.3 MB, free: 14.55 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007487/0.01216, allocations: 491.7 kB / 279.8 MB, free: 14.04 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.407e-05/0.0122, allocations: 84.31 kB / 279.8 MB, free: 13.94 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.01e-05/0.01226, allocations: 21.95 kB / 279.9 MB, free: 13.91 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.44e-05/0.01235, allocations: 87.36 kB / 279.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01235, allocations: 0 / 279.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of Templates: time 0.005268/0.01762, allocations: 3.895 MB / 283.8 MB, free: 10 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.6007640468887985]