Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001356/0.001356, allocations: 84.77 kB / 21.43 MB, free: 296 kB / 14.72 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.001499/0.001499, allocations: 164 kB / 24.7 MB, free: 3.547 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.377/1.377, allocations: 158.6 MB / 186.5 MB, free: 6.398 MB / 174.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.48e-06/5.48e-06, allocations: 4 kB / 298.9 MB, free: 8.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.441e-05/2.989e-05, allocations: 2.281 kB / 298.9 MB, free: 8.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003312/0.003341, allocations: 2.069 MB / 301 MB, free: 6.645 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001294/0.004636, allocations: 0.7059 MB / 301.7 MB, free: 5.93 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.914e-05/0.004735, allocations: 7.938 kB / 301.7 MB, free: 5.922 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001629/0.004898, allocations: 31.72 kB / 301.8 MB, free: 5.891 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000186/0.005084, allocations: 79.34 kB / 301.8 MB, free: 5.812 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003527/0.005437, allocations: 107.7 kB / 301.9 MB, free: 5.707 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003434/0.00578, allocations: 283.4 kB / 302.2 MB, free: 5.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001287/0.005909, allocations: 52.28 kB / 302.3 MB, free: 5.383 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002506/0.006159, allocations: 159.7 kB / 302.4 MB, free: 5.227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001939/0.006353, allocations: 99.75 kB / 302.5 MB, free: 5.129 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.464e-05/0.006398, allocations: 20 kB / 302.5 MB, free: 5.109 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001383/0.006536, allocations: 79.88 kB / 302.6 MB, free: 5.031 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.096e-05/0.006617, allocations: 51.81 kB / 302.7 MB, free: 4.98 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001086/0.006726, allocations: 79.77 kB / 302.7 MB, free: 4.902 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003908/0.007116, allocations: 303.1 kB / 303 MB, free: 4.605 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.007119, allocations: 0 / 303 MB, free: 4.605 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.92e-07/0.00712, allocations: 3.938 kB / 303 MB, free: 4.602 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.007124, allocations: 0 / 303 MB, free: 4.602 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.001036/0.00816, allocations: 0.4949 MB / 303.5 MB, free: 4.07 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.584e-05/0.008196, allocations: 19.98 kB / 303.6 MB, free: 4.051 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.966e-05/0.008266, allocations: 24.8 kB / 303.6 MB, free: 4.027 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003213/0.008587, allocations: 185.3 kB / 303.8 MB, free: 3.82 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.462e-05/0.008612, allocations: 16.38 kB / 303.8 MB, free: 3.805 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.55e-05/0.008667, allocations: 20.36 kB / 303.8 MB, free: 3.785 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005179/0.009185, allocations: 227.8 kB / 304 MB, free: 3.551 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.009202, allocations: 4.188 kB / 304 MB, free: 3.547 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.507e-05/0.009227, allocations: 4.375 kB / 304 MB, free: 3.543 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.009236, allocations: 7.938 kB / 304 MB, free: 3.535 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005359/0.009772, allocations: 199.8 kB / 304.2 MB, free: 3.34 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.01078, allocations: 0.5509 MB / 304.8 MB, free: 2.754 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000604/0.01139, allocations: 186.5 kB / 305 MB, free: 2.562 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/0.01165, allocations: 105.1 kB / 305.1 MB, free: 2.457 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.104e-05/0.01167, allocations: 7.859 kB / 305.1 MB, free: 2.449 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000381/0.01205, allocations: 159.2 kB / 305.2 MB, free: 2.281 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.753e-06/0.01205, allocations: 0 / 305.2 MB, free: 2.281 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002554/0.01461, allocations: 0.9234 MB / 306.2 MB, free: 1.301 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.01465, allocations: 59.41 kB / 306.2 MB, free: 1.23 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002017/0.01485, allocations: 187.2 kB / 306.4 MB, free: 1.039 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.275e-05/0.01489, allocations: 33.7 kB / 306.4 MB, free: 1 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.01499, allocations: 140.4 kB / 306.6 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.433e-05/0.01507, allocations: 91.25 kB / 306.7 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001107/0.01518, allocations: 65.64 kB / 306.7 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.01533, allocations: 330.8 kB / 307 MB, free: 372 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003149/0.01565, allocations: 134 kB / 307.2 MB, free: 228 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003353/0.01598, allocations: 178 kB / 307.3 MB, free: 32 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005875/0.01657, allocations: 251.9 kB / 307.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.572e-06/0.01657, allocations: 0 / 307.6 MB, free: 15.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0009296/0.0175, allocations: 425.6 kB / 308 MB, free: 15.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.985e-05/0.01754, allocations: 45.75 kB / 308.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.01755, allocations: 0 / 308.1 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002445/0.01779, allocations: 68.81 kB / 308.1 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002267/0.01802, allocations: 51.91 kB / 308.2 MB, free: 15.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005553/0.01858, allocations: 0.607 MB / 308.8 MB, free: 14.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000285/0.01886, allocations: 31.97 kB / 308.8 MB, free: 14.49 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.236e-05/0.01889, allocations: 16.12 kB / 308.8 MB, free: 14.48 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.0001541/0.01905, allocations: 141.7 kB / 309 MB, free: 14.33 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.283e-05/0.01909, allocations: 27.8 kB / 309 MB, free: 14.3 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.225e-05/0.01916, allocations: 29.95 kB / 309 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.01917, allocations: 4 kB / 309 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.01917, allocations: 0 / 309 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.01918, allocations: 0 / 309 MB, free: 14.27 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001195/0.02037, allocations: 0.5855 MB / 309.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.02037, allocations: 0 / 309.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002277/0.0206, allocations: 39.97 kB / 309.6 MB, free: 13.61 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001822/0.02078, allocations: 68.8 kB / 309.7 MB, free: 13.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.02081, allocations: 8.047 kB / 309.7 MB, free: 13.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005697/0.02138, allocations: 0.6184 MB / 310.3 MB, free: 12.89 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.237e-06/0.02138, allocations: 8.047 kB / 310.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.02247, allocations: 0.5011 MB / 310.9 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.229e-05/0.02256, allocations: 35.88 kB / 310.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.444e-05/0.02261, allocations: 8 kB / 310.9 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002635/0.02287, allocations: 35.89 kB / 310.9 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.02297, allocations: 35.94 kB / 311 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.022e-05/0.02299, allocations: 8 kB / 311 MB, free: 12.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001378/0.02313, allocations: 139.5 kB / 311.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.02313, allocations: 0 / 311.1 MB, free: 12.1 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003497/0.02348, allocations: 71.94 kB / 311.2 MB, free: 12.03 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.0002216/0.0237, allocations: 123.2 kB / 311.3 MB, free: 11.9 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008304/0.02453, allocations: 340.9 kB / 311.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.02454, allocations: 0 / 311.6 MB, free: 11.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003779/0.02491, allocations: 135.8 kB / 311.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004269/0.02534, allocations: 46.67 kB / 311.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.02664, allocations: 0.5689 MB / 312.4 MB, free: 10.78 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.02677, allocations: 129.6 kB / 312.5 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.697e-05/0.02687, allocations: 25.94 kB / 312.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.699e-05/0.02694, allocations: 24.48 kB / 312.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.02694, allocations: 3.938 kB / 312.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of Templates: time 0.008481/0.03542, allocations: 3.593 MB / 316.2 MB, free: 6.992 MB / 302.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.410572871565819]