Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.001055/0.001055, allocations: 85.95 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001081/0.001081, allocations: 162.1 kB / 25.61 MB, free: 8.91 MB / 18.57 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 0.9588/0.9588, allocations: 158.6 MB / 187.5 MB, free: 2.789 MB / 170.7 MB " [Timeout remaining time 179] 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.OneWayClutchDisengaged,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.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_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.823e-06/1.823e-06, allocations: 0 / 251.4 MB, free: 7.262 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.554e-05/2.736e-05, allocations: 2.312 kB / 251.4 MB, free: 7.258 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.004133/0.004161, allocations: 2.218 MB / 253.7 MB, free: 5.023 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001506/0.005666, allocations: 0.7292 MB / 254.4 MB, free: 4.285 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001375/0.005804, allocations: 7.938 kB / 254.4 MB, free: 4.277 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001983/0.006002, allocations: 31.66 kB / 254.4 MB, free: 4.246 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002097/0.006212, allocations: 63.48 kB / 254.5 MB, free: 4.184 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004099/0.006622, allocations: 119.6 kB / 254.6 MB, free: 4.066 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003129/0.006935, allocations: 267.3 kB / 254.9 MB, free: 3.805 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.007079, allocations: 40.56 kB / 254.9 MB, free: 3.766 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002536/0.007333, allocations: 155.7 kB / 255.1 MB, free: 3.613 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001952/0.007528, allocations: 99.75 kB / 255.2 MB, free: 3.516 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.706e-05/0.007565, allocations: 16 kB / 255.2 MB, free: 3.5 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001468/0.007712, allocations: 71.89 kB / 255.2 MB, free: 3.43 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.211e-05/0.007784, allocations: 51.81 kB / 255.3 MB, free: 3.379 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.421e-05/0.007868, allocations: 75.83 kB / 255.4 MB, free: 3.305 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003338/0.008202, allocations: 219.2 kB / 255.6 MB, free: 3.09 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.354e-06/0.008204, allocations: 4 kB / 255.6 MB, free: 3.086 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.01e-07/0.008205, allocations: 0 / 255.6 MB, free: 3.086 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.34e-06/0.00821, allocations: 0 / 255.6 MB, free: 3.086 MB / 234.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.0007385/0.008949, allocations: 0.5389 MB / 256.1 MB, free: 2.512 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.325e-05/0.009002, allocations: 15.98 kB / 256.1 MB, free: 2.496 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.871e-05/0.009081, allocations: 36.8 kB / 256.2 MB, free: 2.461 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002263/0.009307, allocations: 180.2 kB / 256.4 MB, free: 2.258 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.92e-05/0.009336, allocations: 16.88 kB / 256.4 MB, free: 2.238 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.031e-05/0.009377, allocations: 24.33 kB / 256.4 MB, free: 2.215 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003018/0.009678, allocations: 189.4 kB / 256.6 MB, free: 2.012 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.854e-05/0.009697, allocations: 8.125 kB / 256.6 MB, free: 2.004 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.808e-05/0.009715, allocations: 4.375 kB / 256.6 MB, free: 2 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.126e-05/0.009726, allocations: 7.938 kB / 256.6 MB, free: 1.992 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001558/0.009882, allocations: 77.05 kB / 256.7 MB, free: 1.918 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009393/0.01082, allocations: 0.6831 MB / 257.4 MB, free: 1.191 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.01107, allocations: 98.69 kB / 257.5 MB, free: 1.086 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.761e-05/0.01114, allocations: 47.64 kB / 257.5 MB, free: 1.035 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.75e-05/0.01115, allocations: 4 kB / 257.5 MB, free: 1.031 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.849e-05/0.01118, allocations: 45.33 kB / 257.6 MB, free: 0.9766 MB / 234.7 MB Notification: Performance of pre-optimization done (n=18): time 1.833e-06/0.01119, allocations: 3.938 kB / 257.6 MB, free: 0.9727 MB / 234.7 MB Notification: Performance of matching and sorting (n=20): time 0.001088/0.01227, allocations: 0.573 MB / 258.1 MB, free: 344 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.926e-05/0.0123, allocations: 59.41 kB / 258.2 MB, free: 272 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001603/0.01246, allocations: 237.7 kB / 258.4 MB, free: 16 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.52e-05/0.0125, allocations: 25.7 kB / 258.4 MB, free: 15.98 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.871e-05/0.0126, allocations: 199.1 kB / 258.6 MB, free: 15.79 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.72e-05/0.01265, allocations: 71.38 kB / 258.7 MB, free: 15.71 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-05/0.01274, allocations: 59.33 kB / 258.8 MB, free: 15.65 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.0129, allocations: 0.504 MB / 259.3 MB, free: 15.13 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.034e-05/0.01297, allocations: 31.97 kB / 259.3 MB, free: 15.1 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.893e-05/0.01307, allocations: 83.98 kB / 259.4 MB, free: 15 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.01322, allocations: 116 kB / 259.5 MB, free: 14.88 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.01322, allocations: 0 / 259.5 MB, free: 14.88 MB / 250.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003152/0.01353, allocations: 214.6 kB / 259.7 MB, free: 14.66 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.01355, allocations: 11.98 kB / 259.7 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.01356, allocations: 0 / 259.7 MB, free: 14.64 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001628/0.01372, allocations: 51.64 kB / 259.8 MB, free: 14.59 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001309/0.01385, allocations: 43.91 kB / 259.8 MB, free: 14.55 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003492/0.0142, allocations: 0.843 MB / 260.7 MB, free: 13.67 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.636e-05/0.01428, allocations: 15.98 kB / 260.7 MB, free: 13.66 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.042e-05/0.01429, allocations: 8 kB / 260.7 MB, free: 13.65 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: 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 8.263e-05/0.01437, allocations: 172.5 kB / 260.8 MB, free: 13.47 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.866e-05/0.0144, allocations: 27.89 kB / 260.9 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.318e-05/0.01443, allocations: 21.8 kB / 260.9 MB, free: 13.42 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.01443, allocations: 4 kB / 260.9 MB, free: 13.41 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.773e-06/0.01444, allocations: 0 / 260.9 MB, free: 13.41 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.01444, allocations: 0 / 260.9 MB, free: 13.41 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004168/0.01486, allocations: 492.1 kB / 261.4 MB, free: 12.89 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.01486, allocations: 0 / 261.4 MB, free: 12.89 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.422e-05/0.01494, allocations: 31.98 kB / 261.4 MB, free: 12.86 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.073e-05/0.01503, allocations: 59.5 kB / 261.5 MB, free: 12.8 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.01504, allocations: 8 kB / 261.5 MB, free: 12.79 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003025/0.01535, allocations: 0.843 MB / 262.3 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.01535, allocations: 0 / 262.3 MB, free: 11.91 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002728/0.01562, allocations: 382.5 kB / 262.7 MB, free: 11.51 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.489e-05/0.01567, allocations: 31.88 kB / 262.7 MB, free: 11.48 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.785e-05/0.01568, allocations: 0 / 262.7 MB, free: 11.48 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.964e-05/0.01576, allocations: 19.92 kB / 262.7 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.907e-05/0.01581, allocations: 23.95 kB / 262.8 MB, free: 11.43 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-06/0.01582, allocations: 4 kB / 262.8 MB, free: 11.43 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.795e-05/0.01589, allocations: 175.6 kB / 262.9 MB, free: 11.26 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.01589, allocations: 4.031 kB / 262.9 MB, free: 11.25 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002141/0.0161, allocations: 67.94 kB / 263 MB, free: 11.19 MB / 250.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.0001442/0.01625, allocations: 119.2 kB / 263.1 MB, free: 11.06 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002186/0.01647, allocations: 124.7 kB / 263.3 MB, free: 10.94 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.01647, allocations: 4 kB / 263.3 MB, free: 10.93 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.268e-05/0.01656, allocations: 81.11 kB / 263.3 MB, free: 10.85 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002774/0.01684, allocations: 52.23 kB / 263.4 MB, free: 10.8 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000862/0.0177, allocations: 0.5608 MB / 263.9 MB, free: 10.2 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.971e-05/0.01775, allocations: 75.98 kB / 264 MB, free: 10.11 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.559e-05/0.01781, allocations: 17.95 kB / 264 MB, free: 10.09 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.809e-05/0.01789, allocations: 106.2 kB / 264.1 MB, free: 9.988 MB / 250.7 MB Notification: Performance of SimCode: time 7.31e-07/0.0179, allocations: 0 / 264.1 MB, free: 9.988 MB / 250.7 MB Notification: Performance of Templates: time 0.005007/0.0229, allocations: 3.146 MB / 267.3 MB, free: 6.859 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.7354132062755525]