Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.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.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002615/0.002621, allocations: 186.7 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.462/3.462, allocations: 205.4 MB / 222.5 MB, free: 13.75 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.001922/0.001922, allocations: 94.88 kB / 270.9 MB, free: 13.28 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007257/0.0007258, allocations: 8 kB / 327 MB, free: 15.08 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1434/0.1442, allocations: 47.58 MB / 374.5 MB, free: 15.42 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003234/0.1475, allocations: 1.23 MB / 375.8 MB, free: 14.18 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.004445/0.152, allocations: 0.8692 MB / 376.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.1522, allocations: 0 / 376.6 MB, free: 13.3 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.1524, allocations: 11.92 kB / 376.6 MB, free: 13.29 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000166/0.1526, allocations: 19.91 kB / 376.7 MB, free: 13.27 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004439/0.153, allocations: 43.89 kB / 376.7 MB, free: 13.23 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002499/0.1533, allocations: 87.78 kB / 376.8 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.1535, allocations: 21.39 kB / 376.8 MB, free: 13.12 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001238/0.1548, allocations: 479.2 kB / 377.3 MB, free: 12.65 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003026/0.1551, allocations: 103.8 kB / 377.4 MB, free: 12.55 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 9.679e-05/0.1552, allocations: 4 kB / 377.4 MB, free: 12.55 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.674e-05/0.1553, allocations: 4 kB / 377.4 MB, free: 12.54 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001655/0.1555, allocations: 71.7 kB / 377.5 MB, free: 12.47 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001595/0.1557, allocations: 77.52 kB / 377.5 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007174/0.1564, allocations: 371.1 kB / 377.9 MB, free: 12.03 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.1565, allocations: 0 / 377.9 MB, free: 12.03 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.956e-06/0.1565, allocations: 0 / 377.9 MB, free: 12.03 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.057e-05/0.1565, allocations: 0 / 377.9 MB, free: 12.03 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001554/0.1581, allocations: 0.7284 MB / 378.6 MB, free: 11.22 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.507e-05/0.1582, allocations: 12.03 kB / 378.6 MB, free: 11.21 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002207/0.1584, allocations: 39.53 kB / 378.7 MB, free: 11.17 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000692/0.1591, allocations: 277.2 kB / 379 MB, free: 10.86 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.745e-05/0.1592, allocations: 15.94 kB / 379 MB, free: 10.84 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.063e-05/0.1593, allocations: 12 kB / 379 MB, free: 10.83 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008176/0.1602, allocations: 165.5 kB / 379.1 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.677e-05/0.1602, allocations: 0 / 379.1 MB, free: 10.66 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.696e-05/0.1603, allocations: 8 kB / 379.1 MB, free: 10.65 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.1604, allocations: 0 / 379.1 MB, free: 10.65 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004781/0.1609, allocations: 87.94 kB / 379.2 MB, free: 10.57 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001788/0.1627, allocations: 0.4964 MB / 379.7 MB, free: 10.02 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006207/0.1634, allocations: 122.5 kB / 379.9 MB, free: 9.891 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.856e-05/0.1634, allocations: 0 / 379.9 MB, free: 9.891 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008739/0.1643, allocations: 254.6 kB / 380.1 MB, free: 9.617 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 7.314e-06/0.1644, allocations: 3.984 kB / 380.1 MB, free: 9.613 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.002681/0.1671, allocations: 0.7614 MB / 380.9 MB, free: 8.777 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002062/0.1673, allocations: 199.9 kB / 381.1 MB, free: 8.539 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001876/0.1692, allocations: 0.564 MB / 381.6 MB, free: 7.969 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001465/0.1695, allocations: 29.7 kB / 381.7 MB, free: 7.934 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.1697, allocations: 175.5 kB / 381.8 MB, free: 7.762 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001204/0.1698, allocations: 35.59 kB / 381.9 MB, free: 7.727 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.37e-05/0.1699, allocations: 4 kB / 381.9 MB, free: 7.723 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0002095/0.1701, allocations: 318.8 kB / 382.2 MB, free: 7.402 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004481/0.1706, allocations: 79.97 kB / 382.3 MB, free: 7.324 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004369/0.1711, allocations: 102.4 kB / 382.4 MB, free: 7.219 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005249/0.1716, allocations: 212.3 kB / 382.6 MB, free: 6.984 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.882e-06/0.1716, allocations: 3.938 kB / 382.6 MB, free: 6.98 MB / 282.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001756/0.1734, allocations: 0.4903 MB / 383.1 MB, free: 6.453 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000212/0.1737, allocations: 152.5 kB / 383.2 MB, free: 6.273 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.223e-05/0.1737, allocations: 0 / 383.2 MB, free: 6.273 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.366e-05/0.1737, allocations: 0 / 383.2 MB, free: 6.273 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.232e-05/0.1738, allocations: 7.984 kB / 383.2 MB, free: 6.266 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.445e-05/0.1738, allocations: 8.172 kB / 383.2 MB, free: 6.258 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005202/0.1744, allocations: 15.91 kB / 383.2 MB, free: 6.242 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002749/0.1747, allocations: 109.4 kB / 383.3 MB, free: 6.133 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009935/0.1757, allocations: 399.9 kB / 383.7 MB, free: 5.703 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001845/0.1759, allocations: 43.53 kB / 383.8 MB, free: 5.66 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003165/0.1762, allocations: 67.48 kB / 383.8 MB, free: 5.59 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.264e-06/0.1763, allocations: 0 / 383.8 MB, free: 5.59 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.386e-06/0.1763, allocations: 0 / 383.8 MB, free: 5.59 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.641e-06/0.1763, allocations: 4 kB / 383.8 MB, free: 5.586 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003029/0.1793, allocations: 0.9634 MB / 384.8 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.287e-06/0.1794, allocations: 0 / 384.8 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.742e-05/0.1795, allocations: 0 / 384.8 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.937e-06/0.1795, allocations: 0 / 384.8 MB, free: 4.535 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001031/0.1796, allocations: 23.98 kB / 384.8 MB, free: 4.512 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.726e-06/0.1796, allocations: 0 / 384.8 MB, free: 4.512 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.691e-06/0.1796, allocations: 3.938 kB / 384.8 MB, free: 4.508 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002102/0.1818, allocations: 0.6711 MB / 385.5 MB, free: 3.789 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001047/0.1829, allocations: 256.3 kB / 385.8 MB, free: 3.52 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000181/0.1831, allocations: 12 kB / 385.8 MB, free: 3.508 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004799/0.1836, allocations: 15.98 kB / 385.8 MB, free: 3.492 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003556/0.184, allocations: 51.94 kB / 385.8 MB, free: 3.441 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002663/0.1843, allocations: 97.23 kB / 385.9 MB, free: 3.348 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001402/0.1857, allocations: 422.8 kB / 386.3 MB, free: 2.938 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.72e-07/0.1858, allocations: 4 kB / 386.3 MB, free: 2.934 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0009815/0.1868, allocations: 55.95 kB / 386.4 MB, free: 2.879 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003005/0.1871, allocations: 115.2 kB / 386.5 MB, free: 2.754 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001805/0.1889, allocations: 0.5361 MB / 387 MB, free: 2.156 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.712e-05/0.189, allocations: 0 / 387 MB, free: 2.156 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001081/0.1902, allocations: 468.9 kB / 387.5 MB, free: 1.637 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001829/0.192, allocations: 157.9 kB / 387.7 MB, free: 1.484 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003473/0.1956, allocations: 0.8859 MB / 388.5 MB, free: 0.5664 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.4318/0.6274, allocations: 0.8237 MB / 389.4 MB, free: 20.64 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.598e-05/0.6275, allocations: 13.78 kB / 389.4 MB, free: 20.63 MB / 282.7 MB Notification: Performance of SimCode: time 2.044e-06/0.6275, allocations: 0 / 389.4 MB, free: 20.63 MB / 282.7 MB Notification: Performance of Templates: time 0.02284/0.6504, allocations: 4.219 MB / 393.6 MB, free: 20.2 MB / 282.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1 --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches