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.001133/0.001133, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.0009541/0.0009541, allocations: 147.9 kB / 24.81 MB, free: 9.27 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.9762/0.9762, allocations: 173.3 MB / 201.4 MB, free: 9.207 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.423e-06/1.423e-06, allocations: 0 / 268.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.392e-05/2.534e-05, allocations: 6.25 kB / 268.4 MB, free: 6.207 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00247/0.002495, allocations: 2.228 MB / 270.6 MB, free: 3.965 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009338/0.003429, allocations: 0.6777 MB / 271.3 MB, free: 3.281 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.659e-05/0.003525, allocations: 4 kB / 271.3 MB, free: 3.277 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001586/0.003684, allocations: 35.66 kB / 271.3 MB, free: 3.242 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001292/0.003813, allocations: 63.47 kB / 271.4 MB, free: 3.18 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002835/0.004097, allocations: 111.6 kB / 271.5 MB, free: 3.07 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002168/0.004313, allocations: 275.4 kB / 271.8 MB, free: 2.801 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.004429, allocations: 40.56 kB / 271.8 MB, free: 2.758 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001664/0.004596, allocations: 155.6 kB / 272 MB, free: 2.605 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001389/0.004734, allocations: 95.75 kB / 272.1 MB, free: 2.512 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.826e-05/0.004763, allocations: 16 kB / 272.1 MB, free: 2.496 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001089/0.004872, allocations: 71.94 kB / 272.1 MB, free: 2.426 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.177e-05/0.004923, allocations: 47.83 kB / 272.2 MB, free: 2.379 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.543e-05/0.004979, allocations: 79.77 kB / 272.3 MB, free: 2.301 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002249/0.005204, allocations: 223.2 kB / 272.5 MB, free: 2.082 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.005206, allocations: 0 / 272.5 MB, free: 2.082 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.51e-07/0.005207, allocations: 0 / 272.5 MB, free: 2.082 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.606e-06/0.005211, allocations: 4 kB / 272.5 MB, free: 2.078 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.0005006/0.005711, allocations: 0.5312 MB / 273 MB, free: 1.508 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.005746, allocations: 8.922 kB / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.94e-05/0.005795, allocations: 36.8 kB / 273.1 MB, free: 1.465 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001648/0.00596, allocations: 188.2 kB / 273.3 MB, free: 1.254 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.005979, allocations: 12.88 kB / 273.3 MB, free: 1.242 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.785e-05/0.006007, allocations: 20.38 kB / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002072/0.006214, allocations: 189.4 kB / 273.5 MB, free: 1.016 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.006224, allocations: 4.188 kB / 273.5 MB, free: 1.012 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.006238, allocations: 8.375 kB / 273.5 MB, free: 1.004 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.006245, allocations: 7.938 kB / 273.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.563e-05/0.00634, allocations: 84.78 kB / 273.6 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006322/0.006972, allocations: 0.687 MB / 274.3 MB, free: 196 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001682/0.007141, allocations: 98.88 kB / 274.4 MB, free: 84 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.277e-05/0.007183, allocations: 43.64 kB / 274.4 MB, free: 36 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.566e-05/0.007199, allocations: 7.938 kB / 274.4 MB, free: 28 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.021e-05/0.007229, allocations: 41.39 kB / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=18): time 1.503e-06/0.007231, allocations: 0 / 274.4 MB, free: 15.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=20): time 0.0007764/0.008007, allocations: 0.571 MB / 275 MB, free: 15.34 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.711e-05/0.008034, allocations: 59.39 kB / 275.1 MB, free: 15.27 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001202/0.008155, allocations: 237.7 kB / 275.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/0.008169, allocations: 33.7 kB / 275.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.58e-05/0.008244, allocations: 199.1 kB / 275.5 MB, free: 14.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.94e-05/0.008284, allocations: 71.41 kB / 275.6 MB, free: 14.71 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-05/0.008344, allocations: 63.28 kB / 275.7 MB, free: 14.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.008465, allocations: 0.4962 MB / 276.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.44e-05/0.008509, allocations: 31.97 kB / 276.2 MB, free: 14.11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.984e-05/0.008579, allocations: 86.86 kB / 276.3 MB, free: 14 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001058/0.008685, allocations: 116 kB / 276.4 MB, free: 13.87 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.008686, allocations: 0 / 276.4 MB, free: 13.87 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000215/0.008901, allocations: 211.4 kB / 276.6 MB, free: 13.66 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.008914, allocations: 8 kB / 276.6 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.008919, allocations: 0 / 276.6 MB, free: 13.65 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001293/0.009048, allocations: 59.62 kB / 276.7 MB, free: 13.59 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.25e-05/0.00913, allocations: 35.92 kB / 276.7 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003467/0.009477, allocations: 0.8429 MB / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.891e-05/0.009556, allocations: 28.02 kB / 277.6 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.859e-06/0.009566, allocations: 4 kB / 277.6 MB, free: 12.64 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 8.563e-05/0.009651, allocations: 172.5 kB / 277.7 MB, free: 12.46 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.201e-05/0.009683, allocations: 27.94 kB / 277.8 MB, free: 12.44 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.902e-05/0.009722, allocations: 25.8 kB / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.009724, allocations: 0 / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.009727, allocations: 0 / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.376e-06/0.00973, allocations: 0 / 277.8 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000416/0.01015, allocations: 488.7 kB / 278.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.01015, allocations: 0 / 278.3 MB, free: 11.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.441e-05/0.01023, allocations: 31.92 kB / 278.3 MB, free: 11.86 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.262e-05/0.01033, allocations: 59.56 kB / 278.4 MB, free: 11.8 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.929e-06/0.01034, allocations: 8 kB / 278.4 MB, free: 11.79 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003099/0.01064, allocations: 0.8429 MB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.01065, allocations: 0 / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002798/0.01093, allocations: 389.7 kB / 279.6 MB, free: 10.5 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.675e-05/0.01097, allocations: 27.83 kB / 279.6 MB, free: 10.48 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.741e-05/0.01099, allocations: 4 kB / 279.6 MB, free: 10.47 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.598e-05/0.01107, allocations: 19.92 kB / 279.6 MB, free: 10.45 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.504e-05/0.01111, allocations: 23.95 kB / 279.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.01112, allocations: 7.984 kB / 279.7 MB, free: 10.42 MB / 266.7 MB Notification: Performance of sorting global known variables: time 6.456e-05/0.01119, allocations: 168.7 kB / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01119, allocations: 0 / 279.8 MB, free: 10.26 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002098/0.01139, allocations: 67.94 kB / 279.9 MB, free: 10.19 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.0001438/0.01154, allocations: 126.3 kB / 280 MB, free: 10.06 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002297/0.01177, allocations: 142.8 kB / 280.2 MB, free: 9.914 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.953e-06/0.01177, allocations: 0 / 280.2 MB, free: 9.914 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.723e-05/0.01186, allocations: 76.7 kB / 280.2 MB, free: 9.836 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.0121, allocations: 32.38 kB / 280.3 MB, free: 9.805 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008084/0.01291, allocations: 0.5811 MB / 280.9 MB, free: 9.188 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.469e-05/0.01295, allocations: 79.97 kB / 280.9 MB, free: 9.09 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.735e-05/0.013, allocations: 17.95 kB / 281 MB, free: 9.074 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.972e-05/0.01308, allocations: 98.19 kB / 281 MB, free: 8.977 MB / 266.7 MB Notification: Performance of SimCode: time 7.81e-07/0.01308, allocations: 0 / 281 MB, free: 8.977 MB / 266.7 MB Notification: Performance of Templates: time 0.004784/0.01786, allocations: 3.161 MB / 284.2 MB, free: 5.867 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 -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.716183979064226]