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.00101/0.00101, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.001272/0.001272, allocations: 168.3 kB / 24.91 MB, free: 8.695 MB / 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 0.9765/0.9765, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.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.903e-06/1.903e-06, allocations: 0 / 273.4 MB, free: 1.336 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.619e-05/2.809e-05, allocations: 2.312 kB / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004215/0.004243, allocations: 2.296 MB / 275.7 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001798/0.006041, allocations: 0.8604 MB / 276.6 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000151/0.006192, allocations: 7.938 kB / 276.6 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002908/0.006482, allocations: 51.58 kB / 276.6 MB, free: 14.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003874/0.00687, allocations: 111.1 kB / 276.8 MB, free: 13.98 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003256/0.007196, allocations: 91.75 kB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004305/0.007626, allocations: 303.2 kB / 277.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001465/0.007773, allocations: 49.19 kB / 277.2 MB, free: 13.55 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004359/0.008208, allocations: 183.6 kB / 277.4 MB, free: 13.37 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002615/0.00847, allocations: 107.8 kB / 277.5 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.482e-05/0.008525, allocations: 20 kB / 277.5 MB, free: 13.25 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002032/0.008728, allocations: 83.89 kB / 277.6 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 9.353e-05/0.008822, allocations: 55.77 kB / 277.6 MB, free: 13.11 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.008927, allocations: 83.8 kB / 277.7 MB, free: 13.03 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004284/0.009355, allocations: 251 kB / 278 MB, free: 12.78 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.24e-06/0.009361, allocations: 4 kB / 278 MB, free: 12.78 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.009362, allocations: 0 / 278 MB, free: 12.78 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.623e-06/0.009369, allocations: 0 / 278 MB, free: 12.78 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.0008604/0.01023, allocations: 497.1 kB / 278.4 MB, free: 12.26 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.027e-05/0.01027, allocations: 8.031 kB / 278.5 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001975/0.01047, allocations: 36.91 kB / 278.5 MB, free: 12.22 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003259/0.01079, allocations: 191.7 kB / 278.7 MB, free: 12 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.01083, allocations: 16.38 kB / 278.7 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.63e-05/0.01087, allocations: 20.38 kB / 278.7 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003244/0.0112, allocations: 183.6 kB / 278.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.785e-05/0.01121, allocations: 192 / 278.9 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.222e-05/0.01124, allocations: 12.38 kB / 278.9 MB, free: 11.76 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.061e-05/0.01125, allocations: 11.94 kB / 278.9 MB, free: 11.75 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001597/0.01141, allocations: 51.95 kB / 279 MB, free: 11.7 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007652/0.01217, allocations: 423.8 kB / 279.4 MB, free: 11.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002833/0.01246, allocations: 106.5 kB / 279.5 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.88e-05/0.01251, allocations: 36.84 kB / 279.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.769e-05/0.01253, allocations: 4 kB / 279.5 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001523/0.01268, allocations: 109.7 kB / 279.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 1.733e-06/0.01269, allocations: 4 kB / 279.6 MB, free: 10.99 MB / 266.7 MB Notification: Performance of matching and sorting (n=27): time 0.0009037/0.01359, allocations: 0.6267 MB / 280.3 MB, free: 10.31 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.986e-05/0.01362, allocations: 55.34 kB / 280.3 MB, free: 10.24 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.01375, allocations: 212.4 kB / 280.5 MB, free: 10.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.829e-05/0.01376, allocations: 33.7 kB / 280.6 MB, free: 9.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.9e-05/0.01381, allocations: 116.5 kB / 280.7 MB, free: 9.863 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.243e-05/0.01387, allocations: 99.19 kB / 280.8 MB, free: 9.766 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.192e-05/0.01393, allocations: 53.67 kB / 280.8 MB, free: 9.707 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.247e-05/0.01401, allocations: 342.8 kB / 281.2 MB, free: 9.363 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.284e-05/0.01407, allocations: 65.44 kB / 281.2 MB, free: 9.293 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.353e-05/0.01415, allocations: 97.08 kB / 281.3 MB, free: 9.18 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001216/0.01427, allocations: 142.1 kB / 281.4 MB, free: 9.023 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.373e-06/0.01427, allocations: 4 kB / 281.5 MB, free: 9.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=38) (initialization): time 0.0002585/0.01453, allocations: 251.5 kB / 281.7 MB, free: 8.754 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.172e-05/0.01456, allocations: 37.69 kB / 281.7 MB, free: 8.711 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.753e-06/0.01457, allocations: 4 kB / 281.7 MB, free: 8.707 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001088/0.01467, allocations: 32.84 kB / 281.8 MB, free: 8.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001063/0.01478, allocations: 51.91 kB / 281.8 MB, free: 8.621 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009468/0.01573, allocations: 1.454 MB / 283.3 MB, free: 7.082 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001123/0.01584, allocations: 27.97 kB / 283.3 MB, free: 7.055 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.607e-05/0.01586, allocations: 11.98 kB / 283.3 MB, free: 7.043 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 8.913e-05/0.01595, allocations: 132.6 kB / 283.4 MB, free: 6.902 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.653e-05/0.01597, allocations: 27.95 kB / 283.5 MB, free: 6.875 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.293e-05/0.016, allocations: 30.64 kB / 283.5 MB, free: 6.844 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.01601, allocations: 4 kB / 283.5 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.455e-06/0.01601, allocations: 0 / 283.5 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.01601, allocations: 0 / 283.5 MB, free: 6.84 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004063/0.01642, allocations: 384.2 kB / 283.9 MB, free: 6.438 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.01642, allocations: 0 / 283.9 MB, free: 6.438 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001054/0.01653, allocations: 35.92 kB / 283.9 MB, free: 6.402 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.881e-05/0.01661, allocations: 48.81 kB / 284 MB, free: 6.352 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.335e-05/0.01662, allocations: 8 kB / 284 MB, free: 6.344 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006856/0.01731, allocations: 1.304 MB / 285.3 MB, free: 4.953 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.01731, allocations: 0 / 285.3 MB, free: 4.953 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002783/0.01758, allocations: 321.4 kB / 285.6 MB, free: 4.621 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.903e-05/0.01763, allocations: 27.84 kB / 285.6 MB, free: 4.594 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.251e-05/0.01766, allocations: 4 kB / 285.6 MB, free: 4.59 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.135e-05/0.01775, allocations: 23.92 kB / 285.6 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.01785, allocations: 75.8 kB / 285.7 MB, free: 4.492 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.057e-05/0.01786, allocations: 7.984 kB / 285.7 MB, free: 4.484 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.463e-05/0.01792, allocations: 61.2 kB / 285.8 MB, free: 4.422 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01792, allocations: 0 / 285.8 MB, free: 4.422 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002437/0.01816, allocations: 75.94 kB / 285.9 MB, free: 4.348 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.0009455/0.01911, allocations: 463.5 kB / 286.3 MB, free: 4.09 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003691/0.01948, allocations: 360.2 kB / 286.7 MB, free: 3.703 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.209e-06/0.01948, allocations: 4 kB / 286.7 MB, free: 3.699 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001623/0.01964, allocations: 215.6 kB / 286.9 MB, free: 3.473 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000218/0.01986, allocations: 60.55 kB / 286.9 MB, free: 3.418 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008071/0.02067, allocations: 0.4918 MB / 287.4 MB, free: 2.895 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.191e-05/0.02072, allocations: 88.31 kB / 287.5 MB, free: 2.789 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.856e-05/0.0208, allocations: 29.94 kB / 287.5 MB, free: 2.758 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001136/0.02091, allocations: 95.34 kB / 287.6 MB, free: 2.664 MB / 266.7 MB Notification: Performance of SimCode: time 9.02e-07/0.02091, allocations: 0 / 287.6 MB, free: 2.664 MB / 266.7 MB Notification: Performance of Templates: time 0.1059/0.1269, allocations: 4.853 MB / 292.5 MB, free: 24.9 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 -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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.98756264988333]