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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0009944/0.0009945, allocations: 176.1 kB / 17.4 MB, free: 4.309 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.357/1.357, allocations: 223.3 MB / 241.4 MB, free: 11.6 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008254/0.0008254, allocations: 110.9 kB / 292.6 MB, free: 10.76 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002937/0.0002937, allocations: 11.94 kB / 352.3 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.236, allocations: 50.4 MB / 402.7 MB, free: 32.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09827/0.3343, allocations: 79.24 MB / 482 MB, free: 1.102 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002187/0.3345, allocations: 71.95 kB / 482 MB, free: 1.031 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01187/0.3464, allocations: 4.168 MB / 486.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3465, allocations: 0 / 486.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.227e-05/0.3465, allocations: 4 kB / 486.2 MB, free: 12.86 MB / 362.7 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.0007722/0.3473, allocations: 0.5393 MB / 486.8 MB, free: 12.26 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.3473, allocations: 12.03 kB / 486.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.663e-05/0.3474, allocations: 24.66 kB / 486.8 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002215/0.3476, allocations: 228.1 kB / 487 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.3476, allocations: 12.38 kB / 487 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.712e-05/0.3477, allocations: 28.28 kB / 487.1 MB, free: 11.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004448/0.3481, allocations: 241.1 kB / 487.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.3482, allocations: 4.188 kB / 487.3 MB, free: 11.68 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.297e-05/0.3482, allocations: 7.938 kB / 487.3 MB, free: 11.67 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.3482, allocations: 4 kB / 487.3 MB, free: 11.66 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004564/0.3487, allocations: 199.8 kB / 487.5 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009391/0.3496, allocations: 0.6564 MB / 488.2 MB, free: 10.76 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005128/0.3501, allocations: 222.4 kB / 488.4 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002358/0.3504, allocations: 104.8 kB / 488.5 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.424e-05/0.3504, allocations: 11.92 kB / 488.5 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003363/0.3508, allocations: 175.6 kB / 488.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of pre-optimization done (n=26): time 1.663e-06/0.3508, allocations: 4 kB / 488.7 MB, free: 10.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=28): time 0.002334/0.3531, allocations: 1.245 MB / 489.9 MB, free: 8.871 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.159e-05/0.3532, allocations: 59.41 kB / 490 MB, free: 8.801 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001517/0.3534, allocations: 175.2 kB / 490.1 MB, free: 8.617 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.707e-05/0.3534, allocations: 33.7 kB / 490.2 MB, free: 8.578 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.3e-05/0.3535, allocations: 136.3 kB / 490.3 MB, free: 8.438 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.087e-05/0.3536, allocations: 94.67 kB / 490.4 MB, free: 8.344 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.481e-05/0.3536, allocations: 4 kB / 490.4 MB, free: 8.34 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001007/0.3537, allocations: 330.8 kB / 490.7 MB, free: 8.008 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002602/0.354, allocations: 112.3 kB / 490.8 MB, free: 7.898 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002933/0.3543, allocations: 148.2 kB / 491 MB, free: 7.738 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005042/0.3548, allocations: 263.4 kB / 491.2 MB, free: 7.465 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.3548, allocations: 7.938 kB / 491.2 MB, free: 7.457 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0008004/0.3556, allocations: 397.7 kB / 491.6 MB, free: 7.055 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.127e-05/0.3556, allocations: 37.7 kB / 491.7 MB, free: 7.012 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.121e-05/0.3557, allocations: 4 kB / 491.7 MB, free: 7.008 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002016/0.3559, allocations: 64.81 kB / 491.7 MB, free: 6.941 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002064/0.3561, allocations: 51.84 kB / 491.8 MB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004506/0.3565, allocations: 0.6032 MB / 492.4 MB, free: 6.262 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002461/0.3568, allocations: 35.97 kB / 492.4 MB, free: 6.227 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.195e-05/0.3568, allocations: 19.98 kB / 492.4 MB, free: 6.207 MB / 362.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 ($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): 29 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 1 * 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.0001345/0.357, allocations: 147.2 kB / 492.6 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.185e-05/0.357, allocations: 23.66 kB / 492.6 MB, free: 6.031 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006991/0.3577, allocations: 333.7 kB / 492.9 MB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.936e-06/0.3577, allocations: 0 / 492.9 MB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3578, allocations: 4 kB / 492.9 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.062e-06/0.3578, allocations: 3.984 kB / 492.9 MB, free: 5.684 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00107/0.3588, allocations: 0.6989 MB / 493.6 MB, free: 4.922 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.3589, allocations: 0 / 493.6 MB, free: 4.922 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002182/0.3591, allocations: 51.89 kB / 493.7 MB, free: 4.871 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001513/0.3592, allocations: 60.86 kB / 493.8 MB, free: 4.809 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.317e-05/0.3593, allocations: 15.98 kB / 493.8 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003934/0.3597, allocations: 0.5953 MB / 494.4 MB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.3597, allocations: 32 / 494.4 MB, free: 4.172 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009408/0.3606, allocations: 0.5319 MB / 494.9 MB, free: 3.617 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.9e-05/0.3607, allocations: 112.9 kB / 495 MB, free: 3.488 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.598e-05/0.3608, allocations: 15.92 kB / 495 MB, free: 3.473 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002412/0.361, allocations: 39.97 kB / 495.1 MB, free: 3.434 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.763e-05/0.3611, allocations: 39.94 kB / 495.1 MB, free: 3.395 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.95e-05/0.3612, allocations: 7.984 kB / 495.1 MB, free: 3.387 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.624e-05/0.3613, allocations: 135.2 kB / 495.2 MB, free: 3.254 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3613, allocations: 0 / 495.2 MB, free: 3.254 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003489/0.3616, allocations: 75.94 kB / 495.3 MB, free: 3.18 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (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.0001743/0.3618, allocations: 131.1 kB / 495.4 MB, free: 3.043 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007085/0.3625, allocations: 372.7 kB / 495.8 MB, free: 2.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.3626, allocations: 0 / 495.8 MB, free: 2.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003428/0.3629, allocations: 152 kB / 496 MB, free: 2.512 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.3633, allocations: 39.92 kB / 496 MB, free: 2.473 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001278/0.3646, allocations: 0.8114 MB / 496.8 MB, free: 1.637 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002638/0.3649, allocations: 0.7402 MB / 497.5 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001053/0.365, allocations: 21.95 kB / 497.6 MB, free: 0.8516 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.597e-05/0.365, allocations: 15.44 kB / 497.6 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.365, allocations: 0 / 497.6 MB, free: 0.8359 MB / 362.7 MB Notification: Performance of Templates: time 0.006119/0.3712, allocations: 3.299 MB / 0.4891 GB, free: 13.56 MB / 378.7 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","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches