Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001303/0.001303, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00167/0.002973, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 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.0007114/0.0007114, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001019/0.00173, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.017/1.017, allocations: 177.2 MB / 189.8 MB, free: 5.254 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08649/1.104, allocations: 53.66 MB / 243.4 MB, free: 15.51 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.193e-06/1.193e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.691e-05/1.811e-05, allocations: 2.312 kB / 244.7 MB, free: 14.24 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003025/0.003043, allocations: 2.359 MB / 247.1 MB, free: 11.86 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001207/0.00425, allocations: 0.8797 MB / 247.9 MB, free: 10.98 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.56e-05/0.004346, allocations: 0 / 247.9 MB, free: 10.98 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001729/0.004519, allocations: 59.44 kB / 248 MB, free: 10.92 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002194/0.004738, allocations: 111.1 kB / 248.1 MB, free: 10.81 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001849/0.004923, allocations: 95.75 kB / 248.2 MB, free: 10.71 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002943/0.005218, allocations: 291.3 kB / 248.5 MB, free: 10.43 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001068/0.005324, allocations: 42.52 kB / 248.5 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003136/0.005638, allocations: 215.4 kB / 248.7 MB, free: 10.18 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001796/0.005818, allocations: 111.7 kB / 248.8 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.676e-05/0.005854, allocations: 20 kB / 248.9 MB, free: 10.05 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001429/0.005997, allocations: 75.86 kB / 248.9 MB, free: 9.977 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.238e-05/0.00606, allocations: 39.88 kB / 249 MB, free: 9.938 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.087e-05/0.00613, allocations: 67.81 kB / 249 MB, free: 9.871 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002934/0.006424, allocations: 219.3 kB / 249.3 MB, free: 9.656 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.157e-05/0.006435, allocations: 7.938 kB / 249.3 MB, free: 9.648 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.52e-07/0.006436, allocations: 0 / 249.3 MB, free: 9.648 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.628e-06/0.006446, allocations: 0 / 249.3 MB, free: 9.648 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: 43 * Number of variables: 43 Notification: Performance of Generate backend data structure: time 0.0007272/0.007173, allocations: 0.5281 MB / 249.8 MB, free: 9.09 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3e-05/0.007203, allocations: 12.02 kB / 249.8 MB, free: 9.078 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001635/0.007366, allocations: 114 kB / 249.9 MB, free: 8.949 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.007609, allocations: 195.4 kB / 250.1 MB, free: 8.727 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.007632, allocations: 12.38 kB / 250.1 MB, free: 8.715 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.809e-05/0.00767, allocations: 24.38 kB / 250.1 MB, free: 8.691 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002397/0.007909, allocations: 171.5 kB / 250.3 MB, free: 8.512 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.007924, allocations: 8.109 kB / 250.3 MB, free: 8.504 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.007941, allocations: 8.375 kB / 250.3 MB, free: 8.496 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.298e-06/0.00795, allocations: 7.938 kB / 250.3 MB, free: 8.488 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001139/0.008064, allocations: 59.95 kB / 250.4 MB, free: 8.43 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005379/0.008602, allocations: 412 kB / 250.8 MB, free: 8.008 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002156/0.008818, allocations: 114.4 kB / 250.9 MB, free: 7.887 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.087e-05/0.008879, allocations: 43.28 kB / 250.9 MB, free: 7.844 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.008898, allocations: 4 kB / 250.9 MB, free: 7.84 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001635/0.009061, allocations: 112.9 kB / 251.1 MB, free: 7.719 MB / 250.7 MB Notification: Performance of pre-optimization done (n=25): time 1.703e-06/0.009063, allocations: 0 / 251.1 MB, free: 7.719 MB / 250.7 MB Notification: Performance of matching and sorting (n=27): time 0.001029/0.01009, allocations: 0.6444 MB / 251.7 MB, free: 7.023 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.8e-05/0.01012, allocations: 55.39 kB / 251.8 MB, free: 6.957 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001382/0.01026, allocations: 192.6 kB / 251.9 MB, free: 6.754 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/0.01028, allocations: 33.7 kB / 252 MB, free: 6.715 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.789e-05/0.01034, allocations: 132.4 kB / 252.1 MB, free: 6.582 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.069e-05/0.0104, allocations: 95.19 kB / 252.2 MB, free: 6.488 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.981e-05/0.01048, allocations: 57.67 kB / 252.3 MB, free: 6.426 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 9.435e-05/0.01057, allocations: 338.8 kB / 252.6 MB, free: 6.086 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.278e-05/0.01065, allocations: 65.44 kB / 252.7 MB, free: 6.016 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.333e-05/0.01074, allocations: 105 kB / 252.8 MB, free: 5.895 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001525/0.01089, allocations: 154 kB / 252.9 MB, free: 5.727 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.0109, allocations: 0 / 252.9 MB, free: 5.727 MB / 250.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0003036/0.0112, allocations: 255.5 kB / 253.2 MB, free: 5.457 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.07e-05/0.01123, allocations: 29.7 kB / 253.2 MB, free: 5.422 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.749e-06/0.01123, allocations: 4 kB / 253.2 MB, free: 5.418 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001194/0.01135, allocations: 44.88 kB / 253.2 MB, free: 5.371 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.0115, allocations: 55.91 kB / 253.3 MB, free: 5.316 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001031/0.01253, allocations: 1.464 MB / 254.7 MB, free: 3.77 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001324/0.01267, allocations: 31.95 kB / 254.8 MB, free: 3.738 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.647e-05/0.01268, allocations: 8 kB / 254.8 MB, free: 3.73 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: 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 (31): * Single equations (assignments): 29 * 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 9.576e-05/0.01278, allocations: 128.6 kB / 254.9 MB, free: 3.594 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.41e-05/0.01281, allocations: 23.92 kB / 254.9 MB, free: 3.57 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.248e-05/0.01286, allocations: 34.64 kB / 255 MB, free: 3.535 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.01286, allocations: 8.031 kB / 255 MB, free: 3.527 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.01286, allocations: 0 / 255 MB, free: 3.527 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.57e-06/0.01287, allocations: 3.984 kB / 255 MB, free: 3.523 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004882/0.01336, allocations: 376 kB / 255.3 MB, free: 3.129 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.01336, allocations: 4 kB / 255.4 MB, free: 3.125 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001545/0.01351, allocations: 47.91 kB / 255.4 MB, free: 3.078 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.574e-05/0.01357, allocations: 23.84 kB / 255.4 MB, free: 3.055 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.341e-05/0.01366, allocations: 40.77 kB / 255.5 MB, free: 3.012 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.011e-05/0.01368, allocations: 11.98 kB / 255.5 MB, free: 3 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008476/0.01453, allocations: 1.312 MB / 256.8 MB, free: 1.602 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.01453, allocations: 0 / 256.8 MB, free: 1.602 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003342/0.01487, allocations: 317.6 kB / 257.1 MB, free: 1.27 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.721e-05/0.01489, allocations: 8 kB / 257.1 MB, free: 1.262 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001264/0.01502, allocations: 19.92 kB / 257.1 MB, free: 1.242 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001192/0.01514, allocations: 75.89 kB / 257.2 MB, free: 1.168 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.406e-05/0.01515, allocations: 11.98 kB / 257.2 MB, free: 1.156 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.267e-05/0.01521, allocations: 61.19 kB / 257.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01521, allocations: 0 / 257.3 MB, free: 1.094 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000317/0.01553, allocations: 76 kB / 257.3 MB, free: 1.02 MB / 250.7 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 (21): * Single equations (assignments): 18 * 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.001184/0.01672, allocations: 492 kB / 257.8 MB, free: 0.7656 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003916/0.01711, allocations: 348.3 kB / 258.2 MB, free: 400 kB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.478e-06/0.01712, allocations: 4 kB / 258.2 MB, free: 396 kB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002129/0.01733, allocations: 227.2 kB / 258.4 MB, free: 152 kB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003959/0.01773, allocations: 408.4 kB / 258.8 MB, free: 15.68 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002768/0.02049, allocations: 0.4884 MB / 259.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.735e-05/0.02055, allocations: 84.33 kB / 259.4 MB, free: 15.06 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001005/0.02065, allocations: 25.94 kB / 259.4 MB, free: 15.03 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.0208, allocations: 95.34 kB / 259.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.0208, allocations: 0 / 259.5 MB, free: 14.94 MB / 266.7 MB Notification: Performance of Templates: time 0.006738/0.02753, allocations: 4.981 MB / 264.5 MB, free: 10.03 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5803416203707457]