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.000952/0.000952, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009093/0.0009093, 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.9425/0.9425, allocations: 173.4 MB / 201.1 MB, free: 9.344 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.723e-06/1.723e-06, allocations: 0 / 268 MB, free: 6.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.057e-05/2.229e-05, allocations: 2.312 kB / 268 MB, free: 6.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003147/0.00317, allocations: 2.212 MB / 270.2 MB, free: 4.238 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001205/0.004374, allocations: 0.6816 MB / 270.9 MB, free: 3.551 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.004487, allocations: 4 kB / 270.9 MB, free: 3.547 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002059/0.004693, allocations: 35.66 kB / 270.9 MB, free: 3.512 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002146/0.004907, allocations: 79.34 kB / 271 MB, free: 3.434 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004238/0.005331, allocations: 107.7 kB / 271.1 MB, free: 3.328 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003375/0.005668, allocations: 283.4 kB / 271.4 MB, free: 3.051 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001407/0.005809, allocations: 40.5 kB / 271.4 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002519/0.006061, allocations: 163.7 kB / 271.6 MB, free: 2.848 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001912/0.006252, allocations: 107.7 kB / 271.7 MB, free: 2.742 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.586e-05/0.006298, allocations: 20 kB / 271.7 MB, free: 2.723 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000136/0.006434, allocations: 67.95 kB / 271.8 MB, free: 2.656 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.07e-05/0.006515, allocations: 51.81 kB / 271.8 MB, free: 2.605 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001021/0.006617, allocations: 83.81 kB / 271.9 MB, free: 2.523 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003529/0.00697, allocations: 223.2 kB / 272.1 MB, free: 2.305 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.006973, allocations: 0 / 272.1 MB, free: 2.305 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.31e-07/0.006974, allocations: 0 / 272.1 MB, free: 2.305 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.5e-06/0.006979, allocations: 0 / 272.1 MB, free: 2.305 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.0008885/0.007868, allocations: 0.583 MB / 272.7 MB, free: 1.68 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.186e-05/0.00791, allocations: 8.031 kB / 272.7 MB, free: 1.672 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001026/0.008012, allocations: 40.8 kB / 272.7 MB, free: 1.633 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002756/0.008288, allocations: 188.2 kB / 272.9 MB, free: 1.422 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.922e-05/0.008317, allocations: 12.38 kB / 272.9 MB, free: 1.41 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.139e-05/0.008368, allocations: 24.33 kB / 273 MB, free: 1.387 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004333/0.008802, allocations: 210.1 kB / 273.2 MB, free: 1.164 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.00882, allocations: 4.188 kB / 273.2 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.581e-05/0.008846, allocations: 8.375 kB / 273.2 MB, free: 1.152 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.008857, allocations: 7.938 kB / 273.2 MB, free: 1.145 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002469/0.009104, allocations: 95.86 kB / 273.3 MB, free: 1.051 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009394/0.01004, allocations: 0.6348 MB / 273.9 MB, free: 384 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003853/0.01043, allocations: 138.9 kB / 274 MB, free: 232 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001291/0.01056, allocations: 55.66 kB / 274.1 MB, free: 172 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.01058, allocations: 8 kB / 274.1 MB, free: 164 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005257/0.01111, allocations: 125.3 kB / 274.2 MB, free: 24 kB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.184e-06/0.01111, allocations: 0 / 274.2 MB, free: 24 kB / 250.7 MB Notification: Performance of matching and sorting (n=26): time 0.001521/0.01263, allocations: 0.7283 MB / 275 MB, free: 15.23 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.494e-05/0.01267, allocations: 55.41 kB / 275 MB, free: 15.16 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001825/0.01285, allocations: 242.6 kB / 275.3 MB, free: 14.91 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.01288, allocations: 33.7 kB / 275.3 MB, free: 14.87 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.31e-05/0.01297, allocations: 179.2 kB / 275.5 MB, free: 14.69 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.78e-05/0.01305, allocations: 99.2 kB / 275.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.01317, allocations: 67.34 kB / 275.6 MB, free: 14.52 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.01332, allocations: 0.4962 MB / 276.1 MB, free: 14.01 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000157/0.01347, allocations: 85.98 kB / 276.2 MB, free: 13.91 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001785/0.01365, allocations: 144.8 kB / 276.3 MB, free: 13.75 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002548/0.01391, allocations: 187.1 kB / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.01391, allocations: 0 / 276.5 MB, free: 13.55 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0005721/0.01448, allocations: 341.4 kB / 276.9 MB, free: 13.19 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.446e-05/0.01452, allocations: 29.7 kB / 276.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.032e-06/0.01452, allocations: 0 / 276.9 MB, free: 13.16 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002002/0.01472, allocations: 67.58 kB / 277 MB, free: 13.09 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001805/0.0149, allocations: 51.97 kB / 277 MB, free: 13.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004736/0.01538, allocations: 0.8584 MB / 277.9 MB, free: 12.14 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001585/0.01554, allocations: 23.98 kB / 277.9 MB, free: 12.12 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.626e-05/0.01556, allocations: 15.98 kB / 277.9 MB, free: 12.11 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.0001214/0.01568, allocations: 172.5 kB / 278.1 MB, free: 11.93 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.805e-05/0.01573, allocations: 35.8 kB / 278.1 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.308e-05/0.01578, allocations: 25.97 kB / 278.1 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.01579, allocations: 8.016 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/0.01579, allocations: 4 kB / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.0158, allocations: 0 / 278.1 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007464/0.01654, allocations: 0.5485 MB / 278.7 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.475e-06/0.01655, allocations: 0 / 278.7 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001648/0.01671, allocations: 39.91 kB / 278.7 MB, free: 11.22 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001374/0.01685, allocations: 59.64 kB / 278.8 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.01687, allocations: 8 kB / 278.8 MB, free: 11.15 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004227/0.01729, allocations: 0.8546 MB / 279.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01729, allocations: 3.938 kB / 279.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005592/0.01785, allocations: 440.1 kB / 280.1 MB, free: 9.805 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.695e-05/0.01793, allocations: 31.88 kB / 280.1 MB, free: 9.773 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.132e-05/0.01797, allocations: 8 kB / 280.1 MB, free: 9.766 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001535/0.01812, allocations: 24 kB / 280.1 MB, free: 9.742 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.076e-05/0.01821, allocations: 35.92 kB / 280.2 MB, free: 9.707 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.778e-05/0.01823, allocations: 12.03 kB / 280.2 MB, free: 9.695 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001036/0.01834, allocations: 175.3 kB / 280.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01834, allocations: 0 / 280.4 MB, free: 9.523 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003541/0.01869, allocations: 75.94 kB / 280.4 MB, free: 9.449 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.0001763/0.01887, allocations: 119.2 kB / 280.6 MB, free: 9.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004831/0.01935, allocations: 264.6 kB / 280.8 MB, free: 9.039 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.01935, allocations: 0 / 280.8 MB, free: 9.039 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000207/0.01956, allocations: 111.6 kB / 280.9 MB, free: 8.926 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003898/0.01995, allocations: 44.06 kB / 281 MB, free: 8.883 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001409/0.02136, allocations: 0.5656 MB / 281.5 MB, free: 8.285 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.434e-05/0.0214, allocations: 80.33 kB / 281.6 MB, free: 8.188 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.441e-05/0.02147, allocations: 25.92 kB / 281.6 MB, free: 8.164 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.815e-05/0.02151, allocations: 24.5 kB / 281.7 MB, free: 8.141 MB / 266.7 MB Notification: Performance of SimCode: time 6.82e-07/0.02151, allocations: 0 / 281.7 MB, free: 8.141 MB / 266.7 MB Notification: Performance of Templates: time 0.005619/0.02713, allocations: 3.878 MB / 285.5 MB, free: 4.305 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.80413056910038]