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.002482/0.002482, allocations: 99.86 kB / 20.96 MB, free: 3.457 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.002739/0.002739, allocations: 145.5 kB / 24.26 MB, free: 168 kB / 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 1.524/1.524, allocations: 173.3 MB / 200.8 MB, free: 9.324 MB / 186.7 MB " [Timeout remaining time 178] 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.543e-06/1.543e-06, allocations: 0 / 267.3 MB, free: 6.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.061e-05/3.215e-05, allocations: 6.25 kB / 267.3 MB, free: 6.762 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00398/0.004012, allocations: 2.209 MB / 269.5 MB, free: 4.539 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001385/0.005397, allocations: 0.6699 MB / 270.2 MB, free: 3.863 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001148/0.005512, allocations: 11.94 kB / 270.2 MB, free: 3.852 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002246/0.005737, allocations: 35.66 kB / 270.2 MB, free: 3.816 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001943/0.005931, allocations: 67.41 kB / 270.3 MB, free: 3.75 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003887/0.00632, allocations: 103.7 kB / 270.4 MB, free: 3.648 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003686/0.006688, allocations: 271.3 kB / 270.7 MB, free: 3.383 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.006839, allocations: 56.45 kB / 270.7 MB, free: 3.324 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00025/0.007089, allocations: 155.6 kB / 270.9 MB, free: 3.172 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002076/0.007296, allocations: 95.75 kB / 271 MB, free: 3.078 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.823e-05/0.007344, allocations: 20 kB / 271 MB, free: 3.059 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001767/0.007521, allocations: 67.94 kB / 271 MB, free: 2.992 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.736e-05/0.007609, allocations: 47.83 kB / 271.1 MB, free: 2.945 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001141/0.007723, allocations: 79.81 kB / 271.2 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004441/0.008167, allocations: 295 kB / 271.5 MB, free: 2.578 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.092e-06/0.008173, allocations: 8 kB / 271.5 MB, free: 2.57 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.008174, allocations: 0 / 271.5 MB, free: 2.57 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.402e-06/0.00818, allocations: 0 / 271.5 MB, free: 2.57 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.0009519/0.009132, allocations: 0.5465 MB / 272 MB, free: 1.984 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.009168, allocations: 8.922 kB / 272 MB, free: 1.977 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.761e-05/0.009266, allocations: 36.8 kB / 272.1 MB, free: 1.941 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003283/0.009594, allocations: 188.2 kB / 272.2 MB, free: 1.73 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.94e-05/0.009624, allocations: 16.86 kB / 272.3 MB, free: 1.715 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.309e-05/0.009677, allocations: 24.36 kB / 272.3 MB, free: 1.691 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004581/0.01013, allocations: 224.8 kB / 272.5 MB, free: 1.453 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.045e-05/0.01016, allocations: 4.188 kB / 272.5 MB, free: 1.449 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.535e-05/0.01018, allocations: 8.375 kB / 272.5 MB, free: 1.441 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.017e-05/0.01019, allocations: 11.94 kB / 272.5 MB, free: 1.43 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003716/0.01056, allocations: 157 kB / 272.7 MB, free: 1.277 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001353/0.01192, allocations: 0.7724 MB / 273.4 MB, free: 472 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003879/0.0123, allocations: 138.8 kB / 273.6 MB, free: 320 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001588/0.01246, allocations: 63.66 kB / 273.6 MB, free: 252 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.363e-05/0.01249, allocations: 4 kB / 273.6 MB, free: 248 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.342e-05/0.01252, allocations: 33.39 kB / 273.7 MB, free: 204 kB / 250.7 MB Notification: Performance of pre-optimization done (n=18): time 1.283e-06/0.01252, allocations: 0 / 273.7 MB, free: 204 kB / 250.7 MB Notification: Performance of matching and sorting (n=20): time 0.001972/0.01449, allocations: 0.7585 MB / 274.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.041e-05/0.01454, allocations: 55.41 kB / 274.5 MB, free: 15.31 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002837/0.01483, allocations: 265.8 kB / 274.8 MB, free: 15.04 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.098e-05/0.01486, allocations: 33.64 kB / 274.8 MB, free: 15 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.01501, allocations: 203 kB / 275 MB, free: 14.79 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.451e-05/0.01509, allocations: 71.44 kB / 275.1 MB, free: 14.72 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001209/0.01521, allocations: 71.3 kB / 275.1 MB, free: 14.64 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000291/0.0155, allocations: 0.504 MB / 275.6 MB, free: 14.13 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.01567, allocations: 71.97 kB / 275.7 MB, free: 14.06 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002207/0.01589, allocations: 126.9 kB / 275.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.01622, allocations: 176.1 kB / 276 MB, free: 13.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-06/0.01622, allocations: 0 / 276 MB, free: 13.73 MB / 266.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005878/0.01681, allocations: 295.5 kB / 276.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.01683, allocations: 4 kB / 276.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.21e-06/0.01683, allocations: 0 / 276.3 MB, free: 13.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002698/0.0171, allocations: 83.59 kB / 276.4 MB, free: 13.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001932/0.01729, allocations: 39.98 kB / 276.4 MB, free: 13.3 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009163/0.01821, allocations: 0.8897 MB / 277.3 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001783/0.01839, allocations: 19.92 kB / 277.3 MB, free: 12.36 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.939e-05/0.01841, allocations: 12.06 kB / 277.3 MB, free: 12.35 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 0.0001745/0.01858, allocations: 184.5 kB / 277.5 MB, free: 12.16 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.142e-05/0.01864, allocations: 23.91 kB / 277.5 MB, free: 12.13 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.045e-05/0.01872, allocations: 25.8 kB / 277.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.01872, allocations: 0 / 277.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.01872, allocations: 0 / 277.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.748e-06/0.01873, allocations: 0 / 277.6 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00103/0.01976, allocations: 0.5977 MB / 278.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.01976, allocations: 0 / 278.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001666/0.01993, allocations: 31.98 kB / 278.2 MB, free: 11.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002063/0.02013, allocations: 67.64 kB / 278.3 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.956e-05/0.02015, allocations: 4 kB / 278.3 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007412/0.02089, allocations: 0.8936 MB / 279.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.02089, allocations: 0 / 279.1 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007656/0.02166, allocations: 481.9 kB / 279.6 MB, free: 9.926 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.024e-05/0.02175, allocations: 35.83 kB / 279.7 MB, free: 9.891 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.834e-05/0.02179, allocations: 8 kB / 279.7 MB, free: 9.883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001633/0.02195, allocations: 11.98 kB / 279.7 MB, free: 9.871 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.122e-05/0.02204, allocations: 31.89 kB / 279.7 MB, free: 9.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.591e-05/0.02207, allocations: 4 kB / 279.7 MB, free: 9.836 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001796/0.02225, allocations: 188.7 kB / 279.9 MB, free: 9.652 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02225, allocations: 0 / 279.9 MB, free: 9.652 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003544/0.0226, allocations: 67.94 kB / 280 MB, free: 9.586 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.0002351/0.02284, allocations: 123.2 kB / 280.1 MB, free: 9.453 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000573/0.02341, allocations: 204.8 kB / 280.3 MB, free: 9.246 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.02341, allocations: 4 kB / 280.3 MB, free: 9.242 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002628/0.02368, allocations: 106.2 kB / 280.4 MB, free: 9.137 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004221/0.0241, allocations: 44.3 kB / 280.4 MB, free: 9.094 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001324/0.02542, allocations: 0.5773 MB / 281 MB, free: 8.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001556/0.02558, allocations: 129.2 kB / 281.1 MB, free: 8.336 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 8.388e-05/0.02566, allocations: 17.95 kB / 281.2 MB, free: 8.316 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.318e-05/0.02571, allocations: 16.5 kB / 281.2 MB, free: 8.301 MB / 266.7 MB Notification: Performance of SimCode: time 7.11e-07/0.02572, allocations: 0 / 281.2 MB, free: 8.301 MB / 266.7 MB Notification: Performance of Templates: time 0.008194/0.03391, allocations: 2.898 MB / 284.1 MB, free: 5.445 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.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.459868637030013]