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.001655/0.001655, allocations: 185.4 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.866/1.866, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.001165/0.001165, allocations: 101.5 kB / 270.9 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005756/0.0005756, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3417/0.3423, allocations: 47.57 MB / 374.5 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1307/0.4731, allocations: 83.26 MB / 457.8 MB, free: 13.49 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.4734, allocations: 79.95 kB / 457.9 MB, free: 13.41 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4493/0.9228, allocations: 54.86 MB / 0.5007 GB, free: 102.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.9228, allocations: 0 / 0.5007 GB, free: 102.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.797e-05/0.9229, allocations: 15.31 kB / 0.5007 GB, free: 102.1 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.002141/0.925, allocations: 1.025 MB / 0.5017 GB, free: 101.5 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.548e-05/0.9251, allocations: 8.5 kB / 0.5017 GB, free: 101.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000384/0.9255, allocations: 76 kB / 0.5018 GB, free: 101.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001128/0.9266, allocations: 470.1 kB / 0.5023 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.726e-05/0.9267, allocations: 46.77 kB / 0.5023 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002658/0.927, allocations: 59.66 kB / 0.5024 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002317/0.9293, allocations: 0.8389 MB / 0.5032 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.813e-05/0.9294, allocations: 0 / 0.5032 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001771/0.9296, allocations: 28.69 kB / 0.5032 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.665e-05/0.9296, allocations: 13.5 kB / 0.5032 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002036/0.9317, allocations: 0.6504 MB / 0.5039 GB, free: 101.2 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004333/0.936, allocations: 1.69 MB / 0.5055 GB, free: 100.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001741/0.9378, allocations: 0.6028 MB / 0.5061 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003078/0.9382, allocations: 11.81 kB / 0.5061 GB, free: 100.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001295/0.9395, allocations: 0.5757 MB / 0.5067 GB, free: 100.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 4.438e-06/0.9395, allocations: 0 / 0.5067 GB, free: 100.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=58): time 0.00363/0.9432, allocations: 1.317 MB / 0.508 GB, free: 100.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.694e-05/0.9433, allocations: 196.6 kB / 0.5081 GB, free: 100.3 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006169/0.9439, allocations: 368.9 kB / 0.5085 GB, free: 100.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001938/0.9441, allocations: 48.61 kB / 0.5085 GB, free: 100.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001785/0.9443, allocations: 281.1 kB / 0.5088 GB, free: 99.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002572/0.9446, allocations: 127.8 kB / 0.5089 GB, free: 99.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001917/0.9448, allocations: 20.91 kB / 0.5089 GB, free: 99.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.01e-05/0.9449, allocations: 332.7 kB / 0.5093 GB, free: 99.57 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009468/0.9458, allocations: 308.7 kB / 0.5096 GB, free: 99.5 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001002/0.9469, allocations: 389.1 kB / 0.5099 GB, free: 99.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001086/0.948, allocations: 486.8 kB / 0.5104 GB, free: 99.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.081e-06/0.948, allocations: 0 / 0.5104 GB, free: 99.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.002853/0.9508, allocations: 1.125 MB / 0.5115 GB, free: 98.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.956e-05/0.951, allocations: 143.1 kB / 0.5116 GB, free: 98.53 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.103e-05/0.951, allocations: 0 / 0.5116 GB, free: 98.53 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.535e-05/0.951, allocations: 7.891 kB / 0.5116 GB, free: 98.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003721/0.9514, allocations: 111.5 kB / 0.5117 GB, free: 98.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.431e-05/0.9514, allocations: 7.812 kB / 0.5118 GB, free: 98.52 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008384/0.9523, allocations: 88.77 kB / 0.5118 GB, free: 98.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006358/0.9529, allocations: 0.5635 MB / 0.5124 GB, free: 98.46 MB / 378.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 () * Number of clocked 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.000802/0.9538, allocations: 443.1 kB / 0.5128 GB, free: 98.11 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002374/0.954, allocations: 48.44 kB / 0.5129 GB, free: 98.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001262/0.9541, allocations: 52.45 kB / 0.5129 GB, free: 98.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.9542, allocations: 10.58 kB / 0.5129 GB, free: 98.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.042e-05/0.9542, allocations: 0 / 0.5129 GB, free: 98.05 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.528e-06/0.9542, allocations: 3.609 kB / 0.5129 GB, free: 98.05 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00126/0.9555, allocations: 0.6631 MB / 0.5136 GB, free: 97.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.109e-06/0.9555, allocations: 0 / 0.5136 GB, free: 97.7 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002771/0.9558, allocations: 100.4 kB / 0.5137 GB, free: 97.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.065e-06/0.9558, allocations: 4 kB / 0.5137 GB, free: 97.7 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001858/0.956, allocations: 93.75 kB / 0.5138 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.851e-06/0.956, allocations: 0 / 0.5138 GB, free: 97.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.805e-06/0.956, allocations: 3.953 kB / 0.5138 GB, free: 97.68 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002677/0.9587, allocations: 1.078 MB / 0.5148 GB, free: 97.27 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000659/0.9594, allocations: 258.3 kB / 0.5151 GB, free: 97.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002794/0.9597, allocations: 23.22 kB / 0.5151 GB, free: 97.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006059/0.9603, allocations: 65.95 kB / 0.5151 GB, free: 97.06 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004845/0.9608, allocations: 156.8 kB / 0.5153 GB, free: 97 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006224/0.9615, allocations: 0.5672 MB / 0.5158 GB, free: 96.94 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003837/0.9619, allocations: 256.5 kB / 0.5161 GB, free: 96.78 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.9619, allocations: 0 / 0.5161 GB, free: 96.78 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009982/0.9629, allocations: 142.1 kB / 0.5162 GB, free: 96.76 MB / 378.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) * Number of clocked states: 0 () * 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.0003502/0.9632, allocations: 171.8 kB / 0.5164 GB, free: 96.64 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002386/0.9656, allocations: 1.035 MB / 0.5174 GB, free: 96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.961e-06/0.9657, allocations: 0.5625 kB / 0.5174 GB, free: 96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00129/0.967, allocations: 0.6949 MB / 0.5181 GB, free: 95.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003171/0.9702, allocations: 476.1 kB / 0.5185 GB, free: 94.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002884/0.9731, allocations: 1.301 MB / 0.5198 GB, free: 93.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004444/0.9736, allocations: 0.9063 MB / 0.5207 GB, free: 92.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003133/0.9767, allocations: 0.6774 MB / 0.5214 GB, free: 91.85 MB / 378.7 MB Notification: Performance of SimCode: time 2.414e-06/0.9768, allocations: 0 / 0.5214 GB, free: 91.85 MB / 378.7 MB Notification: Performance of Templates: time 0.02202/0.9988, allocations: 14.47 MB / 0.5355 GB, free: 76.8 MB / 378.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