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.002012/0.002012, allocations: 91.61 kB / 20.96 MB, free: 3.465 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.00208/0.00208, allocations: 165.3 kB / 24.27 MB, free: 156 kB / 18.57 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.579/1.579, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.503e-06/1.503e-06, allocations: 0 / 272.3 MB, free: 1.863 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.706e-05/2.856e-05, allocations: 2.312 kB / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004354/0.004382, allocations: 2.282 MB / 274.6 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.00618, allocations: 0.8412 MB / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000172/0.006352, allocations: 4 kB / 275.4 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002924/0.006644, allocations: 55.5 kB / 275.5 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003997/0.007044, allocations: 119.1 kB / 275.6 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002918/0.007336, allocations: 79.83 kB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000474/0.00781, allocations: 303.3 kB / 276 MB, free: 14.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000145/0.007955, allocations: 36.5 kB / 276 MB, free: 14.13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004232/0.008378, allocations: 191.6 kB / 276.2 MB, free: 13.94 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002413/0.008619, allocations: 107.7 kB / 276.3 MB, free: 13.84 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.735e-05/0.008677, allocations: 20 kB / 276.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001963/0.008873, allocations: 79.92 kB / 276.4 MB, free: 13.74 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002161/0.009089, allocations: 63.8 kB / 276.5 MB, free: 13.68 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001359/0.009225, allocations: 79.83 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005435/0.009769, allocations: 326.9 kB / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.936e-06/0.009772, allocations: 0 / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.009773, allocations: 0 / 276.9 MB, free: 13.28 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.736e-06/0.009781, allocations: 0 / 276.9 MB, free: 13.28 MB / 266.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.001191/0.01097, allocations: 0.6137 MB / 277.5 MB, free: 12.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.383e-05/0.01101, allocations: 12.03 kB / 277.5 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002201/0.01123, allocations: 56.73 kB / 277.5 MB, free: 12.55 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003819/0.01161, allocations: 201.8 kB / 277.7 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.01164, allocations: 12.38 kB / 277.7 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.714e-05/0.0117, allocations: 20.38 kB / 277.8 MB, free: 12.3 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004979/0.01219, allocations: 229.4 kB / 278 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/0.01221, allocations: 192 / 278 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.01224, allocations: 8.375 kB / 278 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.144e-05/0.01225, allocations: 7.938 kB / 278 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004689/0.01272, allocations: 167.8 kB / 278.2 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001141/0.01386, allocations: 0.6505 MB / 278.8 MB, free: 11.19 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005717/0.01444, allocations: 189.8 kB / 279 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002357/0.01467, allocations: 87.66 kB / 279.1 MB, free: 10.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.0147, allocations: 7.938 kB / 279.1 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003807/0.01508, allocations: 157.6 kB / 279.3 MB, free: 10.73 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.783e-06/0.01509, allocations: 4 kB / 279.3 MB, free: 10.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.002418/0.0175, allocations: 0.9209 MB / 280.2 MB, free: 9.742 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.457e-05/0.01756, allocations: 55.41 kB / 280.2 MB, free: 9.676 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003104/0.01787, allocations: 269.6 kB / 280.5 MB, free: 9.395 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.567e-05/0.01791, allocations: 37.7 kB / 280.5 MB, free: 9.352 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001492/0.01805, allocations: 191.2 kB / 280.7 MB, free: 9.16 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.01816, allocations: 99.2 kB / 280.8 MB, free: 9.062 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.01829, allocations: 71.36 kB / 280.9 MB, free: 8.984 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002904/0.01858, allocations: 0.5118 MB / 281.4 MB, free: 8.461 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002745/0.01886, allocations: 121.4 kB / 281.5 MB, free: 8.336 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.01917, allocations: 176.4 kB / 281.7 MB, free: 8.141 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004969/0.01967, allocations: 245.4 kB / 281.9 MB, free: 7.879 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.01967, allocations: 0 / 281.9 MB, free: 7.879 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0008808/0.02055, allocations: 414.2 kB / 282.3 MB, free: 7.453 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.792e-05/0.0206, allocations: 41.62 kB / 282.4 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.02061, allocations: 0 / 282.4 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002266/0.02083, allocations: 55.67 kB / 282.4 MB, free: 7.348 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002171/0.02105, allocations: 55.97 kB / 282.5 MB, free: 7.293 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002616/0.02367, allocations: 2.278 MB / 284.8 MB, free: 4.895 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002324/0.0239, allocations: 23.98 kB / 284.8 MB, free: 4.871 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.116e-05/0.02393, allocations: 11.98 kB / 284.8 MB, free: 4.859 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: 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 0.0001903/0.02412, allocations: 192.5 kB / 285 MB, free: 4.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.798e-05/0.02419, allocations: 31.89 kB / 285 MB, free: 4.629 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.621e-05/0.02427, allocations: 34.64 kB / 285 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.295e-06/0.02427, allocations: 0 / 285 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.02427, allocations: 0 / 285 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.369e-06/0.02428, allocations: 0 / 285 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001248/0.02552, allocations: 0.6655 MB / 285.7 MB, free: 3.879 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.382e-06/0.02553, allocations: 3.938 kB / 285.7 MB, free: 3.875 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002248/0.02576, allocations: 39.97 kB / 285.8 MB, free: 3.836 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000162/0.02592, allocations: 51.67 kB / 285.8 MB, free: 3.781 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.607e-05/0.02594, allocations: 7.984 kB / 285.8 MB, free: 3.773 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002071/0.02801, allocations: 2.038 MB / 287.9 MB, free: 1.613 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.02802, allocations: 4.031 kB / 287.9 MB, free: 1.609 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001067/0.02908, allocations: 0.5511 MB / 288.4 MB, free: 1.035 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001079/0.02919, allocations: 39.86 kB / 288.4 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.639e-05/0.02924, allocations: 8 kB / 288.5 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002164/0.02945, allocations: 19.98 kB / 288.5 MB, free: 0.9688 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/0.02964, allocations: 71.86 kB / 288.5 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.02967, allocations: 8 kB / 288.6 MB, free: 0.8906 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001894/0.02986, allocations: 193 kB / 288.7 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02986, allocations: 0 / 288.7 MB, free: 0.7031 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004247/0.03028, allocations: 75.98 kB / 288.8 MB, free: 0.6289 MB / 266.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.002497/0.03278, allocations: 397.5 kB / 289.2 MB, free: 396 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001044/0.03382, allocations: 0.5109 MB / 289.7 MB, free: 15.84 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.03382, allocations: 0 / 289.7 MB, free: 15.84 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005392/0.03436, allocations: 333.7 kB / 290 MB, free: 15.49 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004682/0.03483, allocations: 63.95 kB / 290.1 MB, free: 15.43 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00132/0.03615, allocations: 0.5736 MB / 290.7 MB, free: 14.82 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002991/0.03645, allocations: 138.1 kB / 290.8 MB, free: 14.67 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0001286/0.03658, allocations: 33.92 kB / 290.8 MB, free: 14.64 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.405e-05/0.03666, allocations: 28.5 kB / 290.9 MB, free: 14.61 MB / 282.7 MB Notification: Performance of SimCode: time 6.71e-07/0.03666, allocations: 0 / 290.9 MB, free: 14.61 MB / 282.7 MB Notification: Performance of Templates: time 0.01087/0.04753, allocations: 4.574 MB / 295.4 MB, free: 10.08 MB / 282.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.70530256209895]