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.00128/0.00128, allocations: 114.9 kB / 17.74 MB, free: 5.336 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.001061/0.001061, allocations: 188.5 kB / 18.67 MB, free: 4.41 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.342/1.342, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00108/0.00108, allocations: 47.92 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3256/0.3267, allocations: 49.43 MB / 401.4 MB, free: 8.715 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.005446/0.3322, allocations: 2.167 MB / 403.6 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00195/0.3342, allocations: 0.7012 MB / 404.3 MB, free: 5.961 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001981/0.3344, allocations: 4 kB / 404.3 MB, free: 5.957 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002324/0.3347, allocations: 31.66 kB / 404.3 MB, free: 5.926 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002645/0.3349, allocations: 67.47 kB / 404.4 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004879/0.3354, allocations: 107.7 kB / 404.5 MB, free: 5.754 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004351/0.3359, allocations: 283.4 kB / 404.7 MB, free: 5.477 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001947/0.3361, allocations: 48.38 kB / 404.8 MB, free: 5.43 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002637/0.3364, allocations: 131.5 kB / 404.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002536/0.3366, allocations: 123.5 kB / 405 MB, free: 5.18 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.156e-05/0.3367, allocations: 20 kB / 405.1 MB, free: 5.16 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002014/0.3369, allocations: 71.95 kB / 405.1 MB, free: 5.09 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.3371, allocations: 47.83 kB / 405.2 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001954/0.3373, allocations: 115.4 kB / 405.3 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004975/0.3378, allocations: 280.2 kB / 405.6 MB, free: 4.66 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.233e-06/0.3378, allocations: 8 kB / 405.6 MB, free: 4.652 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.3378, allocations: 0 / 405.6 MB, free: 4.652 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.276e-06/0.3378, allocations: 0 / 405.6 MB, free: 4.652 MB / 318.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.001434/0.3393, allocations: 0.5549 MB / 406.1 MB, free: 4.043 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.234e-05/0.3393, allocations: 15.89 kB / 406.1 MB, free: 4.027 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001024/0.3394, allocations: 20.75 kB / 406.2 MB, free: 4.008 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004503/0.3399, allocations: 243.8 kB / 406.4 MB, free: 3.73 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.34, allocations: 20.31 kB / 406.4 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.889e-05/0.34, allocations: 20.36 kB / 406.4 MB, free: 3.691 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000684/0.3407, allocations: 239.4 kB / 406.7 MB, free: 3.445 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.277e-05/0.3408, allocations: 4 kB / 406.7 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.698e-05/0.3408, allocations: 8 kB / 406.7 MB, free: 3.434 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.087e-06/0.3408, allocations: 4 kB / 406.7 MB, free: 3.43 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007621/0.3416, allocations: 191.9 kB / 406.9 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00151/0.3431, allocations: 0.668 MB / 407.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008448/0.344, allocations: 210.3 kB / 407.7 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003523/0.3444, allocations: 100.8 kB / 407.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.606e-05/0.3444, allocations: 0 / 407.8 MB, free: 2.203 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005268/0.3449, allocations: 175.2 kB / 408 MB, free: 2.023 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.174e-06/0.3449, allocations: 0 / 408 MB, free: 2.023 MB / 318.1 MB Notification: Performance of matching and sorting (n=26): time 0.003718/0.3487, allocations: 1.139 MB / 409.2 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.972e-05/0.3488, allocations: 59.34 kB / 409.2 MB, free: 0.6992 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002922/0.3491, allocations: 191.9 kB / 409.4 MB, free: 0.5 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.821e-05/0.3491, allocations: 37.69 kB / 409.4 MB, free: 468 kB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001239/0.3493, allocations: 136.3 kB / 409.6 MB, free: 328 kB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.3494, allocations: 90.73 kB / 409.7 MB, free: 236 kB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001727/0.3496, allocations: 61.69 kB / 409.7 MB, free: 168 kB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0002032/0.3498, allocations: 334.8 kB / 410 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004442/0.3503, allocations: 108 kB / 410.2 MB, free: 15.72 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005004/0.3508, allocations: 152.9 kB / 410.3 MB, free: 15.56 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008239/0.3516, allocations: 238.7 kB / 410.5 MB, free: 15.31 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.3516, allocations: 4 kB / 410.5 MB, free: 15.3 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.001405/0.3531, allocations: 401.8 kB / 410.9 MB, free: 14.9 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.499e-05/0.3531, allocations: 33.7 kB / 411 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.3532, allocations: 3.938 kB / 411 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003526/0.3535, allocations: 76.84 kB / 411 MB, free: 14.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003508/0.3539, allocations: 51.97 kB / 411.1 MB, free: 14.73 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007818/0.3547, allocations: 0.6071 MB / 411.7 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004148/0.3551, allocations: 32 kB / 411.7 MB, free: 14.06 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-05/0.3552, allocations: 15.98 kB / 411.7 MB, free: 14.04 MB / 334.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.0002468/0.3554, allocations: 145.8 kB / 411.9 MB, free: 13.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.764e-05/0.3555, allocations: 23.66 kB / 411.9 MB, free: 13.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001047/0.3556, allocations: 29.86 kB / 411.9 MB, free: 13.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.706e-06/0.3557, allocations: 4 kB / 411.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.686e-06/0.3557, allocations: 0 / 411.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.3557, allocations: 0 / 411.9 MB, free: 13.83 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001812/0.3575, allocations: 0.679 MB / 412.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.3575, allocations: 0 / 412.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003538/0.3579, allocations: 39.97 kB / 412.7 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002585/0.3582, allocations: 60.83 kB / 412.7 MB, free: 12.99 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.759e-05/0.3582, allocations: 15.98 kB / 412.7 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007076/0.359, allocations: 0.6108 MB / 413.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.359, allocations: 0 / 413.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001526/0.3605, allocations: 0.5123 MB / 413.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.3607, allocations: 116.9 kB / 414 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.441e-05/0.3608, allocations: 4 kB / 414 MB, free: 11.67 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004099/0.3612, allocations: 31.95 kB / 414 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001387/0.3613, allocations: 31.95 kB / 414 MB, free: 11.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.859e-05/0.3614, allocations: 8 kB / 414.1 MB, free: 11.6 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001789/0.3616, allocations: 139.5 kB / 414.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.81e-07/0.3616, allocations: 0 / 414.2 MB, free: 11.46 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006178/0.3622, allocations: 76 kB / 414.3 MB, free: 11.39 MB / 334.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.0003079/0.3625, allocations: 123.3 kB / 414.4 MB, free: 11.25 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001167/0.3637, allocations: 324.7 kB / 414.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.3637, allocations: 0 / 414.7 MB, free: 10.93 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005383/0.3643, allocations: 151.8 kB / 414.8 MB, free: 10.78 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006522/0.365, allocations: 39.17 kB / 414.9 MB, free: 10.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002278/0.3673, allocations: 0.6959 MB / 415.6 MB, free: 10.02 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000536/0.3678, allocations: 0.7363 MB / 416.3 MB, free: 9.25 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001116/0.3679, allocations: 23.44 kB / 416.3 MB, free: 9.23 MB / 334.1 MB Notification: Performance of SimCode: time 8.42e-07/0.368, allocations: 4 kB / 416.3 MB, free: 9.227 MB / 334.1 MB Notification: Performance of Templates: time 0.01005/0.378, allocations: 3.853 MB / 420.2 MB, free: 5.379 MB / 334.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/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