Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.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.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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003257/0.003256, allocations: 189.2 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.497/3.497, 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.001911/0.001911, allocations: 94.86 kB / 270.9 MB, free: 13.37 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006889/0.0006891, allocations: 12 kB / 327 MB, free: 15.1 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1483/0.1491, allocations: 47.58 MB / 374.5 MB, free: 15.44 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.OneWayClutch): time 0.004844/0.154, allocations: 1.749 MB / 376.3 MB, free: 13.68 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002736/0.1568, allocations: 0.7104 MB / 377 MB, free: 12.96 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002867/0.1572, allocations: 7.938 kB / 377 MB, free: 12.95 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.1574, allocations: 19.84 kB / 377 MB, free: 12.93 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004508/0.1579, allocations: 75.78 kB / 377.1 MB, free: 12.86 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006591/0.1585, allocations: 75.84 kB / 377.2 MB, free: 12.78 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006508/0.1592, allocations: 180 kB / 377.3 MB, free: 12.61 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002591/0.1595, allocations: 44.56 kB / 377.4 MB, free: 12.56 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004261/0.16, allocations: 103.6 kB / 377.5 MB, free: 12.46 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003744/0.1604, allocations: 107.6 kB / 377.6 MB, free: 12.36 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.38e-05/0.1605, allocations: 12 kB / 377.6 MB, free: 12.34 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000259/0.1608, allocations: 59.94 kB / 377.7 MB, free: 12.29 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001159/0.1609, allocations: 35.84 kB / 377.7 MB, free: 12.25 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001459/0.1611, allocations: 61.62 kB / 377.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005553/0.1616, allocations: 195.7 kB / 378 MB, free: 11.99 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1617, allocations: 4 kB / 378 MB, free: 11.99 MB / 282.7 MB Notification: Performance of FrontEnd: time 3.226e-06/0.1617, allocations: 0 / 378 MB, free: 11.99 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.072e-05/0.1617, allocations: 0 / 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: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.002032/0.1638, allocations: 0.5314 MB / 378.5 MB, free: 11.4 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.692e-05/0.1639, allocations: 8.031 kB / 378.5 MB, free: 11.39 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001776/0.1641, allocations: 27.7 kB / 378.5 MB, free: 11.37 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006523/0.1647, allocations: 226.6 kB / 378.7 MB, free: 11.11 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.818e-05/0.1649, allocations: 20 kB / 378.8 MB, free: 11.09 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001045/0.165, allocations: 23.98 kB / 378.8 MB, free: 11.06 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001201/0.1662, allocations: 235.1 kB / 379 MB, free: 10.82 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.542e-05/0.1663, allocations: 4 kB / 379 MB, free: 10.82 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.635e-05/0.1663, allocations: 8 kB / 379 MB, free: 10.81 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.544e-05/0.1664, allocations: 8 kB / 379 MB, free: 10.8 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001289/0.1677, allocations: 203.8 kB / 379.2 MB, free: 10.6 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002635/0.1704, allocations: 0.6913 MB / 379.9 MB, free: 9.855 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001434/0.1719, allocations: 214.5 kB / 380.1 MB, free: 9.637 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.32e-05/0.172, allocations: 4 kB / 380.1 MB, free: 9.633 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009424/0.173, allocations: 167.6 kB / 380.3 MB, free: 9.457 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 5.22e-06/0.173, allocations: 3.938 kB / 380.3 MB, free: 9.453 MB / 282.7 MB Notification: Performance of matching and sorting (n=26): time 0.006201/0.1792, allocations: 1.204 MB / 381.5 MB, free: 8.133 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.817e-05/0.1794, allocations: 59.41 kB / 381.6 MB, free: 8.062 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004306/0.1798, allocations: 198.8 kB / 381.8 MB, free: 7.859 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.858e-05/0.1799, allocations: 29.7 kB / 381.8 MB, free: 7.824 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002101/0.1802, allocations: 202.7 kB / 382 MB, free: 7.625 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002251/0.1804, allocations: 90.77 kB / 382.1 MB, free: 7.535 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.882e-05/0.1805, allocations: 4 kB / 382.1 MB, free: 7.531 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002206/0.1807, allocations: 326.8 kB / 382.4 MB, free: 7.203 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007638/0.1815, allocations: 116.3 kB / 382.5 MB, free: 7.086 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007843/0.1823, allocations: 148.2 kB / 382.7 MB, free: 6.93 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007863/0.1832, allocations: 143.1 kB / 382.8 MB, free: 6.785 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.45e-06/0.1832, allocations: 0 / 382.8 MB, free: 6.785 MB / 282.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.002284/0.1855, allocations: 405.4 kB / 383.2 MB, free: 6.375 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.591e-05/0.1857, allocations: 33.66 kB / 383.2 MB, free: 6.336 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.245e-05/0.1857, allocations: 0 / 383.2 MB, free: 6.336 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005382/0.1863, allocations: 76.88 kB / 383.3 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000597/0.1869, allocations: 51.91 kB / 383.4 MB, free: 6.207 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001141/0.1881, allocations: 0.6148 MB / 384 MB, free: 5.566 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008121/0.1889, allocations: 44.06 kB / 384 MB, free: 5.523 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.351e-05/0.1891, allocations: 12 kB / 384 MB, free: 5.512 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: 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.0003654/0.1894, allocations: 150 kB / 384.2 MB, free: 5.355 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001/0.1896, allocations: 23.81 kB / 384.2 MB, free: 5.332 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001332/0.1897, allocations: 25.88 kB / 384.2 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.495e-06/0.1897, allocations: 0 / 384.2 MB, free: 5.305 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.357e-05/0.1898, allocations: 8 kB / 384.2 MB, free: 5.297 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.557e-05/0.1898, allocations: 3.984 kB / 384.2 MB, free: 5.293 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002897/0.1927, allocations: 0.6825 MB / 384.9 MB, free: 4.551 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.625e-05/0.1928, allocations: 3.953 kB / 384.9 MB, free: 4.547 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006056/0.1934, allocations: 39.97 kB / 385 MB, free: 4.508 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004779/0.1939, allocations: 68.81 kB / 385 MB, free: 4.438 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.37e-05/0.194, allocations: 15.88 kB / 385 MB, free: 4.422 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001075/0.1951, allocations: 0.6109 MB / 385.7 MB, free: 3.785 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.628e-06/0.1952, allocations: 0 / 385.7 MB, free: 3.785 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002663/0.1979, allocations: 0.5233 MB / 386.2 MB, free: 3.242 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002931/0.1982, allocations: 112.9 kB / 386.3 MB, free: 3.113 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.1983, allocations: 11.95 kB / 386.3 MB, free: 3.102 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007099/0.1991, allocations: 31.97 kB / 386.3 MB, free: 3.07 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002216/0.1993, allocations: 35.94 kB / 386.4 MB, free: 3.035 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.116e-05/0.1994, allocations: 11.98 kB / 386.4 MB, free: 3.023 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0002921/0.1997, allocations: 143.2 kB / 386.5 MB, free: 2.883 MB / 282.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.1997, allocations: 0 / 386.5 MB, free: 2.883 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009639/0.2007, allocations: 68 kB / 386.6 MB, free: 2.816 MB / 282.7 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.000417/0.2012, allocations: 127.1 kB / 386.7 MB, free: 2.684 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001952/0.2031, allocations: 347.7 kB / 387 MB, free: 2.332 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 6.011e-06/0.2032, allocations: 0 / 387 MB, free: 2.332 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009592/0.2042, allocations: 151.9 kB / 387.2 MB, free: 2.184 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007944/0.205, allocations: 24.88 kB / 387.2 MB, free: 2.16 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003558/0.2086, allocations: 0.8339 MB / 388.1 MB, free: 1.297 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006178/0.2093, allocations: 0.7556 MB / 388.8 MB, free: 0.5156 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002085/0.2096, allocations: 23.44 kB / 388.8 MB, free: 500 kB / 282.7 MB Notification: Performance of SimCode: time 2.124e-06/0.2096, allocations: 0 / 388.8 MB, free: 500 kB / 282.7 MB Notification: Performance of Templates: time 0.4043/0.6139, allocations: 3.649 MB / 392.5 MB, free: 20.1 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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","../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.OneWayClutch.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches