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.001524/0.001524, allocations: 181.5 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.022/2.022, allocations: 205.2 MB / 219.4 MB, free: 14.22 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.001047/0.001047, allocations: 86.75 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.354e-05/3.363e-05, allocations: 4 kB / 321.5 MB, free: 17.85 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09535/0.09541, allocations: 47.57 MB / 369.1 MB, free: 2.211 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4029/0.4984, allocations: 81.8 MB / 450.9 MB, free: 11.33 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002634/0.4987, allocations: 69.53 kB / 450.9 MB, free: 11.3 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1021/0.6009, allocations: 27.85 MB / 478.8 MB, free: 1.566 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.6009, allocations: 0 / 478.8 MB, free: 1.566 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.601, allocations: 4 kB / 478.8 MB, free: 1.562 MB / 346.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.000848/0.6018, allocations: 0.6774 MB / 479.5 MB, free: 0.8086 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.815e-05/0.6019, allocations: 12.03 kB / 479.5 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001256/0.602, allocations: 47.52 kB / 479.5 MB, free: 0.75 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004705/0.6025, allocations: 269.3 kB / 479.8 MB, free: 460 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.078e-05/0.6025, allocations: 8 kB / 479.8 MB, free: 452 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.164e-05/0.6026, allocations: 8 kB / 479.8 MB, free: 444 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004526/0.6031, allocations: 169.5 kB / 480 MB, free: 268 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.184e-05/0.6031, allocations: 4 kB / 480 MB, free: 264 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.405e-05/0.6032, allocations: 8 kB / 480 MB, free: 256 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.6032, allocations: 0 / 480 MB, free: 256 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002515/0.6034, allocations: 83.95 kB / 480.1 MB, free: 172 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.6046, allocations: 0.5042 MB / 480.6 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003059/0.6049, allocations: 118.5 kB / 480.7 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002829/0.6052, allocations: 112.9 kB / 480.8 MB, free: 15.38 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.125e-05/0.6053, allocations: 4 kB / 480.8 MB, free: 15.37 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004736/0.6058, allocations: 246.6 kB / 481.1 MB, free: 15.11 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 3.146e-06/0.6058, allocations: 0 / 481.1 MB, free: 15.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.001156/0.6069, allocations: 0.4899 MB / 481.5 MB, free: 14.58 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000138/0.6071, allocations: 195.9 kB / 481.7 MB, free: 14.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00106/0.6082, allocations: 0.4949 MB / 482.2 MB, free: 13.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.744e-05/0.6083, allocations: 29.7 kB / 482.3 MB, free: 13.81 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001141/0.6084, allocations: 183.5 kB / 482.4 MB, free: 13.63 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.172e-05/0.6085, allocations: 31.64 kB / 482.5 MB, free: 13.6 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.408e-05/0.6085, allocations: 4 kB / 482.5 MB, free: 13.59 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.6087, allocations: 314.8 kB / 482.8 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002394/0.6089, allocations: 79.97 kB / 482.9 MB, free: 13.2 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002323/0.6092, allocations: 83.98 kB / 482.9 MB, free: 13.12 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003338/0.6095, allocations: 212.5 kB / 483.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.456e-06/0.6095, allocations: 0 / 483.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001015/0.6106, allocations: 477.9 kB / 483.6 MB, free: 12.38 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001377/0.6107, allocations: 152.5 kB / 483.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.798e-06/0.6107, allocations: 112 / 483.8 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.847e-05/0.6108, allocations: 3.938 kB / 483.8 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.504e-05/0.6108, allocations: 0 / 483.8 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/0.6108, allocations: 0 / 483.8 MB, free: 12.19 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002983/0.6111, allocations: 23.94 kB / 483.8 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000169/0.6113, allocations: 97.3 kB / 483.9 MB, free: 12.07 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,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 () * 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.0002827/0.6116, allocations: 267.2 kB / 484.1 MB, free: 11.77 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000109/0.6117, allocations: 55.42 kB / 484.2 MB, free: 11.71 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002272/0.612, allocations: 63.77 kB / 484.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.612, allocations: 4 kB / 484.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.601e-06/0.612, allocations: 0 / 484.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.785e-06/0.612, allocations: 0 / 484.3 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00177/0.6138, allocations: 0.9361 MB / 485.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.6138, allocations: 0 / 485.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.135e-05/0.6139, allocations: 0 / 485.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.57e-06/0.6139, allocations: 0 / 485.2 MB, free: 10.62 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.957e-05/0.614, allocations: 23.98 kB / 485.2 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.614, allocations: 0 / 485.2 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.439e-06/0.614, allocations: 7.953 kB / 485.2 MB, free: 10.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0012/0.6152, allocations: 0.6363 MB / 485.9 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006148/0.6158, allocations: 256.4 kB / 486.1 MB, free: 9.633 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001068/0.616, allocations: 16 kB / 486.1 MB, free: 9.617 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/0.6163, allocations: 12 kB / 486.1 MB, free: 9.605 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000235/0.6165, allocations: 59.92 kB / 486.2 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001811/0.6167, allocations: 109.1 kB / 486.3 MB, free: 9.441 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0008998/0.6176, allocations: 416.9 kB / 486.7 MB, free: 9.035 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.6176, allocations: 0 / 486.7 MB, free: 9.035 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004613/0.6181, allocations: 48 kB / 486.8 MB, free: 8.988 MB / 362.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) * 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.0002125/0.6183, allocations: 119.2 kB / 486.9 MB, free: 8.863 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0008762/0.6192, allocations: 0.5282 MB / 487.4 MB, free: 8.273 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.6192, allocations: 3.938 kB / 487.4 MB, free: 8.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005738/0.6198, allocations: 465 kB / 487.9 MB, free: 7.754 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001169/0.621, allocations: 154 kB / 488 MB, free: 7.605 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00172/0.6228, allocations: 0.6467 MB / 488.7 MB, free: 6.926 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006252/0.6234, allocations: 0.8225 MB / 489.5 MB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.503e-05/0.6235, allocations: 19.44 kB / 489.5 MB, free: 6.055 MB / 362.7 MB Notification: Performance of SimCode: time 1.072e-06/0.6235, allocations: 0 / 489.5 MB, free: 6.055 MB / 362.7 MB Notification: Performance of Templates: time 0.01004/0.6335, allocations: 4.206 MB / 493.7 MB, free: 1.738 MB / 362.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