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.001287/0.001287, allocations: 79.7 kB / 20.68 MB, free: 1.023 MB / 14.72 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.001234/0.001234, allocations: 146 kB / 23.93 MB, free: 4.176 MB / 14.72 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 1.458/1.458, allocations: 173.4 MB / 200.4 MB, free: 12.88 MB / 190.1 MB " [Timeout remaining time 178] 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.535e-06/2.535e-06, allocations: 0 / 318.9 MB, free: 3.566 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.494e-05/3.747e-05, allocations: 4.578 kB / 318.9 MB, free: 3.562 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004591/0.004628, allocations: 2.062 MB / 321 MB, free: 2.176 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001643/0.006271, allocations: 0.6836 MB / 321.7 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001535/0.006425, allocations: 2.281 kB / 321.7 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002357/0.006661, allocations: 31.72 kB / 321.7 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002673/0.006928, allocations: 70.84 kB / 321.8 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005096/0.007437, allocations: 118.6 kB / 321.9 MB, free: 1.578 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004542/0.007892, allocations: 283.8 kB / 322.2 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001848/0.008076, allocations: 35.47 kB / 322.2 MB, free: 1.422 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003731/0.00845, allocations: 169.7 kB / 322.4 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002556/0.008705, allocations: 100.3 kB / 322.5 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.434e-05/0.00877, allocations: 21 kB / 322.5 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002182/0.008988, allocations: 67.5 kB / 322.5 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.009094, allocations: 53.95 kB / 322.6 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001532/0.009247, allocations: 79.7 kB / 322.7 MB, free: 1.238 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005637/0.009811, allocations: 308.4 kB / 323 MB, free: 1.117 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.012e-06/0.009817, allocations: 4.656 kB / 323 MB, free: 1.113 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.009818, allocations: 3.938 kB / 323 MB, free: 1.109 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.534e-05/0.009834, allocations: 0 / 323 MB, free: 1.109 MB / 286.1 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.001336/0.01117, allocations: 496.3 kB / 323.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.576e-05/0.01123, allocations: 7.969 kB / 323.5 MB, free: 0.7148 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.01134, allocations: 29.83 kB / 323.5 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.01175, allocations: 181.1 kB / 323.7 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.647e-05/0.01177, allocations: 19.47 kB / 323.7 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.355e-05/0.01185, allocations: 23.14 kB / 323.7 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007425/0.01259, allocations: 234.5 kB / 323.9 MB, free: 412 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.497e-05/0.01261, allocations: 4.875 kB / 324 MB, free: 408 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.364e-05/0.01268, allocations: 10.22 kB / 324 MB, free: 400 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.094e-05/0.01269, allocations: 9.312 kB / 324 MB, free: 396 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007546/0.01344, allocations: 191.8 kB / 324.2 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001344/0.01479, allocations: 0.5563 MB / 324.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008954/0.01568, allocations: 186.8 kB / 324.9 MB, free: 15.86 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003888/0.01607, allocations: 92.84 kB / 325 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.732e-05/0.0161, allocations: 2.562 kB / 325 MB, free: 15.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005678/0.01667, allocations: 175 kB / 325.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 2.816e-06/0.01667, allocations: 0 / 325.2 MB, free: 15.73 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.004038/0.02071, allocations: 0.9278 MB / 326.1 MB, free: 15.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.684e-05/0.02077, allocations: 55.34 kB / 326.1 MB, free: 15.17 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003669/0.02114, allocations: 196.5 kB / 326.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.665e-05/0.0212, allocations: 32.72 kB / 326.4 MB, free: 15 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001684/0.02137, allocations: 135.8 kB / 326.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001463/0.02151, allocations: 90.78 kB / 326.6 MB, free: 14.81 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001938/0.02171, allocations: 63.44 kB / 326.6 MB, free: 14.77 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002232/0.02193, allocations: 330.4 kB / 327 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005334/0.02246, allocations: 133.7 kB / 327.1 MB, free: 14.38 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006055/0.02307, allocations: 174.8 kB / 327.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001011/0.02408, allocations: 240 kB / 327.5 MB, free: 14.16 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.02408, allocations: 4 kB / 327.5 MB, free: 14.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001758/0.02584, allocations: 432.5 kB / 327.9 MB, free: 13.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.799e-05/0.0259, allocations: 32.91 kB / 328 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.02591, allocations: 1.219 kB / 328 MB, free: 13.9 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004343/0.02634, allocations: 82.55 kB / 328 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004154/0.02676, allocations: 45.3 kB / 328.1 MB, free: 13.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001004/0.02776, allocations: 0.621 MB / 328.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005002/0.02826, allocations: 34.94 kB / 328.7 MB, free: 13.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.117e-05/0.02831, allocations: 13.88 kB / 328.8 MB, free: 13.28 MB / 302.1 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.0002712/0.02858, allocations: 139.6 kB / 328.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.144e-05/0.02866, allocations: 25.78 kB / 328.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.02876, allocations: 28.14 kB / 328.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.02877, allocations: 3.594 kB / 329 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.02878, allocations: 0 / 329 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.02879, allocations: 1.266 kB / 329 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002068/0.03085, allocations: 0.5832 MB / 329.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.03086, allocations: 0 / 329.5 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000446/0.03131, allocations: 50.59 kB / 329.6 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003346/0.03164, allocations: 68.55 kB / 329.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.119e-05/0.03168, allocations: 7.406 kB / 329.7 MB, free: 12.71 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009284/0.03261, allocations: 0.6081 MB / 330.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.035e-06/0.03261, allocations: 0 / 330.3 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001955/0.03457, allocations: 0.5141 MB / 330.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001892/0.03476, allocations: 36.02 kB / 330.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.968e-05/0.03484, allocations: 7.453 kB / 330.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000478/0.03531, allocations: 32.88 kB / 330.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001796/0.03549, allocations: 32.06 kB / 330.9 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.666e-05/0.03554, allocations: 13.62 kB / 330.9 MB, free: 11.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002428/0.03578, allocations: 144.7 kB / 331 MB, free: 11.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 3e-07/0.03578, allocations: 4 kB / 331 MB, free: 11.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007481/0.03653, allocations: 70.2 kB / 331.1 MB, free: 11.72 MB / 302.1 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.0003344/0.03687, allocations: 128.6 kB / 331.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001434/0.0383, allocations: 340 kB / 331.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.0383, allocations: 0 / 331.6 MB, free: 11.45 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006558/0.03896, allocations: 141.6 kB / 331.7 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007089/0.03967, allocations: 38.19 kB / 331.7 MB, free: 11.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002199/0.04187, allocations: 0.554 MB / 332.3 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002133/0.04208, allocations: 133.1 kB / 332.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001789/0.04226, allocations: 20.81 kB / 332.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001037/0.04236, allocations: 20.12 kB / 332.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of SimCode: time 6.31e-07/0.04236, allocations: 5.094 kB / 332.5 MB, free: 10.92 MB / 302.1 MB Notification: Performance of Templates: time 0.01541/0.05777, allocations: 3.605 MB / 336.1 MB, free: 9.281 MB / 302.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.535808000713587]