Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.001206/0.001206, allocations: 85.05 kB / 21.5 MB, free: 2.988 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.001239/0.001239, allocations: 147.7 kB / 24.89 MB, free: 8.793 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.9541/0.9541, allocations: 173.4 MB / 201.5 MB, free: 8.781 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.OneWayClutchDisengaged,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.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,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.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.493e-06/1.493e-06, allocations: 0 / 268.5 MB, free: 6 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.402e-05/2.551e-05, allocations: 6.25 kB / 268.5 MB, free: 5.992 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002853/0.002879, allocations: 2.268 MB / 270.8 MB, free: 3.711 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001116/0.003994, allocations: 0.693 MB / 271.5 MB, free: 3.012 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.0041, allocations: 4 kB / 271.5 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001691/0.004269, allocations: 35.66 kB / 271.5 MB, free: 2.973 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001454/0.004415, allocations: 67.47 kB / 271.6 MB, free: 2.906 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002781/0.004693, allocations: 99.62 kB / 271.7 MB, free: 2.809 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000231/0.004924, allocations: 271.4 kB / 271.9 MB, free: 2.543 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001125/0.005036, allocations: 46.52 kB / 272 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.005207, allocations: 159.6 kB / 272.1 MB, free: 2.34 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001518/0.005359, allocations: 95.77 kB / 272.2 MB, free: 2.246 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.582e-05/0.005385, allocations: 20 kB / 272.3 MB, free: 2.227 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001292/0.005514, allocations: 79.92 kB / 272.3 MB, free: 2.148 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.262e-05/0.005567, allocations: 47.83 kB / 272.4 MB, free: 2.102 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.874e-05/0.005626, allocations: 79.77 kB / 272.5 MB, free: 2.023 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002427/0.005868, allocations: 219.2 kB / 272.7 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.725e-06/0.005871, allocations: 0 / 272.7 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.005872, allocations: 0 / 272.7 MB, free: 1.809 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.329e-06/0.005877, allocations: 0 / 272.7 MB, free: 1.809 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: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.0004759/0.006352, allocations: 416.3 kB / 273.1 MB, free: 1.375 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.034e-05/0.006383, allocations: 12.92 kB / 273.1 MB, free: 1.363 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.366e-05/0.006436, allocations: 32.91 kB / 273.1 MB, free: 1.332 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001755/0.006612, allocations: 157.4 kB / 273.3 MB, free: 1.152 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.106e-05/0.006633, allocations: 16.88 kB / 273.3 MB, free: 1.137 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.879e-05/0.006662, allocations: 24.36 kB / 273.3 MB, free: 1.113 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002138/0.006876, allocations: 187.7 kB / 273.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.006888, allocations: 192 / 273.5 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.443e-05/0.006903, allocations: 12.38 kB / 273.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.654e-06/0.00691, allocations: 7.938 kB / 273.5 MB, free: 0.8945 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.587e-05/0.007006, allocations: 68.83 kB / 273.6 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005718/0.007578, allocations: 0.4998 MB / 274.1 MB, free: 312 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001747/0.007753, allocations: 90.41 kB / 274.2 MB, free: 212 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.222e-05/0.007795, allocations: 36.83 kB / 274.2 MB, free: 172 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.345e-05/0.007808, allocations: 0 / 274.2 MB, free: 172 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.879e-05/0.007827, allocations: 38.5 kB / 274.2 MB, free: 124 kB / 250.7 MB Notification: Performance of pre-optimization done (n=18): time 1.213e-06/0.007828, allocations: 0 / 274.2 MB, free: 124 kB / 250.7 MB Notification: Performance of matching and sorting (n=20): time 0.0008401/0.008668, allocations: 0.5613 MB / 274.8 MB, free: 15.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.748e-05/0.008696, allocations: 55.41 kB / 274.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001069/0.008803, allocations: 182.5 kB / 275 MB, free: 15.25 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.008816, allocations: 29.7 kB / 275.1 MB, free: 15.21 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.602e-05/0.008872, allocations: 140.4 kB / 275.2 MB, free: 15.07 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.039e-05/0.008912, allocations: 75.36 kB / 275.3 MB, free: 15 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.724e-05/0.00897, allocations: 53.67 kB / 275.3 MB, free: 14.94 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.121e-05/0.009061, allocations: 330.8 kB / 275.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.136e-05/0.009102, allocations: 35.92 kB / 275.7 MB, free: 14.57 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.338e-05/0.009166, allocations: 63.62 kB / 275.8 MB, free: 14.49 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.009273, allocations: 108.7 kB / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.009274, allocations: 0 / 275.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0001842/0.009458, allocations: 172.7 kB / 276 MB, free: 14.2 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.372e-05/0.009472, allocations: 8.562 kB / 276 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.009477, allocations: 0 / 276 MB, free: 14.19 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001446/0.009621, allocations: 52.81 kB / 276.1 MB, free: 14.14 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.03e-05/0.009712, allocations: 47.91 kB / 276.1 MB, free: 14.09 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002801/0.009992, allocations: 0.564 MB / 276.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.72e-05/0.01007, allocations: 20.08 kB / 276.7 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.178e-05/0.01008, allocations: 8 kB / 276.7 MB, free: 13.47 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: 6 (oneWayClutch.free,oneWayClutch.stuck,$PRE.oneWayClutch.stuck,oneWayClutch.locked,oneWayClutch.startForward,$PRE.oneWayClutch.startForward) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.664e-05/0.01016, allocations: 123.3 kB / 276.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.194e-05/0.01019, allocations: 23.97 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.29e-05/0.01022, allocations: 21.81 kB / 276.9 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.01022, allocations: 0 / 276.9 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.973e-06/0.01023, allocations: 0 / 276.9 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.01023, allocations: 0 / 276.9 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003744/0.0106, allocations: 369 kB / 277.3 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.01061, allocations: 0 / 277.3 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.626e-05/0.0107, allocations: 39.91 kB / 277.3 MB, free: 12.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.804e-05/0.0108, allocations: 56.75 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.01081, allocations: 3.984 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002384/0.01105, allocations: 0.568 MB / 277.9 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.01105, allocations: 3.938 kB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002271/0.01128, allocations: 300.9 kB / 278.2 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.283e-05/0.01132, allocations: 19.89 kB / 278.2 MB, free: 11.87 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.023e-05/0.01134, allocations: 8 kB / 278.2 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.216e-05/0.01141, allocations: 11.98 kB / 278.3 MB, free: 11.85 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/0.01147, allocations: 27.89 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.01148, allocations: 4 kB / 278.3 MB, free: 11.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.8e-05/0.01151, allocations: 50.39 kB / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01151, allocations: 0 / 278.3 MB, free: 11.77 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001952/0.01171, allocations: 71.92 kB / 278.4 MB, free: 11.7 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0001446/0.01185, allocations: 111.9 kB / 278.5 MB, free: 11.58 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002171/0.01207, allocations: 129.8 kB / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/0.01207, allocations: 0 / 278.6 MB, free: 11.45 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.997e-05/0.01215, allocations: 65.89 kB / 278.7 MB, free: 11.38 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002117/0.01237, allocations: 44.22 kB / 278.7 MB, free: 11.34 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008231/0.01319, allocations: 0.4989 MB / 279.2 MB, free: 10.8 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.825e-05/0.01324, allocations: 79.98 kB / 279.3 MB, free: 10.7 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.237e-05/0.01329, allocations: 13.95 kB / 279.3 MB, free: 10.69 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.189e-05/0.01337, allocations: 79.36 kB / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of SimCode: time 8.32e-07/0.01337, allocations: 0 / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of Templates: time 0.004992/0.01836, allocations: 3.15 MB / 282.6 MB, free: 7.512 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.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.672789419069886]