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.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 3.2.3+maint.om/package.mo", uses=false) 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.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_3.2.3_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_3.2.3_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.001045/0.001045, allocations: 107.2 kB / 18.34 MB, free: 4.809 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.001058/0.001058, allocations: 188.1 kB / 19.28 MB, free: 3.879 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.454/1.454, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001147/0.001147, allocations: 47.94 kB / 282.1 MB, free: 2.48 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07771/0.07887, allocations: 46.62 MB / 328.7 MB, free: 3.793 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.003125/0.08202, allocations: 2.174 MB / 330.9 MB, free: 1.598 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.08318, allocations: 0.741 MB / 331.6 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.812e-05/0.08328, allocations: 0 / 331.6 MB, free: 0.8477 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001558/0.08346, allocations: 27.67 kB / 331.6 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001478/0.08361, allocations: 71.47 kB / 331.7 MB, free: 0.75 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003141/0.08394, allocations: 111.7 kB / 331.8 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002931/0.08424, allocations: 275.4 kB / 332.1 MB, free: 380 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001293/0.08438, allocations: 60.34 kB / 332.2 MB, free: 320 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001601/0.08455, allocations: 115.5 kB / 332.3 MB, free: 204 kB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.08473, allocations: 135.5 kB / 332.4 MB, free: 68 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.372e-05/0.08478, allocations: 20 kB / 332.4 MB, free: 48 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001428/0.08493, allocations: 68 kB / 332.5 MB, free: 15.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.753e-05/0.08501, allocations: 51.78 kB / 332.5 MB, free: 15.93 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000106/0.08513, allocations: 115.4 kB / 332.6 MB, free: 15.82 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002903/0.08542, allocations: 279 kB / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.675e-06/0.08543, allocations: 0 / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.41e-07/0.08544, allocations: 0 / 332.9 MB, free: 15.54 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.365e-06/0.08545, allocations: 4 kB / 332.9 MB, free: 15.54 MB / 286.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.0009236/0.08638, allocations: 0.5665 MB / 333.5 MB, free: 14.92 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.315e-05/0.08642, allocations: 11.89 kB / 333.5 MB, free: 14.91 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.752e-05/0.08649, allocations: 24.66 kB / 333.5 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002643/0.08676, allocations: 240 kB / 333.8 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.08679, allocations: 12.38 kB / 333.8 MB, free: 14.6 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.747e-05/0.08684, allocations: 20.38 kB / 333.8 MB, free: 14.58 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004819/0.08733, allocations: 239.5 kB / 334 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.392e-05/0.08735, allocations: 0 / 334 MB, free: 14.33 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.436e-05/0.08738, allocations: 8 kB / 334 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.0874, allocations: 4 kB / 334 MB, free: 14.32 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004738/0.08787, allocations: 191.8 kB / 334.2 MB, free: 14.13 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009841/0.08887, allocations: 0.6758 MB / 334.9 MB, free: 13.4 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005279/0.08941, allocations: 202.3 kB / 335.1 MB, free: 13.2 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002237/0.08964, allocations: 104.8 kB / 335.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.436e-05/0.08968, allocations: 3.984 kB / 335.2 MB, free: 13.09 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003271/0.09001, allocations: 163.5 kB / 335.4 MB, free: 12.91 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.09002, allocations: 0 / 335.4 MB, free: 12.91 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.002333/0.09236, allocations: 1.152 MB / 336.5 MB, free: 11.65 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.937e-05/0.09242, allocations: 55.41 kB / 336.6 MB, free: 11.58 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001625/0.09259, allocations: 191.1 kB / 336.8 MB, free: 11.39 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.09262, allocations: 33.7 kB / 336.8 MB, free: 11.35 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.814e-05/0.0927, allocations: 132.3 kB / 336.9 MB, free: 11.21 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.32e-05/0.09277, allocations: 90.73 kB / 337 MB, free: 11.12 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.09289, allocations: 61.69 kB / 337.1 MB, free: 11.06 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.09301, allocations: 342.8 kB / 337.4 MB, free: 10.71 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002609/0.09328, allocations: 104.2 kB / 337.5 MB, free: 10.61 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.09356, allocations: 152 kB / 337.7 MB, free: 10.45 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004605/0.09403, allocations: 246.7 kB / 337.9 MB, free: 10.19 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.453e-06/0.09404, allocations: 0 / 337.9 MB, free: 10.19 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000837/0.09488, allocations: 413 kB / 338.3 MB, free: 9.773 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.281e-05/0.09493, allocations: 33.7 kB / 338.3 MB, free: 9.734 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.09494, allocations: 7.938 kB / 338.3 MB, free: 9.727 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002334/0.09518, allocations: 68.81 kB / 338.4 MB, free: 9.656 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002075/0.0954, allocations: 51.91 kB / 338.5 MB, free: 9.605 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004885/0.0959, allocations: 0.611 MB / 339.1 MB, free: 8.969 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002455/0.09616, allocations: 28 kB / 339.1 MB, free: 8.941 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.762e-05/0.09619, allocations: 11.98 kB / 339.1 MB, free: 8.93 MB / 286.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.0001318/0.09633, allocations: 146 kB / 339.2 MB, free: 8.777 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.3e-05/0.09637, allocations: 19.72 kB / 339.3 MB, free: 8.758 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.591e-05/0.09644, allocations: 29.86 kB / 339.3 MB, free: 8.727 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.917e-06/0.09645, allocations: 4 kB / 339.3 MB, free: 8.723 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.199e-06/0.09646, allocations: 4.062 kB / 339.3 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.498e-06/0.09647, allocations: 0 / 339.3 MB, free: 8.719 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001079/0.09756, allocations: 0.6712 MB / 340 MB, free: 7.984 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/0.09757, allocations: 0 / 340 MB, free: 7.984 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002046/0.09778, allocations: 43.91 kB / 340 MB, free: 7.941 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001594/0.09795, allocations: 68.89 kB / 340.1 MB, free: 7.871 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.129e-05/0.09798, allocations: 11.92 kB / 340.1 MB, free: 7.859 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004252/0.09842, allocations: 0.6147 MB / 340.7 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.09843, allocations: 0 / 340.7 MB, free: 7.219 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009142/0.09935, allocations: 0.5046 MB / 341.2 MB, free: 6.695 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001057/0.09946, allocations: 113 kB / 341.3 MB, free: 6.566 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.842e-05/0.09951, allocations: 8 kB / 341.3 MB, free: 6.559 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002367/0.09975, allocations: 35.95 kB / 341.4 MB, free: 6.523 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.61e-05/0.09986, allocations: 31.95 kB / 341.4 MB, free: 6.492 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.782e-05/0.09988, allocations: 11.94 kB / 341.4 MB, free: 6.48 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001147/0.1, allocations: 135.2 kB / 341.5 MB, free: 6.348 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1, allocations: 0 / 341.5 MB, free: 6.348 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003237/0.1003, allocations: 72 kB / 341.6 MB, free: 6.277 MB / 286.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.0001953/0.1005, allocations: 123.1 kB / 341.7 MB, free: 6.148 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007367/0.1013, allocations: 328.9 kB / 342.1 MB, free: 5.816 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1013, allocations: 0 / 342.1 MB, free: 5.816 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003576/0.1017, allocations: 147.8 kB / 342.2 MB, free: 5.672 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003859/0.1021, allocations: 44.05 kB / 342.2 MB, free: 5.629 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001237/0.1033, allocations: 0.6484 MB / 342.9 MB, free: 4.957 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/0.1036, allocations: 0.7439 MB / 343.6 MB, free: 4.188 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.008e-05/0.1037, allocations: 21.95 kB / 343.7 MB, free: 4.164 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.208e-05/0.1038, allocations: 19.44 kB / 343.7 MB, free: 4.145 MB / 286.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1038, allocations: 0 / 343.7 MB, free: 4.145 MB / 286.1 MB Notification: Performance of Templates: time 0.006928/0.1107, allocations: 3.793 MB / 347.5 MB, free: 360 kB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutch/OneWayClutch.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches