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.001114/0.001114, allocations: 81.08 kB / 22.99 MB, free: 1.5 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.001249/0.001249, allocations: 176.3 kB / 26.4 MB, free: 7.969 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.9947/0.9947, allocations: 158.6 MB / 188.3 MB, free: 2.809 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.432e-06/1.432e-06, allocations: 7.875 kB / 252.2 MB, free: 7.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.515e-05/2.658e-05, allocations: 6.25 kB / 252.2 MB, free: 7.277 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.002951/0.002978, allocations: 2.229 MB / 254.5 MB, free: 5.031 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00113/0.004108, allocations: 0.7098 MB / 255.2 MB, free: 4.312 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001307/0.004239, allocations: 7.938 kB / 255.2 MB, free: 4.305 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002283/0.004467, allocations: 31.72 kB / 255.2 MB, free: 4.273 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001596/0.004627, allocations: 71.34 kB / 255.3 MB, free: 4.203 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003691/0.004996, allocations: 107.7 kB / 255.4 MB, free: 4.098 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002765/0.005272, allocations: 279.1 kB / 255.7 MB, free: 3.824 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001258/0.005398, allocations: 44.56 kB / 255.7 MB, free: 3.781 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001694/0.005567, allocations: 155.7 kB / 255.9 MB, free: 3.629 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001657/0.005733, allocations: 91.75 kB / 255.9 MB, free: 3.539 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.877e-05/0.005762, allocations: 20 kB / 256 MB, free: 3.52 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001016/0.005863, allocations: 67.94 kB / 256 MB, free: 3.453 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.068e-05/0.005924, allocations: 51.81 kB / 256.1 MB, free: 3.402 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.014e-05/0.005984, allocations: 75.83 kB / 256.2 MB, free: 3.328 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002411/0.006225, allocations: 219.2 kB / 256.4 MB, free: 3.113 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.735e-06/0.006228, allocations: 3.938 kB / 256.4 MB, free: 3.109 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.006229, allocations: 0 / 256.4 MB, free: 3.109 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.006234, allocations: 0 / 256.4 MB, free: 3.109 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.0005585/0.006792, allocations: 0.5467 MB / 256.9 MB, free: 2.527 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.238e-05/0.006825, allocations: 11.98 kB / 256.9 MB, free: 2.516 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.679e-05/0.006881, allocations: 36.8 kB / 257 MB, free: 2.48 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001777/0.007059, allocations: 180.3 kB / 257.1 MB, free: 2.277 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.486e-05/0.007084, allocations: 20.88 kB / 257.2 MB, free: 2.254 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.001e-05/0.007114, allocations: 24.33 kB / 257.2 MB, free: 2.23 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002233/0.007337, allocations: 185.4 kB / 257.4 MB, free: 2.031 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.181e-05/0.007349, allocations: 192 / 257.4 MB, free: 2.031 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.614e-05/0.007365, allocations: 8.375 kB / 257.4 MB, free: 2.023 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.745e-06/0.007373, allocations: 11.94 kB / 257.4 MB, free: 2.012 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001027/0.007476, allocations: 76.97 kB / 257.5 MB, free: 1.938 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006982/0.008174, allocations: 0.6754 MB / 258.1 MB, free: 1.219 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001978/0.008372, allocations: 106.9 kB / 258.2 MB, free: 1.102 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.462e-05/0.008416, allocations: 39.67 kB / 258.3 MB, free: 1.059 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.436e-05/0.008431, allocations: 0 / 258.3 MB, free: 1.059 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.254e-05/0.008453, allocations: 37.39 kB / 258.3 MB, free: 1.012 MB / 234.7 MB Notification: Performance of pre-optimization done (n=18): time 1.473e-06/0.008455, allocations: 0 / 258.3 MB, free: 1.012 MB / 234.7 MB Notification: Performance of matching and sorting (n=20): time 0.001109/0.009563, allocations: 0.5846 MB / 258.9 MB, free: 372 kB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.488e-05/0.009588, allocations: 63.39 kB / 259 MB, free: 296 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001239/0.009712, allocations: 233.7 kB / 259.2 MB, free: 44 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.428e-05/0.009726, allocations: 29.7 kB / 259.2 MB, free: 8 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.412e-05/0.00981, allocations: 195.1 kB / 259.4 MB, free: 15.81 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.132e-05/0.009852, allocations: 79.34 kB / 259.5 MB, free: 15.73 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.732e-05/0.009909, allocations: 55.34 kB / 259.5 MB, free: 15.67 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001071/0.01002, allocations: 0.5001 MB / 260 MB, free: 15.16 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.366e-05/0.01006, allocations: 31.97 kB / 260.1 MB, free: 15.13 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.629e-05/0.01013, allocations: 83.98 kB / 260.2 MB, free: 15.03 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001035/0.01023, allocations: 116 kB / 260.3 MB, free: 14.9 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.01023, allocations: 0 / 260.3 MB, free: 14.9 MB / 250.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0002166/0.01045, allocations: 222.5 kB / 260.5 MB, free: 14.68 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.01046, allocations: 8 kB / 260.5 MB, free: 14.67 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.01046, allocations: 0 / 260.5 MB, free: 14.67 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001447/0.01061, allocations: 55.64 kB / 260.6 MB, free: 14.61 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.566e-05/0.0107, allocations: 35.92 kB / 260.6 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003248/0.01102, allocations: 0.8508 MB / 261.4 MB, free: 13.69 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.599e-05/0.0111, allocations: 15.98 kB / 261.5 MB, free: 13.68 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.648e-06/0.01111, allocations: 4 kB / 261.5 MB, free: 13.67 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.508e-05/0.01119, allocations: 176.5 kB / 261.6 MB, free: 13.49 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.236e-05/0.01122, allocations: 23.91 kB / 261.7 MB, free: 13.46 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.314e-05/0.01126, allocations: 25.8 kB / 261.7 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.01126, allocations: 0 / 261.7 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.01126, allocations: 0 / 261.7 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.01126, allocations: 4.031 kB / 261.7 MB, free: 13.43 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004374/0.0117, allocations: 488.1 kB / 262.2 MB, free: 12.91 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.0117, allocations: 0 / 262.2 MB, free: 12.91 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.784e-05/0.01179, allocations: 27.98 kB / 262.2 MB, free: 12.89 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.709e-05/0.01189, allocations: 59.58 kB / 262.2 MB, free: 12.82 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.0119, allocations: 4.047 kB / 262.2 MB, free: 12.82 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000323/0.01222, allocations: 0.8547 MB / 263.1 MB, free: 11.93 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.01222, allocations: 3.984 kB / 263.1 MB, free: 11.93 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002811/0.0125, allocations: 370.6 kB / 263.5 MB, free: 11.54 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.537e-05/0.01255, allocations: 27.89 kB / 263.5 MB, free: 11.51 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.133e-05/0.01257, allocations: 7.984 kB / 263.5 MB, free: 11.5 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.622e-05/0.01265, allocations: 11.94 kB / 263.5 MB, free: 11.49 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.622e-05/0.01269, allocations: 23.95 kB / 263.5 MB, free: 11.46 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.129e-05/0.0127, allocations: 11.98 kB / 263.6 MB, free: 11.45 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.28e-05/0.01277, allocations: 167.7 kB / 263.7 MB, free: 11.29 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01277, allocations: 0 / 263.7 MB, free: 11.29 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002177/0.01299, allocations: 67.94 kB / 263.8 MB, free: 11.22 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.0001408/0.01313, allocations: 127.1 kB / 263.9 MB, free: 11.09 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002267/0.01335, allocations: 128.7 kB / 264 MB, free: 10.96 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.01335, allocations: 3.938 kB / 264 MB, free: 10.96 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.01346, allocations: 85.41 kB / 264.1 MB, free: 10.87 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002587/0.01372, allocations: 51.34 kB / 264.2 MB, free: 10.83 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008456/0.01456, allocations: 0.5533 MB / 264.7 MB, free: 10.23 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.477e-05/0.01461, allocations: 79.97 kB / 264.8 MB, free: 10.14 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.251e-05/0.01466, allocations: 25.94 kB / 264.8 MB, free: 10.11 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.152e-05/0.01474, allocations: 94.19 kB / 264.9 MB, free: 10.02 MB / 250.7 MB Notification: Performance of SimCode: time 7.01e-07/0.01474, allocations: 0 / 264.9 MB, free: 10.02 MB / 250.7 MB Notification: Performance of Templates: time 0.005075/0.01982, allocations: 3.222 MB / 268.1 MB, free: 6.812 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.8324427269399166]