Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001046/0.001046, allocations: 75.77 kB / 22.45 MB, free: 2.094 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.0009944/0.0009944, allocations: 167.7 kB / 25.75 MB, free: 8.926 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.9009/0.9009, allocations: 158.6 MB / 187.5 MB, free: 2.918 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.OneWayClutch,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.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_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.994e-06/1.994e-06, allocations: 0 / 251.1 MB, free: 7.809 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.662e-05/2.861e-05, allocations: 2.312 kB / 251.1 MB, free: 7.805 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.006646/0.006675, allocations: 2.183 MB / 253.3 MB, free: 5.605 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001363/0.008038, allocations: 0.7409 MB / 254 MB, free: 4.855 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.008162, allocations: 7.938 kB / 254 MB, free: 4.848 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001951/0.008357, allocations: 27.72 kB / 254.1 MB, free: 4.82 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001926/0.008549, allocations: 71.36 kB / 254.1 MB, free: 4.75 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00241/0.01096, allocations: 115.7 kB / 254.2 MB, free: 4.637 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002802/0.01124, allocations: 287.3 kB / 254.5 MB, free: 4.355 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001215/0.01136, allocations: 40.48 kB / 254.6 MB, free: 4.316 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002041/0.01156, allocations: 163.6 kB / 254.7 MB, free: 4.156 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001658/0.01173, allocations: 99.75 kB / 254.8 MB, free: 4.059 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.295e-05/0.01176, allocations: 20 kB / 254.8 MB, free: 4.039 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001145/0.01188, allocations: 79.81 kB / 254.9 MB, free: 3.961 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.101e-05/0.01195, allocations: 55.75 kB / 255 MB, free: 3.906 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 8.486e-05/0.01203, allocations: 75.83 kB / 255 MB, free: 3.832 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000295/0.01233, allocations: 219.3 kB / 255.3 MB, free: 3.617 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.505e-06/0.01233, allocations: 7.938 kB / 255.3 MB, free: 3.609 MB / 234.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.01233, allocations: 0 / 255.3 MB, free: 3.609 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.288e-06/0.01234, allocations: 4 kB / 255.3 MB, free: 3.605 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0007454/0.01308, allocations: 0.5675 MB / 255.8 MB, free: 2.996 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.605e-05/0.01312, allocations: 15.98 kB / 255.8 MB, free: 2.98 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.452e-05/0.0132, allocations: 44.78 kB / 255.9 MB, free: 2.938 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002241/0.01343, allocations: 180.2 kB / 256.1 MB, free: 2.734 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.391e-05/0.01345, allocations: 12.38 kB / 256.1 MB, free: 2.723 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.042e-05/0.01349, allocations: 24.38 kB / 256.1 MB, free: 2.699 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003435/0.01383, allocations: 214.1 kB / 256.3 MB, free: 2.473 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.303e-05/0.01385, allocations: 192 / 256.3 MB, free: 2.473 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.96e-05/0.01387, allocations: 8.375 kB / 256.3 MB, free: 2.465 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.08e-05/0.01388, allocations: 7.938 kB / 256.3 MB, free: 2.457 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001927/0.01407, allocations: 95.91 kB / 256.4 MB, free: 2.363 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007332/0.0148, allocations: 0.6308 MB / 257.1 MB, free: 1.691 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002912/0.01509, allocations: 138.9 kB / 257.2 MB, free: 1.543 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.473e-05/0.01519, allocations: 59.66 kB / 257.2 MB, free: 1.48 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.01521, allocations: 4 kB / 257.3 MB, free: 1.477 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001817/0.01539, allocations: 129.3 kB / 257.4 MB, free: 1.336 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.01539, allocations: 0 / 257.4 MB, free: 1.336 MB / 234.7 MB Notification: Performance of matching and sorting (n=26): time 0.001211/0.0166, allocations: 0.7228 MB / 258.1 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.813e-05/0.01663, allocations: 55.41 kB / 258.2 MB, free: 492 kB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.01678, allocations: 246.6 kB / 258.4 MB, free: 228 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.072e-05/0.01681, allocations: 29.7 kB / 258.4 MB, free: 192 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.302e-05/0.0169, allocations: 195.3 kB / 258.6 MB, free: 15.99 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.962e-05/0.01696, allocations: 91.23 kB / 258.7 MB, free: 15.9 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.734e-05/0.01705, allocations: 67.34 kB / 258.8 MB, free: 15.82 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.01716, allocations: 0.5001 MB / 259.3 MB, free: 15.31 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.01728, allocations: 86 kB / 259.4 MB, free: 15.22 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001366/0.01742, allocations: 133.3 kB / 259.5 MB, free: 15.07 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002104/0.01763, allocations: 183.1 kB / 259.7 MB, free: 14.87 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.01763, allocations: 0 / 259.7 MB, free: 14.87 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000474/0.0181, allocations: 352.3 kB / 260 MB, free: 14.5 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.968e-05/0.01813, allocations: 37.69 kB / 260 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.939e-06/0.01814, allocations: 4 kB / 260 MB, free: 14.46 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001728/0.01831, allocations: 55.64 kB / 260.1 MB, free: 14.4 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001301/0.01844, allocations: 55.91 kB / 260.2 MB, free: 14.34 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000334/0.01878, allocations: 0.8429 MB / 261 MB, free: 13.47 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000106/0.01888, allocations: 32.06 kB / 261 MB, free: 13.44 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.492e-05/0.0189, allocations: 8 kB / 261 MB, free: 13.43 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 (32): * Single equations (assignments): 30 * 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 8.567e-05/0.01898, allocations: 172.5 kB / 261.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.887e-05/0.01901, allocations: 31.8 kB / 261.2 MB, free: 13.22 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.825e-05/0.01905, allocations: 29.95 kB / 261.3 MB, free: 13.19 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.01905, allocations: 4 kB / 261.3 MB, free: 13.18 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.646e-06/0.01906, allocations: 0 / 261.3 MB, free: 13.18 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.01906, allocations: 0 / 261.3 MB, free: 13.18 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000511/0.01957, allocations: 0.5597 MB / 261.8 MB, free: 12.58 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.894e-06/0.01957, allocations: 0 / 261.8 MB, free: 12.58 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.01968, allocations: 35.92 kB / 261.9 MB, free: 12.54 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.377e-05/0.01977, allocations: 63.62 kB / 261.9 MB, free: 12.48 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.569e-05/0.01979, allocations: 11.94 kB / 261.9 MB, free: 12.46 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002675/0.02005, allocations: 0.8507 MB / 262.8 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.02005, allocations: 0 / 262.8 MB, free: 11.58 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003653/0.02042, allocations: 440.8 kB / 263.2 MB, free: 11.12 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.688e-05/0.02048, allocations: 39.83 kB / 263.3 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.536e-05/0.0205, allocations: 7.938 kB / 263.3 MB, free: 11.08 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.358e-05/0.0206, allocations: 19.98 kB / 263.3 MB, free: 11.06 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.651e-05/0.02066, allocations: 32.03 kB / 263.3 MB, free: 11.03 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.329e-05/0.02067, allocations: 15.97 kB / 263.3 MB, free: 11.01 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.8e-05/0.02074, allocations: 171.4 kB / 263.5 MB, free: 10.84 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02074, allocations: 0 / 263.5 MB, free: 10.84 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002032/0.02095, allocations: 75.92 kB / 263.6 MB, free: 10.77 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 (20): * Single equations (assignments): 17 * 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.0001306/0.02108, allocations: 123.2 kB / 263.7 MB, free: 10.64 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003465/0.02142, allocations: 268.5 kB / 264 MB, free: 10.36 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.02142, allocations: 0 / 264 MB, free: 10.36 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001333/0.02156, allocations: 103.5 kB / 264.1 MB, free: 10.25 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002494/0.02181, allocations: 59.78 kB / 264.1 MB, free: 10.19 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008773/0.02268, allocations: 0.5493 MB / 264.7 MB, free: 9.609 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.639e-05/0.02273, allocations: 88.25 kB / 264.8 MB, free: 9.504 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.098e-05/0.02279, allocations: 21.94 kB / 264.8 MB, free: 9.48 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.256e-05/0.02283, allocations: 24.5 kB / 264.8 MB, free: 9.457 MB / 250.7 MB Notification: Performance of SimCode: time 6.71e-07/0.02284, allocations: 0 / 264.8 MB, free: 9.457 MB / 250.7 MB Notification: Performance of Templates: time 0.004917/0.02775, allocations: 3.629 MB / 268.4 MB, free: 5.855 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.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.7982228538021445]