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.00135/0.00135, allocations: 93.25 kB / 16.3 MB, free: 6.453 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.001439/0.00144, allocations: 183.6 kB / 17.2 MB, free: 6.34 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.284/1.284, allocations: 223.2 MB / 241.1 MB, free: 5.438 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00022/0.00022, allocations: 6.594 kB / 300.7 MB, free: 6.023 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08417/0.0844, allocations: 50.41 MB / 351.1 MB, free: 11.76 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.002371/0.08682, allocations: 1.75 MB / 352.9 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009753/0.08782, allocations: 0.6783 MB / 353.5 MB, free: 9.312 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.493e-05/0.08792, allocations: 4 kB / 353.6 MB, free: 9.309 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 9.813e-05/0.08803, allocations: 19.84 kB / 353.6 MB, free: 9.289 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001673/0.0882, allocations: 71.78 kB / 353.6 MB, free: 9.219 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002855/0.0885, allocations: 83.77 kB / 353.7 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002296/0.08874, allocations: 180.1 kB / 353.9 MB, free: 8.961 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.08887, allocations: 40.78 kB / 353.9 MB, free: 8.914 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001524/0.08903, allocations: 99.67 kB / 354 MB, free: 8.816 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001792/0.08922, allocations: 115.6 kB / 354.1 MB, free: 8.703 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.796e-05/0.08926, allocations: 12 kB / 354.2 MB, free: 8.691 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000104/0.08937, allocations: 47.95 kB / 354.2 MB, free: 8.645 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.908e-05/0.08944, allocations: 39.83 kB / 354.2 MB, free: 8.605 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.29e-05/0.08951, allocations: 65.58 kB / 354.3 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002093/0.08972, allocations: 187.5 kB / 354.5 MB, free: 8.352 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.08973, allocations: 4 kB / 354.5 MB, free: 8.348 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.08974, allocations: 0 / 354.5 MB, free: 8.348 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.989e-06/0.08975, allocations: 0 / 354.5 MB, free: 8.348 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.0008711/0.09063, allocations: 0.5353 MB / 355 MB, free: 7.758 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.09067, allocations: 11.97 kB / 355 MB, free: 7.746 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.888e-05/0.09073, allocations: 23.77 kB / 355.1 MB, free: 7.723 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002425/0.09098, allocations: 246.5 kB / 355.3 MB, free: 7.441 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.09102, allocations: 19.95 kB / 355.3 MB, free: 7.422 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.021e-05/0.09106, allocations: 20 kB / 355.3 MB, free: 7.402 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000458/0.09153, allocations: 239.2 kB / 355.6 MB, free: 7.156 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.09155, allocations: 3.938 kB / 355.6 MB, free: 7.152 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.318e-05/0.09158, allocations: 4 kB / 355.6 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.09159, allocations: 4 kB / 355.6 MB, free: 7.145 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004815/0.09208, allocations: 219.7 kB / 355.8 MB, free: 6.93 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001036/0.09312, allocations: 0.6759 MB / 356.5 MB, free: 6.199 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006051/0.09374, allocations: 216.8 kB / 356.7 MB, free: 5.98 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.09377, allocations: 0 / 356.7 MB, free: 5.98 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004109/0.09419, allocations: 169.2 kB / 356.9 MB, free: 5.805 MB / 286.1 MB Notification: Performance of pre-optimization done (n=24): time 1.693e-06/0.0942, allocations: 4 kB / 356.9 MB, free: 5.801 MB / 286.1 MB Notification: Performance of matching and sorting (n=26): time 0.0025/0.09671, allocations: 1.211 MB / 358.1 MB, free: 4.477 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.369e-05/0.09677, allocations: 55.41 kB / 358.1 MB, free: 4.41 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001685/0.09694, allocations: 191 kB / 358.3 MB, free: 4.211 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.09698, allocations: 33.7 kB / 358.3 MB, free: 4.172 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.117e-05/0.09707, allocations: 136.3 kB / 358.5 MB, free: 4.035 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.766e-05/0.09714, allocations: 94.8 kB / 358.6 MB, free: 3.941 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.605e-05/0.09717, allocations: 4 kB / 358.6 MB, free: 3.938 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001095/0.09728, allocations: 330.8 kB / 358.9 MB, free: 3.605 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002613/0.09755, allocations: 112.2 kB / 359 MB, free: 3.492 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002779/0.09784, allocations: 156.2 kB / 359.2 MB, free: 3.328 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002655/0.09811, allocations: 131.1 kB / 359.3 MB, free: 3.195 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.502e-06/0.09812, allocations: 4 kB / 359.3 MB, free: 3.191 MB / 286.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008177/0.09895, allocations: 414.2 kB / 359.7 MB, free: 2.773 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.524e-05/0.099, allocations: 33.7 kB / 359.7 MB, free: 2.734 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.154e-06/0.09902, allocations: 0 / 359.7 MB, free: 2.734 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002401/0.09926, allocations: 72.75 kB / 359.8 MB, free: 2.66 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002184/0.09949, allocations: 51.97 kB / 359.9 MB, free: 2.609 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005205/0.1, allocations: 0.6225 MB / 360.5 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002742/0.1003, allocations: 43.98 kB / 360.5 MB, free: 1.918 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.644e-05/0.1003, allocations: 12 kB / 360.5 MB, free: 1.906 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 ($whenCondition1,$PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free,$PRE.signalEngagement.T_start,signalEngagement.T_start,$PRE.signalEngagement.count,signalEngagement.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001632/0.1005, allocations: 142.1 kB / 360.7 MB, free: 1.758 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.052e-05/0.1006, allocations: 15.81 kB / 360.7 MB, free: 1.742 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.021e-05/0.1006, allocations: 29.86 kB / 360.7 MB, free: 1.715 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.027e-06/0.1006, allocations: 4 kB / 360.7 MB, free: 1.711 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.1006, allocations: 0 / 360.7 MB, free: 1.711 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.1006, allocations: 7.891 kB / 360.7 MB, free: 1.703 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.1019, allocations: 0.7023 MB / 361.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.1019, allocations: 0 / 361.4 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002215/0.1021, allocations: 51.91 kB / 361.5 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001675/0.1023, allocations: 64.81 kB / 361.5 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.166e-05/0.1023, allocations: 8 kB / 361.6 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004173/0.1027, allocations: 0.6031 MB / 362.2 MB, free: 192 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.889e-06/0.1027, allocations: 3.984 kB / 362.2 MB, free: 188 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009861/0.1037, allocations: 0.5272 MB / 362.7 MB, free: 15.63 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.1039, allocations: 113.1 kB / 362.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.223e-05/0.1039, allocations: 4 kB / 362.8 MB, free: 15.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002679/0.1042, allocations: 47.94 kB / 362.8 MB, free: 15.45 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.767e-05/0.1043, allocations: 35.94 kB / 362.9 MB, free: 15.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.008e-05/0.1043, allocations: 12 kB / 362.9 MB, free: 15.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001373/0.1045, allocations: 139.2 kB / 363 MB, free: 15.27 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.11e-07/0.1045, allocations: 0 / 363 MB, free: 15.27 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003678/0.1048, allocations: 72 kB / 363.1 MB, free: 15.2 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002177/0.1051, allocations: 123.2 kB / 363.2 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000793/0.1059, allocations: 335 kB / 363.5 MB, free: 14.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1059, allocations: 4.125 kB / 363.6 MB, free: 14.72 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003593/0.1062, allocations: 147.8 kB / 363.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003386/0.1066, allocations: 44.05 kB / 363.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.108, allocations: 0.7817 MB / 364.5 MB, free: 13.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002737/0.1083, allocations: 0.7481 MB / 365.3 MB, free: 12.96 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001109/0.1084, allocations: 21.94 kB / 365.3 MB, free: 12.93 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.311e-05/0.1085, allocations: 23.42 kB / 365.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1085, allocations: 0 / 365.3 MB, free: 12.91 MB / 302.1 MB Notification: Performance of Templates: time 0.006565/0.1151, allocations: 3.318 MB / 368.6 MB, free: 9.621 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","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches