Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.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.Multiplexer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer") translateModel(Modelica.Electrical.Digital.Examples.Multiplexer,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|FF.RS1.TD1.x|FF.RS2.TD1.x",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001582/0.001581, allocations: 180.7 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.024/2.024, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001202/0.001201, allocations: 98.62 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.007e-05/4.051e-05, allocations: 7.984 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1217/0.1218, allocations: 47.57 MB / 369.1 MB, free: 2.211 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4497/0.5715, allocations: 83.18 MB / 452.3 MB, free: 9.973 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003138/0.5719, allocations: 69.34 kB / 452.3 MB, free: 9.938 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2003/0.7722, allocations: 55.25 MB / 0.4957 GB, free: 4.797 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.7723, allocations: 0 / 0.4957 GB, free: 4.797 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.686e-05/0.7724, allocations: 12 kB / 0.4957 GB, free: 4.785 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 139 * Number of variables: 139 Notification: Performance of Generate backend data structure: time 0.002526/0.7749, allocations: 0.9698 MB / 0.4966 GB, free: 3.734 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.747e-05/0.775, allocations: 16.02 kB / 0.4967 GB, free: 3.719 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005161/0.7755, allocations: 75.16 kB / 0.4967 GB, free: 3.645 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001457/0.777, allocations: 465 kB / 0.4972 GB, free: 3.148 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001038/0.7771, allocations: 45.27 kB / 0.4972 GB, free: 3.105 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002977/0.7774, allocations: 64 kB / 0.4973 GB, free: 3.043 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00282/0.7803, allocations: 0.8105 MB / 0.4981 GB, free: 2.223 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.763e-05/0.7804, allocations: 0 / 0.4981 GB, free: 2.223 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001844/0.7806, allocations: 28 kB / 0.4981 GB, free: 2.195 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.175e-05/0.7806, allocations: 12 kB / 0.4981 GB, free: 2.184 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002234/0.7828, allocations: 0.6143 MB / 0.4987 GB, free: 1.57 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005666/0.7886, allocations: 1.686 MB / 0.5003 GB, free: 15.83 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001911/0.7905, allocations: 0.564 MB / 0.5009 GB, free: 15.25 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001007/0.7916, allocations: 286.5 kB / 0.5012 GB, free: 14.97 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002504/0.7919, allocations: 12.5 kB / 0.5012 GB, free: 14.96 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001515/0.7934, allocations: 0.5533 MB / 0.5017 GB, free: 14.39 MB / 394.7 MB Notification: Performance of pre-optimization done (n=58): time 8.136e-06/0.7935, allocations: 4 kB / 0.5017 GB, free: 14.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=58): time 0.002942/0.7965, allocations: 0.9909 MB / 0.5027 GB, free: 13.36 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001868/0.7967, allocations: 196.5 kB / 0.5029 GB, free: 13.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001089/0.7978, allocations: 363.1 kB / 0.5032 GB, free: 12.76 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0003086/0.7982, allocations: 45.7 kB / 0.5033 GB, free: 12.71 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002916/0.7985, allocations: 287.3 kB / 0.5035 GB, free: 12.43 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003137/0.7988, allocations: 134.4 kB / 0.5037 GB, free: 12.29 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001497/0.799, allocations: 16 kB / 0.5037 GB, free: 12.28 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.7991, allocations: 334.8 kB / 0.504 GB, free: 11.94 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.8004, allocations: 289.5 kB / 0.5043 GB, free: 11.66 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.8015, allocations: 361.7 kB / 0.5046 GB, free: 11.29 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00124/0.8027, allocations: 460.5 kB / 0.5051 GB, free: 10.8 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/0.8028, allocations: 0 / 0.5051 GB, free: 10.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.003334/0.8061, allocations: 1.088 MB / 0.5061 GB, free: 9.68 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001553/0.8064, allocations: 140.5 kB / 0.5063 GB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.184e-05/0.8064, allocations: 8 kB / 0.5063 GB, free: 9.504 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.82e-05/0.8065, allocations: 7.953 kB / 0.5063 GB, free: 9.496 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004879/0.807, allocations: 115.8 kB / 0.5064 GB, free: 9.383 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.762e-05/0.807, allocations: 8.062 kB / 0.5064 GB, free: 9.375 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.8081, allocations: 79.64 kB / 0.5065 GB, free: 9.297 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009066/0.809, allocations: 0.5619 MB / 0.507 GB, free: 8.734 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 75 ($whenCondition1,MUX.d,$PRE.MUX.Or1.auxiliary_n,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,$PRE.MUX.And1.auxiliary_n,$PRE.MUX.And2.auxiliary_n,$PRE.MUX.And3.auxiliary_n,$PRE.MUX.And4.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,$PRE.FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And2.y,$PRE.FF.And2.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,$PRE.FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.And4.y,$PRE.FF.And4.auxiliary_n,FF.RS2.Nor1.auxiliary[2],$PRE.FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor1.auxiliary_n,$PRE.FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.And1.y,$PRE.FF.And1.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.auxiliary_n,FF.And4.auxiliary_n,$PRE.FF.Not1.auxiliary,CLK.y,$PRE.CLK.t_i,CLK.t_i,D0.y,D1.y,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,$PRE.MUX.Not1.auxiliary,MUX.Not1.auxiliary,$PRE.MUX.Not2.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,FF.RS1.Nor1.auxiliary[2],$PRE.FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor1.auxiliary_n,$PRE.FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.y,$PRE.FF.And3.auxiliary_n,FF.Not1.auxiliary,Enable.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (78): * Single equations (assignments): 73 * 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.0006287/0.8097, allocations: 333.3 kB / 0.5073 GB, free: 8.371 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003415/0.81, allocations: 51.44 kB / 0.5074 GB, free: 8.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002692/0.8103, allocations: 56.75 kB / 0.5074 GB, free: 8.266 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.879e-05/0.8104, allocations: 7.953 kB / 0.5075 GB, free: 8.258 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.8104, allocations: 3.938 kB / 0.5075 GB, free: 8.254 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.997e-05/0.8104, allocations: 7.984 kB / 0.5075 GB, free: 8.246 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001844/0.8123, allocations: 0.6579 MB / 0.5081 GB, free: 7.539 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.902e-06/0.8124, allocations: 4 kB / 0.5081 GB, free: 7.535 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003423/0.8127, allocations: 95.88 kB / 0.5082 GB, free: 7.441 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.64e-05/0.8127, allocations: 4 kB / 0.5082 GB, free: 7.438 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002366/0.813, allocations: 91.89 kB / 0.5083 GB, free: 7.348 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.546e-06/0.813, allocations: 4 kB / 0.5083 GB, free: 7.344 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.509e-06/0.813, allocations: 3.953 kB / 0.5083 GB, free: 7.34 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003103/0.8161, allocations: 1.032 MB / 0.5093 GB, free: 6.258 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009757/0.8172, allocations: 256.5 kB / 0.5096 GB, free: 5.988 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002848/0.8175, allocations: 28 kB / 0.5096 GB, free: 5.961 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007129/0.8182, allocations: 63.8 kB / 0.5096 GB, free: 5.898 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005219/0.8188, allocations: 156.4 kB / 0.5098 GB, free: 5.746 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0008613/0.8196, allocations: 0.5696 MB / 0.5103 GB, free: 5.176 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004785/0.8201, allocations: 250.1 kB / 0.5106 GB, free: 4.934 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.81e-07/0.8201, allocations: 0 / 0.5106 GB, free: 4.934 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001021/0.8212, allocations: 140 kB / 0.5107 GB, free: 4.797 MB / 394.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: 56 ($whenCondition1,CLK.y,CLK.t_i,D0.y,D1.y,MUX.d,MUX.Or1.x[1],MUX.Or1.x[2],MUX.Or1.x[3],MUX.Or1.x[4],MUX.Or1.auxiliary[2],MUX.Or1.auxiliary[3],MUX.Or1.auxiliary_n,MUX.And1.x[1],MUX.And1.x[3],MUX.And1.auxiliary[2],MUX.And1.auxiliary_n,MUX.And2.auxiliary[2],MUX.And2.auxiliary_n,MUX.And3.auxiliary[2],MUX.And3.auxiliary_n,MUX.And4.auxiliary[2],MUX.And4.auxiliary_n,MUX.Not1.auxiliary,MUX.Not2.auxiliary,D2.y,D3.y,FF.RS1.Nor1.auxiliary[2],FF.RS1.Nor1.auxiliary_n,FF.RS1.Nor2.x[2],FF.RS1.Nor2.auxiliary[2],FF.RS1.Nor2.auxiliary_n,FF.RS1.TD1.x,FF.RS1.TD1.x_delayed,FF.RS2.Nor1.auxiliary[2],FF.RS2.Nor1.auxiliary_n,FF.RS2.Nor2.x[2],FF.RS2.Nor2.auxiliary[2],FF.RS2.Nor2.auxiliary_n,FF.RS2.TD1.x,FF.RS2.TD1.x_delayed,FF.And1.y,FF.And1.auxiliary[2],FF.And1.auxiliary_n,FF.And2.x[1],FF.And2.y,FF.And2.auxiliary[2],FF.And2.auxiliary_n,FF.And3.x[1],FF.And3.x[2],FF.And3.y,FF.And3.auxiliary_n,FF.And4.y,FF.And4.auxiliary_n,FF.Not1.auxiliary,Enable.y) * Number of discrete states: 23 (Enable.y,FF.Not1.auxiliary,FF.And4.auxiliary_n,FF.And3.auxiliary_n,FF.And2.auxiliary_n,FF.And1.auxiliary_n,FF.RS2.TD1.x,FF.RS2.Nor2.auxiliary_n,FF.RS2.Nor1.auxiliary_n,FF.RS1.TD1.x,FF.RS1.Nor2.auxiliary_n,FF.RS1.Nor1.auxiliary_n,D3.y,D2.y,MUX.Not2.auxiliary,MUX.Not1.auxiliary,MUX.And4.auxiliary_n,MUX.And3.auxiliary_n,MUX.And2.auxiliary_n,MUX.And1.auxiliary_n,MUX.Or1.auxiliary_n,D1.y,D0.y) * Top-level inputs: 0 Notification: Strong component statistics for simulation (58): * Single equations (assignments): 52 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 1 * 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.0004155/0.8216, allocations: 172.8 kB / 0.5109 GB, free: 4.617 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002451/0.8241, allocations: 1.001 MB / 0.5119 GB, free: 3.555 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.8241, allocations: 0.5625 kB / 0.5119 GB, free: 3.555 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001346/0.8255, allocations: 0.6719 MB / 0.5125 GB, free: 2.816 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003302/0.8288, allocations: 478.2 kB / 0.513 GB, free: 2.348 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002753/0.8316, allocations: 0.9471 MB / 0.5139 GB, free: 1.371 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006819/0.8323, allocations: 0.9026 MB / 0.5148 GB, free: 452 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003338/0.8356, allocations: 0.6774 MB / 0.5154 GB, free: 15.76 MB / 410.7 MB Notification: Performance of SimCode: time 1.513e-06/0.8357, allocations: 0 / 0.5154 GB, free: 15.76 MB / 410.7 MB Notification: Performance of Templates: time 0.02988/0.8656, allocations: 14.47 MB / 0.5296 GB, free: 0.5547 MB / 410.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/Multiplexer/Multiplexer.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.Multiplexer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches