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.002834/0.002834, allocations: 181.3 kB / 17.41 MB, free: 4.289 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.54/3.54, allocations: 205.4 MB / 223.6 MB, free: 9.035 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.001754/0.001754, allocations: 85.09 kB / 271.9 MB, free: 8.289 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007434/0.0007436, allocations: 11.94 kB / 328.1 MB, free: 15.97 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5912/0.5919, allocations: 47.57 MB / 375.7 MB, free: 45.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1906/0.7827, allocations: 81.93 MB / 457.6 MB, free: 14.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003606/0.7832, allocations: 71.97 kB / 457.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09459/0.8778, allocations: 27.65 MB / 485.4 MB, free: 3.094 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.068e-06/0.8778, allocations: 4 kB / 485.4 MB, free: 3.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.966e-05/0.8779, allocations: 4 kB / 485.4 MB, free: 3.086 MB / 362.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.001506/0.8794, allocations: 0.7361 MB / 486.1 MB, free: 2.266 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.942e-05/0.8795, allocations: 15.97 kB / 486.1 MB, free: 2.25 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001369/0.8796, allocations: 48.36 kB / 486.2 MB, free: 2.203 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005712/0.8802, allocations: 282.3 kB / 486.4 MB, free: 1.887 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.8803, allocations: 8.375 kB / 486.5 MB, free: 1.879 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.026e-05/0.8803, allocations: 16.31 kB / 486.5 MB, free: 1.863 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005665/0.8809, allocations: 170 kB / 486.6 MB, free: 1.691 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.357e-05/0.8809, allocations: 4.188 kB / 486.6 MB, free: 1.688 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.122e-05/0.881, allocations: 7.938 kB / 486.6 MB, free: 1.68 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.997e-06/0.881, allocations: 0 / 486.6 MB, free: 1.68 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003064/0.8813, allocations: 83.95 kB / 486.7 MB, free: 1.598 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001352/0.8827, allocations: 0.4965 MB / 487.2 MB, free: 1.051 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003953/0.8831, allocations: 122.5 kB / 487.3 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003193/0.8835, allocations: 108.9 kB / 487.5 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.813e-05/0.8835, allocations: 0 / 487.5 MB, free: 0.8125 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006445/0.8842, allocations: 250.6 kB / 487.7 MB, free: 0.543 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 3.256e-06/0.8842, allocations: 3.938 kB / 487.7 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.001846/0.886, allocations: 0.6031 MB / 488.3 MB, free: 15.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002394/0.8863, allocations: 199.9 kB / 488.5 MB, free: 15.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001404/0.8877, allocations: 0.5639 MB / 489.1 MB, free: 15.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.552e-05/0.8878, allocations: 33.81 kB / 489.1 MB, free: 15.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.00015/0.888, allocations: 117.1 kB / 489.2 MB, free: 14.93 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.151e-05/0.8881, allocations: 31.64 kB / 489.2 MB, free: 14.89 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.911e-05/0.8881, allocations: 8 kB / 489.2 MB, free: 14.89 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002222/0.8884, allocations: 330.8 kB / 489.6 MB, free: 14.55 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002884/0.8887, allocations: 75.97 kB / 489.6 MB, free: 14.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003119/0.889, allocations: 105.7 kB / 489.8 MB, free: 14.37 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007817/0.8898, allocations: 434.8 kB / 490.2 MB, free: 13.88 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.029e-06/0.8898, allocations: 0 / 490.2 MB, free: 13.88 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00127/0.8911, allocations: 0.5056 MB / 490.7 MB, free: 13.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002073/0.8913, allocations: 156.5 kB / 490.8 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/0.8914, allocations: 0 / 490.8 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.744e-05/0.8914, allocations: 4 kB / 490.8 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.547e-05/0.8914, allocations: 0 / 490.8 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.473e-05/0.8915, allocations: 7.969 kB / 490.8 MB, free: 13.14 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003182/0.8918, allocations: 15.98 kB / 490.9 MB, free: 13.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002375/0.8921, allocations: 97.25 kB / 491 MB, free: 13.03 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.0008562/0.8929, allocations: 408.1 kB / 491.4 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001155/0.8931, allocations: 39.53 kB / 491.4 MB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002526/0.8933, allocations: 71.47 kB / 491.5 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.162e-06/0.8934, allocations: 0 / 491.5 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.314e-05/0.8934, allocations: 8 kB / 491.5 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.845e-06/0.8934, allocations: 0 / 491.5 MB, free: 12.47 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002322/0.8957, allocations: 0.9634 MB / 492.4 MB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.989e-06/0.8958, allocations: 3.938 kB / 492.4 MB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.884e-05/0.8958, allocations: 0 / 492.4 MB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.838e-06/0.8958, allocations: 0 / 492.4 MB, free: 11.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.369e-05/0.8959, allocations: 23.98 kB / 492.5 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.113e-06/0.8959, allocations: 0 / 492.5 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.8959, allocations: 0 / 492.5 MB, free: 11.39 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.8975, allocations: 0.6633 MB / 493.1 MB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006533/0.8982, allocations: 252.4 kB / 493.4 MB, free: 10.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.8983, allocations: 15.98 kB / 493.4 MB, free: 10.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003104/0.8986, allocations: 12 kB / 493.4 MB, free: 10.39 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002922/0.8989, allocations: 59.86 kB / 493.5 MB, free: 10.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002485/0.8992, allocations: 109.1 kB / 493.6 MB, free: 10.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001072/0.9003, allocations: 418.9 kB / 494 MB, free: 9.82 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.9003, allocations: 4 kB / 494 MB, free: 9.816 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006213/0.901, allocations: 52 kB / 494 MB, free: 9.766 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.0003471/0.9013, allocations: 115.2 kB / 494.1 MB, free: 9.645 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001161/0.9025, allocations: 0.5243 MB / 494.7 MB, free: 9.059 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 7.354e-06/0.9025, allocations: 0 / 494.7 MB, free: 9.059 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007344/0.9033, allocations: 469 kB / 495.1 MB, free: 8.539 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001381/0.9047, allocations: 173.3 kB / 495.3 MB, free: 8.375 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/0.9073, allocations: 0.882 MB / 496.2 MB, free: 7.461 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008265/0.9082, allocations: 0.8223 MB / 497 MB, free: 6.613 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.684e-05/0.9082, allocations: 11.44 kB / 497 MB, free: 6.602 MB / 378.7 MB Notification: Performance of SimCode: time 1.382e-06/0.9083, allocations: 4 kB / 497 MB, free: 6.598 MB / 378.7 MB Notification: Performance of Templates: time 0.01573/0.924, allocations: 4.258 MB / 0.4895 GB, free: 2.227 MB / 378.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