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.001063/0.001063, allocations: 175.5 kB / 13.63 MB, free: 1.684 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.262/1.262, allocations: 221.4 MB / 235.5 MB, free: 2.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008885/0.0008885, allocations: 86.39 kB / 286.5 MB, free: 168 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.089e-05/2.091e-05, allocations: 4 kB / 343.8 MB, free: 4.309 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08456/0.0846, allocations: 50.42 MB / 394.2 MB, free: 1.844 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2872/0.3719, allocations: 82.71 MB / 476.9 MB, free: 4.82 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000201/0.3721, allocations: 75.78 kB / 477 MB, free: 4.75 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05608/0.4282, allocations: 28.21 MB / 0.4934 GB, free: 8.652 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4282, allocations: 0 / 0.4934 GB, free: 8.652 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.4283, allocations: 4 kB / 0.4934 GB, free: 8.648 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.0006315/0.4289, allocations: 0.6814 MB / 0.4941 GB, free: 7.891 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.251e-05/0.429, allocations: 12.03 kB / 0.4941 GB, free: 7.879 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.43e-05/0.429, allocations: 43.53 kB / 0.4941 GB, free: 7.836 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.4294, allocations: 277.3 kB / 0.4944 GB, free: 7.527 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.912e-05/0.4295, allocations: 8 kB / 0.4944 GB, free: 7.52 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.001e-05/0.4295, allocations: 8 kB / 0.4944 GB, free: 7.512 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000296/0.4298, allocations: 165.5 kB / 0.4945 GB, free: 7.344 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.284e-06/0.4298, allocations: 3.938 kB / 0.4945 GB, free: 7.34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.168e-05/0.4299, allocations: 8 kB / 0.4946 GB, free: 7.332 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.801e-06/0.4299, allocations: 0 / 0.4946 GB, free: 7.332 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001619/0.43, allocations: 87.91 kB / 0.4946 GB, free: 7.246 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007225/0.4308, allocations: 0.4926 MB / 0.4951 GB, free: 6.703 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001942/0.431, allocations: 122.5 kB / 0.4952 GB, free: 6.574 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.4311, allocations: 100.9 kB / 0.4953 GB, free: 6.473 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.314e-05/0.4312, allocations: 3.984 kB / 0.4953 GB, free: 6.469 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002919/0.4315, allocations: 238.7 kB / 0.4956 GB, free: 6.211 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.4315, allocations: 0 / 0.4956 GB, free: 6.211 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007275/0.4322, allocations: 0.5093 MB / 0.4961 GB, free: 5.664 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.452e-05/0.4323, allocations: 191.9 kB / 0.4962 GB, free: 5.434 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005969/0.4329, allocations: 0.4949 MB / 0.4967 GB, free: 4.93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.37e-05/0.433, allocations: 29.7 kB / 0.4968 GB, free: 4.895 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.808e-05/0.433, allocations: 117.1 kB / 0.4969 GB, free: 4.777 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.738e-05/0.4331, allocations: 39.58 kB / 0.4969 GB, free: 4.738 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.84e-05/0.4331, allocations: 4 kB / 0.4969 GB, free: 4.734 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.4332, allocations: 334.8 kB / 0.4972 GB, free: 4.398 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001358/0.4334, allocations: 79.97 kB / 0.4973 GB, free: 4.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001321/0.4335, allocations: 83.97 kB / 0.4974 GB, free: 4.238 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001802/0.4337, allocations: 200.5 kB / 0.4976 GB, free: 4.012 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.4337, allocations: 0 / 0.4976 GB, free: 4.012 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006121/0.4343, allocations: 485 kB / 0.498 GB, free: 3.504 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.428e-05/0.4344, allocations: 148.5 kB / 0.4982 GB, free: 3.328 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.4344, allocations: 4 kB / 0.4982 GB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.155e-05/0.4344, allocations: 0 / 0.4982 GB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.801e-05/0.4345, allocations: 0 / 0.4982 GB, free: 3.324 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.198e-06/0.4345, allocations: 11.92 kB / 0.4982 GB, free: 3.312 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001485/0.4346, allocations: 23.84 kB / 0.4982 GB, free: 3.289 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.4348, allocations: 105.2 kB / 0.4983 GB, free: 3.184 MB / 378.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.000185/0.4349, allocations: 271.2 kB / 0.4986 GB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.71e-05/0.435, allocations: 43.53 kB / 0.4986 GB, free: 2.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001102/0.4351, allocations: 71.77 kB / 0.4987 GB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.565e-06/0.4351, allocations: 64 / 0.4987 GB, free: 2.766 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.753e-06/0.4352, allocations: 4 kB / 0.4987 GB, free: 2.762 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.4352, allocations: 3.938 kB / 0.4987 GB, free: 2.758 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001041/0.4362, allocations: 0.94 MB / 0.4996 GB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.4362, allocations: 0 / 0.4996 GB, free: 1.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.46e-06/0.4362, allocations: 4 kB / 0.4996 GB, free: 1.727 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.449e-06/0.4363, allocations: 3.984 kB / 0.4996 GB, free: 1.723 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.453e-05/0.4363, allocations: 16 kB / 0.4996 GB, free: 1.707 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.4363, allocations: 4 kB / 0.4996 GB, free: 1.703 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.4363, allocations: 3.984 kB / 0.4996 GB, free: 1.699 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006973/0.437, allocations: 0.6205 MB / 0.5003 GB, free: 1.031 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000346/0.4374, allocations: 260.3 kB / 0.5005 GB, free: 0.7578 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.346e-05/0.4374, allocations: 12 kB / 0.5005 GB, free: 0.7461 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001626/0.4376, allocations: 15.98 kB / 0.5005 GB, free: 0.7305 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001398/0.4378, allocations: 51.94 kB / 0.5006 GB, free: 0.6797 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.771e-05/0.4379, allocations: 109.2 kB / 0.5007 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000468/0.4383, allocations: 416.9 kB / 0.5011 GB, free: 172 kB / 378.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.4383, allocations: 4 kB / 0.5011 GB, free: 168 kB / 378.7 MB Notification: Performance of remove unused functions: time 0.000278/0.4386, allocations: 48 kB / 0.5011 GB, free: 120 kB / 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) * 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.0001473/0.4388, allocations: 115.2 kB / 0.5012 GB, free: 15.99 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005178/0.4393, allocations: 0.5283 MB / 0.5018 GB, free: 15.4 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.074e-06/0.4393, allocations: 0 / 0.5018 GB, free: 15.4 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003644/0.4397, allocations: 460.9 kB / 0.5022 GB, free: 14.89 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000676/0.4404, allocations: 167.1 kB / 0.5024 GB, free: 14.73 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009261/0.4413, allocations: 0.602 MB / 0.5029 GB, free: 14.11 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004061/0.4417, allocations: 0.8266 MB / 0.5037 GB, free: 13.25 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 6.447e-05/0.4418, allocations: 20.45 kB / 0.5038 GB, free: 13.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.889e-05/0.4418, allocations: 15.44 kB / 0.5038 GB, free: 13.22 MB / 394.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4418, allocations: 0 / 0.5038 GB, free: 13.22 MB / 394.7 MB Notification: Performance of Templates: time 0.009069/0.4509, allocations: 6.583 MB / 0.5102 GB, free: 6.508 MB / 394.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/jenkins/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