Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") translateModel(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaIn.phi|inertiaIn.w|oneWayClutch.phi_rel|oneWayClutch.w_rel",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002871/0.002876, allocations: 188.9 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.6/3.6, allocations: 205.4 MB / 222.5 MB, free: 13.85 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001217/0.001217, allocations: 98.78 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006488/0.000649, allocations: 12 kB / 327 MB, free: 15.11 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1592/0.1599, allocations: 47.58 MB / 374.5 MB, free: 15.45 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged): time 0.00545/0.1655, allocations: 1.772 MB / 376.3 MB, free: 13.66 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.003077/0.1686, allocations: 0.7026 MB / 377 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003094/0.169, allocations: 4 kB / 377 MB, free: 12.94 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002372/0.1693, allocations: 31.77 kB / 377 MB, free: 12.91 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006047/0.1699, allocations: 71.84 kB / 377.1 MB, free: 12.84 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007081/0.1707, allocations: 71.8 kB / 377.2 MB, free: 12.77 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007412/0.1714, allocations: 176.1 kB / 377.4 MB, free: 12.6 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002903/0.1718, allocations: 56.34 kB / 377.4 MB, free: 12.54 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004185/0.1722, allocations: 95.67 kB / 377.5 MB, free: 12.45 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004101/0.1727, allocations: 95.61 kB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.24e-05/0.1728, allocations: 8 kB / 377.6 MB, free: 12.35 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002807/0.1731, allocations: 59.88 kB / 377.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.1732, allocations: 31.91 kB / 377.7 MB, free: 12.26 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001422/0.1734, allocations: 69.58 kB / 377.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005963/0.174, allocations: 187.8 kB / 378 MB, free: 12 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.289e-06/0.174, allocations: 0 / 378 MB, free: 12 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.096e-06/0.174, allocations: 0 / 378 MB, free: 12 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.759e-06/0.1741, allocations: 7.938 kB / 378 MB, free: 11.99 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 47 * Number of variables: 47 Notification: Performance of Generate backend data structure: time 0.001759/0.1759, allocations: 498.9 kB / 378.4 MB, free: 11.45 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.36e-05/0.176, allocations: 8.031 kB / 378.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.1761, allocations: 23.72 kB / 378.5 MB, free: 11.42 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006283/0.1768, allocations: 227.6 kB / 378.7 MB, free: 11.16 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.905e-05/0.1769, allocations: 20.44 kB / 378.7 MB, free: 11.14 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001175/0.177, allocations: 23.91 kB / 378.7 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001041/0.1781, allocations: 217.7 kB / 379 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.592e-05/0.1782, allocations: 4 kB / 379 MB, free: 10.89 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.651e-05/0.1783, allocations: 12 kB / 379 MB, free: 10.88 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.047e-05/0.1783, allocations: 4 kB / 379 MB, free: 10.87 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009943/0.1794, allocations: 165 kB / 379.1 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003245/0.1827, allocations: 0.7798 MB / 379.9 MB, free: 9.863 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009147/0.1837, allocations: 134.5 kB / 380 MB, free: 9.723 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.723e-05/0.1837, allocations: 0 / 380 MB, free: 9.723 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.762e-05/0.1838, allocations: 42.56 kB / 380.1 MB, free: 9.672 MB / 282.7 MB Notification: Performance of pre-optimization done (n=18): time 3.487e-06/0.1839, allocations: 4 kB / 380.1 MB, free: 9.668 MB / 282.7 MB Notification: Performance of matching and sorting (n=20): time 0.00512/0.189, allocations: 1.013 MB / 381.1 MB, free: 8.543 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.875e-05/0.1891, allocations: 55.41 kB / 381.2 MB, free: 8.477 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005709/0.1897, allocations: 210.5 kB / 381.4 MB, free: 8.262 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.189e-05/0.1898, allocations: 29.7 kB / 381.4 MB, free: 8.227 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002242/0.1901, allocations: 202.6 kB / 381.6 MB, free: 8.027 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.1903, allocations: 71 kB / 381.7 MB, free: 7.957 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.162e-05/0.1903, allocations: 8 kB / 381.7 MB, free: 7.949 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002186/0.1905, allocations: 326.8 kB / 382 MB, free: 7.621 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004766/0.191, allocations: 75.95 kB / 382.1 MB, free: 7.547 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005123/0.1916, allocations: 123.6 kB / 382.2 MB, free: 7.414 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004677/0.1921, allocations: 81.14 kB / 382.3 MB, free: 7.336 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.1921, allocations: 0 / 382.3 MB, free: 7.336 MB / 282.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001421/0.1936, allocations: 280.1 kB / 382.5 MB, free: 7.055 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.054e-05/0.1937, allocations: 4 kB / 382.5 MB, free: 7.051 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.282e-05/0.1937, allocations: 0 / 382.5 MB, free: 7.051 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006433/0.1944, allocations: 76.88 kB / 382.6 MB, free: 6.973 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004901/0.1949, allocations: 39.92 kB / 382.7 MB, free: 6.934 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001181/0.1961, allocations: 0.6226 MB / 383.3 MB, free: 6.285 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006194/0.1968, allocations: 28.05 kB / 383.3 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.608e-05/0.1969, allocations: 12 kB / 383.3 MB, free: 6.246 MB / 282.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: 6 ($PRE.oneWayClutch.startForward,oneWayClutch.startForward,oneWayClutch.locked,$PRE.oneWayClutch.stuck,oneWayClutch.stuck,oneWayClutch.free) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * 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.00033/0.1972, allocations: 140.4 kB / 383.5 MB, free: 6.102 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001207/0.1974, allocations: 19.75 kB / 383.5 MB, free: 6.082 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001218/0.1975, allocations: 25.88 kB / 383.5 MB, free: 6.055 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.166e-05/0.1976, allocations: 4 kB / 383.5 MB, free: 6.051 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.592e-05/0.1976, allocations: 3.953 kB / 383.5 MB, free: 6.047 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.191e-05/0.1976, allocations: 7.984 kB / 383.5 MB, free: 6.039 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002281/0.1999, allocations: 0.5943 MB / 384.1 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.307e-06/0.2, allocations: 0 / 384.1 MB, free: 5.379 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005736/0.2006, allocations: 36.05 kB / 384.1 MB, free: 5.344 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005463/0.2012, allocations: 68.81 kB / 384.2 MB, free: 5.273 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.72e-05/0.2013, allocations: 8 kB / 384.2 MB, free: 5.266 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00122/0.2025, allocations: 0.6147 MB / 384.8 MB, free: 4.625 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.2026, allocations: 7.969 kB / 384.8 MB, free: 4.617 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001861/0.2045, allocations: 441.2 kB / 385.3 MB, free: 4.148 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002882/0.2048, allocations: 116.8 kB / 385.4 MB, free: 4.016 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.896e-05/0.2049, allocations: 0 / 385.4 MB, free: 4.016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005543/0.2055, allocations: 31.97 kB / 385.4 MB, free: 3.984 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002263/0.2058, allocations: 23.95 kB / 385.4 MB, free: 3.961 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.924e-05/0.2058, allocations: 8.141 kB / 385.4 MB, free: 3.953 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0003685/0.2062, allocations: 152.2 kB / 385.6 MB, free: 3.805 MB / 282.7 MB Notification: Performance of sort global known variables: time 7.62e-07/0.2063, allocations: 0 / 385.6 MB, free: 3.805 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0008757/0.2072, allocations: 64 kB / 385.7 MB, free: 3.742 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (inertiaOut.w,oneWayClutch.phi_rel,oneWayClutch.w_rel,torqueLoad.phi) * Number of discrete variables: 3 (oneWayClutch.startForward,oneWayClutch.locked,oneWayClutch.stuck) * Number of discrete states: 2 (oneWayClutch.stuck,oneWayClutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.0004408/0.2076, allocations: 123.2 kB / 385.8 MB, free: 3.613 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001444/0.2091, allocations: 203.9 kB / 386 MB, free: 3.414 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 9.057e-06/0.2092, allocations: 0 / 386 MB, free: 3.414 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007564/0.21, allocations: 103.8 kB / 386.1 MB, free: 3.312 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007564/0.2108, allocations: 36.53 kB / 386.1 MB, free: 3.277 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004052/0.2149, allocations: 0.8578 MB / 387 MB, free: 2.383 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006172/0.2155, allocations: 0.7443 MB / 387.7 MB, free: 1.613 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001594/0.2157, allocations: 15.44 kB / 387.7 MB, free: 1.598 MB / 282.7 MB Notification: Performance of SimCode: time 1.984e-06/0.2158, allocations: 0 / 387.7 MB, free: 1.598 MB / 282.7 MB Notification: Performance of Templates: time 0.3895/0.6053, allocations: 3.325 MB / 391.1 MB, free: 20.28 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/OneWayClutchDisengaged/OneWayClutchDisengaged.csv","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutchDisengaged.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches