Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutch,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001065/0.001065, allocations: 92.25 kB / 16.65 MB, free: 6.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 182.4 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.351/1.351, allocations: 223.3 MB / 241.6 MB, free: 196 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002502/0.0002501, allocations: 19.92 kB / 301.4 MB, free: 6.133 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08864/0.08891, allocations: 50.4 MB / 351.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002349/0.09129, allocations: 1.86 MB / 353.7 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00132/0.09264, allocations: 0.6974 MB / 354.4 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001393/0.0928, allocations: 4 kB / 354.4 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001571/0.09297, allocations: 19.84 kB / 354.4 MB, free: 1.113 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001949/0.09318, allocations: 59.55 kB / 354.5 MB, free: 1.055 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.09352, allocations: 91.83 kB / 354.6 MB, free: 0.9648 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002951/0.09383, allocations: 267.4 kB / 354.8 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.09398, allocations: 44.38 kB / 354.9 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001954/0.09419, allocations: 107.5 kB / 355 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002074/0.0944, allocations: 111.5 kB / 355.1 MB, free: 448 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.492e-05/0.09445, allocations: 12 kB / 355.1 MB, free: 436 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001216/0.09458, allocations: 55.95 kB / 355.1 MB, free: 380 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.276e-05/0.09466, allocations: 43.83 kB / 355.2 MB, free: 336 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001231/0.09479, allocations: 133.1 kB / 355.3 MB, free: 196 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003076/0.0951, allocations: 259.3 kB / 355.6 MB, free: 15.94 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.09512, allocations: 8 kB / 355.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.09513, allocations: 0 / 355.6 MB, free: 15.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.358e-06/0.09514, allocations: 0 / 355.6 MB, free: 15.93 MB / 302.1 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.0009854/0.09613, allocations: 0.5393 MB / 356.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.09618, allocations: 8.031 kB / 356.1 MB, free: 15.33 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.385e-05/0.09626, allocations: 28.66 kB / 356.1 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.09652, allocations: 232 kB / 356.4 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.719e-05/0.09656, allocations: 12.38 kB / 356.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.799e-05/0.09662, allocations: 20.38 kB / 356.4 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005467/0.09718, allocations: 251.5 kB / 356.7 MB, free: 14.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.298e-05/0.09721, allocations: 11.84 kB / 356.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.679e-05/0.09725, allocations: 4 kB / 356.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.18e-05/0.09726, allocations: 4 kB / 356.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000557/0.09783, allocations: 211.8 kB / 356.9 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/0.09897, allocations: 0.6759 MB / 357.6 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006186/0.0996, allocations: 218.3 kB / 357.8 MB, free: 13.57 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002634/0.09988, allocations: 108.8 kB / 357.9 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.518e-05/0.09991, allocations: 4 kB / 357.9 MB, free: 13.45 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004194/0.1003, allocations: 167.6 kB / 358 MB, free: 13.28 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.994e-06/0.1004, allocations: 0 / 358 MB, free: 13.28 MB / 302.1 MB Notification: Performance of matching and sorting (n=26): time 0.002659/0.103, allocations: 1.216 MB / 359.3 MB, free: 11.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.476e-05/0.1031, allocations: 59.41 kB / 359.3 MB, free: 11.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000192/0.1033, allocations: 191.9 kB / 359.5 MB, free: 11.68 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.012e-05/0.1033, allocations: 33.7 kB / 359.5 MB, free: 11.64 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.956e-05/0.1034, allocations: 132.3 kB / 359.7 MB, free: 11.51 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.351e-05/0.1035, allocations: 94.73 kB / 359.8 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.375e-05/0.1036, allocations: 33.7 kB / 359.8 MB, free: 11.38 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.1037, allocations: 330.8 kB / 360.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002998/0.104, allocations: 120.2 kB / 360.2 MB, free: 10.92 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003005/0.1043, allocations: 156.2 kB / 360.4 MB, free: 10.76 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005345/0.1049, allocations: 259.8 kB / 360.6 MB, free: 10.49 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.1049, allocations: 4 kB / 360.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008702/0.1058, allocations: 412.7 kB / 361 MB, free: 10.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.951e-05/0.1058, allocations: 41.69 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.975e-06/0.1058, allocations: 3.938 kB / 361.1 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002395/0.1061, allocations: 68.77 kB / 361.2 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000222/0.1063, allocations: 51.95 kB / 361.2 MB, free: 9.895 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005136/0.1068, allocations: 0.6148 MB / 361.8 MB, free: 9.254 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.1071, allocations: 44 kB / 361.9 MB, free: 9.211 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.429e-05/0.1072, allocations: 8 kB / 361.9 MB, free: 9.203 MB / 302.1 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 0.0001679/0.1073, allocations: 149.8 kB / 362 MB, free: 9.047 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.852e-05/0.1074, allocations: 23.72 kB / 362 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.872e-05/0.1075, allocations: 25.88 kB / 362.1 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.1075, allocations: 0 / 362.1 MB, free: 9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.1075, allocations: 4 kB / 362.1 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.1075, allocations: 3.984 kB / 362.1 MB, free: 8.992 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001122/0.1086, allocations: 0.6945 MB / 362.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.55e-06/0.1086, allocations: 4 kB / 362.8 MB, free: 8.234 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002292/0.1089, allocations: 47.91 kB / 362.8 MB, free: 8.188 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001638/0.1091, allocations: 64.77 kB / 362.9 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.553e-05/0.1091, allocations: 11.98 kB / 362.9 MB, free: 8.109 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004723/0.1096, allocations: 0.6031 MB / 363.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.1096, allocations: 0 / 363.5 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00105/0.1106, allocations: 0.5389 MB / 364 MB, free: 6.922 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.523e-05/0.1107, allocations: 112.8 kB / 364.1 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.292e-05/0.1108, allocations: 8 kB / 364.2 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002639/0.1111, allocations: 47.95 kB / 364.2 MB, free: 6.738 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.506e-05/0.1112, allocations: 27.95 kB / 364.2 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.926e-05/0.1112, allocations: 8 kB / 364.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001155/0.1113, allocations: 147.4 kB / 364.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1113, allocations: 0 / 364.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003327/0.1117, allocations: 68 kB / 364.4 MB, free: 6.492 MB / 302.1 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.0001823/0.1118, allocations: 127.2 kB / 364.6 MB, free: 6.355 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007452/0.1126, allocations: 335.1 kB / 364.9 MB, free: 6.016 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.085e-05/0.1126, allocations: 8.062 kB / 364.9 MB, free: 6.008 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003538/0.113, allocations: 143.9 kB / 365 MB, free: 5.867 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004052/0.1134, allocations: 46.08 kB / 365.1 MB, free: 5.828 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.1148, allocations: 0.8074 MB / 365.9 MB, free: 4.996 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003099/0.1151, allocations: 0.7478 MB / 366.6 MB, free: 4.223 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001164/0.1152, allocations: 29.92 kB / 366.7 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.164e-05/0.1153, allocations: 15.44 kB / 366.7 MB, free: 4.18 MB / 302.1 MB Notification: Performance of SimCode: time 4.01e-07/0.1153, allocations: 4 kB / 366.7 MB, free: 4.176 MB / 302.1 MB Notification: Performance of Templates: time 0.007502/0.1228, allocations: 3.416 MB / 370.1 MB, free: 0.7773 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches