Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00106/0.001064, allocations: 176.2 kB / 17.4 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.356/1.356, allocations: 223.3 MB / 241.4 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008162/0.0008159, allocations: 96.59 kB / 292.6 MB, free: 10.78 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003324/0.0003325, allocations: 11.94 kB / 352.3 MB, free: 15.02 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2565, allocations: 50.4 MB / 402.7 MB, free: 32.46 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.106/0.3625, allocations: 82.81 MB / 485.6 MB, free: 13.53 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002758/0.3629, allocations: 78.67 kB / 485.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05751/0.4204, allocations: 27.99 MB / 0.5016 GB, free: 1.586 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.434e-06/0.4205, allocations: 0 / 0.5016 GB, free: 1.586 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.298e-05/0.4205, allocations: 8 kB / 0.5016 GB, free: 1.578 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.001139/0.4217, allocations: 0.7517 MB / 0.5023 GB, free: 0.7422 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.015e-05/0.4217, allocations: 8.031 kB / 0.5023 GB, free: 0.7344 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001376/0.4219, allocations: 44.38 kB / 0.5024 GB, free: 0.6914 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003962/0.4223, allocations: 290.2 kB / 0.5027 GB, free: 376 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.921e-05/0.4223, allocations: 8.375 kB / 0.5027 GB, free: 368 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.935e-05/0.4224, allocations: 12.31 kB / 0.5027 GB, free: 356 kB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004078/0.4228, allocations: 166.1 kB / 0.5028 GB, free: 184 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.081e-05/0.4228, allocations: 192 / 0.5028 GB, free: 184 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.473e-05/0.4228, allocations: 15.94 kB / 0.5028 GB, free: 168 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.4229, allocations: 0 / 0.5028 GB, free: 168 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000192/0.4231, allocations: 87.89 kB / 0.5029 GB, free: 80 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2127/0.6357, allocations: 494.6 kB / 0.5034 GB, free: 97.09 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003419/0.6361, allocations: 126.4 kB / 0.5035 GB, free: 97.07 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000253/0.6364, allocations: 110.1 kB / 0.5036 GB, free: 97.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.444e-05/0.6364, allocations: 1.703 kB / 0.5036 GB, free: 97.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004442/0.6369, allocations: 242.9 kB / 0.5039 GB, free: 96.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 3.106e-06/0.6369, allocations: 0 / 0.5039 GB, free: 96.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.001277/0.6382, allocations: 0.6125 MB / 0.5045 GB, free: 96.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.394e-05/0.6383, allocations: 195.8 kB / 0.5046 GB, free: 96.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008572/0.6392, allocations: 0.5626 MB / 0.5052 GB, free: 96.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.506e-05/0.6392, allocations: 35.47 kB / 0.5052 GB, free: 96.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.021e-05/0.6393, allocations: 113.5 kB / 0.5053 GB, free: 96.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.034e-05/0.6393, allocations: 35.11 kB / 0.5054 GB, free: 96.22 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.205e-05/0.6394, allocations: 8.844 kB / 0.5054 GB, free: 96.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.471e-05/0.6394, allocations: 329.4 kB / 0.5057 GB, free: 95.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001701/0.6396, allocations: 79.62 kB / 0.5058 GB, free: 95.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001664/0.6398, allocations: 106.7 kB / 0.5059 GB, free: 95.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000354/0.6401, allocations: 430.4 kB / 0.5063 GB, free: 95.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.6402, allocations: 0 / 0.5063 GB, free: 95.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006995/0.6409, allocations: 0.4991 MB / 0.5068 GB, free: 95.37 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.786e-05/0.641, allocations: 151.4 kB / 0.5069 GB, free: 95.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.354e-06/0.641, allocations: 0.5938 kB / 0.5069 GB, free: 95.21 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.638e-05/0.641, allocations: 1.188 kB / 0.5069 GB, free: 95.21 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.301e-05/0.641, allocations: 6.531 kB / 0.5069 GB, free: 95.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.641, allocations: 2.219 kB / 0.5069 GB, free: 95.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001901/0.6412, allocations: 18.44 kB / 0.5069 GB, free: 95.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001851/0.6414, allocations: 104.2 kB / 0.507 GB, free: 95.21 MB / 378.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.sel,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,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.0003855/0.6418, allocations: 405.2 kB / 0.5074 GB, free: 94.91 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.276e-05/0.6419, allocations: 44.06 kB / 0.5075 GB, free: 94.89 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001109/0.642, allocations: 76.66 kB / 0.5075 GB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.757e-06/0.642, allocations: 1.469 kB / 0.5075 GB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.6421, allocations: 0.75 kB / 0.5075 GB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.6421, allocations: 3.562 kB / 0.5075 GB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001226/0.6433, allocations: 0.957 MB / 0.5085 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.6433, allocations: 1.594 kB / 0.5085 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.583e-06/0.6433, allocations: 7.969 kB / 0.5085 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.6433, allocations: 0.6562 kB / 0.5085 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.988e-05/0.6434, allocations: 22.89 kB / 0.5085 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.409e-06/0.6434, allocations: 1 kB / 0.5085 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.6434, allocations: 0 / 0.5085 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007455/0.6442, allocations: 0.6643 MB / 0.5092 GB, free: 94.05 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002866/0.6445, allocations: 260.3 kB / 0.5094 GB, free: 93.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.523e-05/0.6445, allocations: 10.56 kB / 0.5094 GB, free: 93.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001516/0.6447, allocations: 14.17 kB / 0.5094 GB, free: 93.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/0.6448, allocations: 53.98 kB / 0.5095 GB, free: 93.91 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.991e-05/0.6449, allocations: 105.5 kB / 0.5096 GB, free: 93.91 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000496/0.6454, allocations: 421.6 kB / 0.51 GB, free: 93.77 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.743e-06/0.6454, allocations: 0 / 0.51 GB, free: 93.77 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003221/0.6458, allocations: 57.94 kB / 0.51 GB, free: 93.77 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: 14 ($whenCondition1,$whenCondition2,Mux2x1.sel,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,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,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.0001379/0.6459, allocations: 120.5 kB / 0.5102 GB, free: 93.68 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000492/0.6464, allocations: 0.5315 MB / 0.5107 GB, free: 93.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.6464, allocations: 0.8438 kB / 0.5107 GB, free: 93.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003325/0.6468, allocations: 466.4 kB / 0.5111 GB, free: 93.05 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000727/0.6475, allocations: 162.9 kB / 0.5113 GB, free: 93.04 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.6486, allocations: 0.8338 MB / 0.5121 GB, free: 92.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002941/0.6489, allocations: 0.8249 MB / 0.5129 GB, free: 91.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.511e-05/0.649, allocations: 12.36 kB / 0.5129 GB, free: 91.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.909e-05/0.649, allocations: 11.28 kB / 0.5129 GB, free: 91.88 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.649, allocations: 0 / 0.5129 GB, free: 91.88 MB / 378.7 MB Notification: Performance of Templates: time 0.008488/0.6575, allocations: 6.632 MB / 0.5194 GB, free: 91.18 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches