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.001463/0.001463, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.993/1.993, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001118/0.001118, allocations: 90.41 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.138e-05/2.146e-05, allocations: 4 kB / 314.8 MB, free: 9.152 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3419/0.3419, allocations: 47.56 MB / 362.3 MB, free: 45.82 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.4755, allocations: 81.15 MB / 443.5 MB, free: 5.148 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002788/0.4758, allocations: 67.94 kB / 443.5 MB, free: 5.086 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.102/0.5778, allocations: 27.66 MB / 471.2 MB, free: 9.605 MB / 363.1 MB Notification: Performance of FrontEnd: time 1.462e-06/0.5778, allocations: 0 / 471.2 MB, free: 9.605 MB / 363.1 MB Notification: Performance of Transformations before backend: time 1.643e-05/0.5779, allocations: 4 kB / 471.2 MB, free: 9.602 MB / 363.1 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.000881/0.5788, allocations: 0.6736 MB / 471.9 MB, free: 8.852 MB / 363.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.154e-05/0.5788, allocations: 12.91 kB / 471.9 MB, free: 8.84 MB / 363.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001247/0.579, allocations: 39.53 kB / 471.9 MB, free: 8.801 MB / 363.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004989/0.5795, allocations: 283.5 kB / 472.2 MB, free: 8.48 MB / 363.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.796e-05/0.5795, allocations: 4 kB / 472.2 MB, free: 8.477 MB / 363.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.366e-05/0.5796, allocations: 8 kB / 472.2 MB, free: 8.469 MB / 363.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002417/0.5798, allocations: 75.97 kB / 472.3 MB, free: 8.395 MB / 363.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003859/0.5802, allocations: 157.5 kB / 472.4 MB, free: 8.234 MB / 363.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.5803, allocations: 4 kB / 472.4 MB, free: 8.23 MB / 363.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.025e-05/0.5803, allocations: 4 kB / 472.4 MB, free: 8.227 MB / 363.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.005e-06/0.5803, allocations: 5.594 kB / 472.5 MB, free: 8.223 MB / 363.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.5815, allocations: 477 kB / 472.9 MB, free: 7.719 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002744/0.5818, allocations: 118.5 kB / 473 MB, free: 7.594 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002284/0.5821, allocations: 96.91 kB / 473.1 MB, free: 7.496 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.849e-05/0.5821, allocations: 8 kB / 473.1 MB, free: 7.488 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004551/0.5826, allocations: 234.7 kB / 473.4 MB, free: 7.234 MB / 363.1 MB Notification: Performance of pre-optimization done (n=14): time 2.775e-06/0.5826, allocations: 0 / 473.4 MB, free: 7.234 MB / 363.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009956/0.5836, allocations: 357 kB / 473.7 MB, free: 6.879 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001355/0.5837, allocations: 195.9 kB / 473.9 MB, free: 6.645 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000976/0.5847, allocations: 488.9 kB / 474.4 MB, free: 6.156 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 5.37e-05/0.5848, allocations: 29.7 kB / 474.4 MB, free: 6.121 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001331/0.5849, allocations: 179.8 kB / 474.6 MB, free: 5.945 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.932e-05/0.585, allocations: 27.8 kB / 474.6 MB, free: 5.918 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.179e-05/0.5851, allocations: 4 kB / 474.6 MB, free: 5.914 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.5852, allocations: 326.8 kB / 474.9 MB, free: 5.586 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002041/0.5855, allocations: 71.98 kB / 475 MB, free: 5.516 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001924/0.5857, allocations: 79.91 kB / 475.1 MB, free: 5.438 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001788/0.5859, allocations: 65.97 kB / 475.2 MB, free: 5.379 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.5859, allocations: 0 / 475.2 MB, free: 5.379 MB / 363.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008496/0.5867, allocations: 321.5 kB / 475.5 MB, free: 5.059 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001382/0.5869, allocations: 148.5 kB / 475.6 MB, free: 4.883 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.532e-06/0.5869, allocations: 3.938 kB / 475.6 MB, free: 4.879 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.054e-05/0.5869, allocations: 8 kB / 475.6 MB, free: 4.871 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.605e-05/0.587, allocations: 3.984 kB / 475.6 MB, free: 4.867 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.587, allocations: 0 / 475.6 MB, free: 4.867 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/0.5873, allocations: 12 kB / 475.6 MB, free: 4.855 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001779/0.5875, allocations: 97.3 kB / 475.7 MB, free: 4.758 MB / 363.1 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.0002886/0.5878, allocations: 279.1 kB / 476 MB, free: 4.445 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.728e-05/0.5879, allocations: 47.44 kB / 476.1 MB, free: 4.398 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002283/0.5881, allocations: 71.75 kB / 476.1 MB, free: 4.324 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.5881, allocations: 4 kB / 476.1 MB, free: 4.32 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.078e-06/0.5882, allocations: 0 / 476.1 MB, free: 4.32 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.5882, allocations: 3.938 kB / 476.1 MB, free: 4.316 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001524/0.5897, allocations: 0.737 MB / 476.9 MB, free: 3.535 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.599e-06/0.5898, allocations: 0 / 476.9 MB, free: 3.535 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.294e-05/0.5898, allocations: 0 / 476.9 MB, free: 3.535 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.5898, allocations: 4 kB / 476.9 MB, free: 3.531 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.431e-05/0.5899, allocations: 15.98 kB / 476.9 MB, free: 3.516 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.5899, allocations: 4 kB / 476.9 MB, free: 3.512 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.5899, allocations: 4 kB / 476.9 MB, free: 3.508 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001024/0.5909, allocations: 482.8 kB / 477.4 MB, free: 3.02 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005975/0.5915, allocations: 260.3 kB / 477.6 MB, free: 2.746 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001021/0.5917, allocations: 10.81 kB / 477.6 MB, free: 2.738 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003117/0.592, allocations: 27.97 kB / 477.7 MB, free: 2.711 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000245/0.5922, allocations: 55.92 kB / 477.7 MB, free: 2.656 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001713/0.5924, allocations: 105.2 kB / 477.8 MB, free: 2.555 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0008201/0.5933, allocations: 398.7 kB / 478.2 MB, free: 2.168 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5933, allocations: 0 / 478.2 MB, free: 2.168 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0005145/0.5938, allocations: 48 kB / 478.3 MB, free: 2.121 MB / 363.1 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.0002186/0.594, allocations: 107.2 kB / 478.4 MB, free: 2.004 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.0008279/0.5949, allocations: 0.5126 MB / 478.9 MB, free: 1.43 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.5949, allocations: 0 / 478.9 MB, free: 1.43 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005561/0.5955, allocations: 457 kB / 479.3 MB, free: 0.9219 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001229/0.5967, allocations: 156.3 kB / 479.5 MB, free: 0.7734 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001796/0.5986, allocations: 0.638 MB / 480.1 MB, free: 108 kB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006972/0.5993, allocations: 0.83 MB / 480.9 MB, free: 15.25 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.036e-05/0.5994, allocations: 11.44 kB / 480.9 MB, free: 15.24 MB / 379.1 MB Notification: Performance of SimCode: time 1.202e-06/0.5994, allocations: 4 kB / 481 MB, free: 15.23 MB / 379.1 MB Notification: Performance of Templates: time 0.01023/0.6096, allocations: 4.208 MB / 485.2 MB, free: 10.94 MB / 379.1 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