Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_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_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009937/0.0009937, allocations: 199 kB / 18.07 MB, free: 3.637 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 226.5 MB / 245.4 MB, free: 8.188 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007583/0.0007584, allocations: 96.75 kB / 297.4 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002081/0.0002082, allocations: 4 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1865/0.1868, allocations: 51.3 MB / 408.7 MB, free: 27.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.0858/0.2726, allocations: 83.52 MB / 492.2 MB, free: 8.09 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001868/0.2728, allocations: 71.95 kB / 492.2 MB, free: 8.02 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1929/0.4657, allocations: 28.06 MB / 0.5081 GB, free: 95 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.4657, allocations: 0 / 0.5081 GB, free: 95 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.4657, allocations: 4.906 kB / 0.5081 GB, free: 95 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.0005471/0.4663, allocations: 0.7418 MB / 0.5088 GB, free: 94.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/0.4663, allocations: 8.656 kB / 0.5089 GB, free: 94.43 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.513e-05/0.4664, allocations: 42.69 kB / 0.5089 GB, free: 94.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002597/0.4667, allocations: 296.2 kB / 0.5092 GB, free: 94.15 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.4667, allocations: 5.75 kB / 0.5092 GB, free: 94.15 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.762e-05/0.4668, allocations: 9.281 kB / 0.5092 GB, free: 94.15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000308/0.4671, allocations: 175.5 kB / 0.5094 GB, free: 94.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.4671, allocations: 192 / 0.5094 GB, free: 94.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.948e-05/0.4671, allocations: 11.3 kB / 0.5094 GB, free: 94.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.4671, allocations: 1.375 kB / 0.5094 GB, free: 94.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001643/0.4673, allocations: 86.73 kB / 0.5095 GB, free: 94.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000602/0.4679, allocations: 0.4928 MB / 0.5099 GB, free: 93.82 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000214/0.4681, allocations: 119.8 kB / 0.51 GB, free: 93.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001921/0.4683, allocations: 110.6 kB / 0.5102 GB, free: 93.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.091e-05/0.4684, allocations: 0.5312 kB / 0.5102 GB, free: 93.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003496/0.4687, allocations: 250.2 kB / 0.5104 GB, free: 93.67 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.402e-06/0.4687, allocations: 0.5312 kB / 0.5104 GB, free: 93.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.001022/0.4698, allocations: 0.612 MB / 0.511 GB, free: 93.46 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.622e-05/0.4698, allocations: 194.4 kB / 0.5112 GB, free: 93.24 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005628/0.4704, allocations: 0.5586 MB / 0.5117 GB, free: 93.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.986e-05/0.4704, allocations: 32.61 kB / 0.5118 GB, free: 93.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.677e-05/0.4705, allocations: 120.2 kB / 0.5119 GB, free: 92.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.79e-05/0.4705, allocations: 32.16 kB / 0.5119 GB, free: 92.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.155e-05/0.4706, allocations: 3.656 kB / 0.5119 GB, free: 92.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.845e-05/0.4706, allocations: 335.6 kB / 0.5122 GB, free: 92.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001312/0.4707, allocations: 80.78 kB / 0.5123 GB, free: 92.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001333/0.4709, allocations: 104.3 kB / 0.5124 GB, free: 92.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003026/0.4712, allocations: 437.4 kB / 0.5128 GB, free: 92.24 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.4712, allocations: 0 / 0.5128 GB, free: 92.24 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005286/0.4717, allocations: 0.4934 MB / 0.5133 GB, free: 92.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.816e-05/0.4718, allocations: 157.8 kB / 0.5134 GB, free: 91.89 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.4718, allocations: 0 / 0.5134 GB, free: 91.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.4718, allocations: 4.031 kB / 0.5134 GB, free: 91.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.599e-05/0.4719, allocations: 0 / 0.5134 GB, free: 91.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.48e-06/0.4719, allocations: 5.812 kB / 0.5135 GB, free: 91.88 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001528/0.472, allocations: 22.17 kB / 0.5135 GB, free: 91.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.841e-05/0.4721, allocations: 109 kB / 0.5136 GB, free: 91.88 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.0002634/0.4724, allocations: 406.7 kB / 0.514 GB, free: 91.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.658e-05/0.4725, allocations: 44.62 kB / 0.514 GB, free: 91.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.464e-05/0.4726, allocations: 67.89 kB / 0.5141 GB, free: 91.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.4726, allocations: 4 kB / 0.5141 GB, free: 91.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4726, allocations: 0 / 0.5141 GB, free: 91.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.4726, allocations: 0 / 0.5141 GB, free: 91.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008482/0.4734, allocations: 0.9631 MB / 0.515 GB, free: 90.92 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.164e-06/0.4734, allocations: 0 / 0.515 GB, free: 90.92 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.829e-06/0.4735, allocations: 3.375 kB / 0.515 GB, free: 90.92 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.4735, allocations: 0 / 0.515 GB, free: 90.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.209e-05/0.4735, allocations: 24.05 kB / 0.515 GB, free: 90.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.4735, allocations: 0 / 0.515 GB, free: 90.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.4735, allocations: 0 / 0.515 GB, free: 90.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005806/0.4741, allocations: 0.6672 MB / 0.5157 GB, free: 90.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002419/0.4743, allocations: 260.1 kB / 0.5159 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.844e-05/0.4744, allocations: 11.88 kB / 0.516 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.4746, allocations: 15.05 kB / 0.516 GB, free: 90.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001314/0.4747, allocations: 64.7 kB / 0.516 GB, free: 90.31 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.858e-05/0.4748, allocations: 100 kB / 0.5161 GB, free: 90.3 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003635/0.4752, allocations: 423.7 kB / 0.5165 GB, free: 90.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.4752, allocations: 0 / 0.5165 GB, free: 90.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002672/0.4754, allocations: 49.88 kB / 0.5166 GB, free: 90.09 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.0001092/0.4756, allocations: 113.8 kB / 0.5167 GB, free: 90 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004358/0.476, allocations: 0.5274 MB / 0.5172 GB, free: 89.59 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.476, allocations: 3.938 kB / 0.5172 GB, free: 89.59 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.4763, allocations: 456.8 kB / 0.5176 GB, free: 89.19 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006469/0.4769, allocations: 174.9 kB / 0.5178 GB, free: 89.15 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000985/0.4779, allocations: 0.8793 MB / 0.5187 GB, free: 88.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002485/0.4782, allocations: 0.8151 MB / 0.5195 GB, free: 87.89 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.835e-05/0.4782, allocations: 15.06 kB / 0.5195 GB, free: 87.88 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4782, allocations: 3.562 kB / 0.5195 GB, free: 87.88 MB / 378.7 MB Notification: Performance of Templates: time 0.004509/0.4827, allocations: 4.258 MB / 0.5236 GB, free: 86.61 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches