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.001133/0.001133, allocations: 181 kB / 16.39 MB, free: 5.762 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.365/1.365, allocations: 223.2 MB / 240.3 MB, free: 11.87 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008936/0.0008938, allocations: 100 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002706/0.0002706, allocations: 11.94 kB / 351.1 MB, free: 15.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2648/0.2651, allocations: 50.42 MB / 401.5 MB, free: 32.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1071/0.3723, allocations: 82.78 MB / 484.3 MB, free: 13.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002755/0.3726, allocations: 67.97 kB / 484.3 MB, free: 13.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05206/0.4247, allocations: 28 MB / 0.5003 GB, free: 1.781 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.4247, allocations: 4 kB / 0.5003 GB, free: 1.777 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.4248, allocations: 4 kB / 0.5003 GB, free: 1.773 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.0007682/0.4255, allocations: 0.7399 MB / 0.5011 GB, free: 0.9531 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.4256, allocations: 11.97 kB / 0.5011 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001182/0.4257, allocations: 47.44 kB / 0.5011 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.4261, allocations: 265.4 kB / 0.5014 GB, free: 0.5938 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.284e-05/0.4261, allocations: 4 kB / 0.5014 GB, free: 0.5898 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.49e-05/0.4262, allocations: 16 kB / 0.5014 GB, free: 0.5742 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003281/0.4265, allocations: 177.4 kB / 0.5016 GB, free: 404 kB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.616e-06/0.4265, allocations: 0 / 0.5016 GB, free: 404 kB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.647e-05/0.4266, allocations: 4 kB / 0.5016 GB, free: 400 kB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.518e-06/0.4266, allocations: 8 kB / 0.5016 GB, free: 392 kB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000168/0.4267, allocations: 91.88 kB / 0.5017 GB, free: 300 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2047/0.6314, allocations: 496.8 kB / 0.5021 GB, free: 97.08 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003029/0.6318, allocations: 122.5 kB / 0.5023 GB, free: 97.06 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.6318, allocations: 0.9688 kB / 0.5023 GB, free: 97.06 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004323/0.6322, allocations: 241.7 kB / 0.5025 GB, free: 96.95 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 2.395e-06/0.6323, allocations: 1.656 kB / 0.5025 GB, free: 96.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=14): time 0.001186/0.6334, allocations: 0.7472 MB / 0.5032 GB, free: 96.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.35e-05/0.6335, allocations: 197.4 kB / 0.5034 GB, free: 96.35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006532/0.6342, allocations: 0.4981 MB / 0.5039 GB, free: 96.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.321e-05/0.6342, allocations: 32.64 kB / 0.5039 GB, free: 96.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.99e-05/0.6343, allocations: 115 kB / 0.504 GB, free: 96.05 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.553e-05/0.6344, allocations: 25.72 kB / 0.5041 GB, free: 96.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.36e-05/0.6344, allocations: 4.797 kB / 0.5041 GB, free: 96.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.329e-05/0.6345, allocations: 328.2 kB / 0.5044 GB, free: 95.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001622/0.6346, allocations: 81.28 kB / 0.5045 GB, free: 95.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000154/0.6348, allocations: 107.2 kB / 0.5046 GB, free: 95.71 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001908/0.635, allocations: 216.4 kB / 0.5048 GB, free: 95.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.635, allocations: 0.6562 kB / 0.5048 GB, free: 95.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006267/0.6356, allocations: 488.7 kB / 0.5052 GB, free: 95.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.151e-05/0.6357, allocations: 153.3 kB / 0.5054 GB, free: 95.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.6357, allocations: 0 / 0.5054 GB, free: 95.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/0.6357, allocations: 1.5 kB / 0.5054 GB, free: 95.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.302e-05/0.6358, allocations: 5.469 kB / 0.5054 GB, free: 95.2 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.875e-06/0.6358, allocations: 3.953 kB / 0.5054 GB, free: 95.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001632/0.636, allocations: 18.95 kB / 0.5054 GB, free: 95.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.6361, allocations: 102.8 kB / 0.5055 GB, free: 95.2 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.000329/0.6364, allocations: 400.6 kB / 0.5059 GB, free: 94.9 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.872e-05/0.6365, allocations: 44.98 kB / 0.5059 GB, free: 94.88 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001144/0.6366, allocations: 66.75 kB / 0.506 GB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.938e-06/0.6366, allocations: 1.062 kB / 0.506 GB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.6366, allocations: 7.234 kB / 0.506 GB, free: 94.85 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.6367, allocations: 5.609 kB / 0.506 GB, free: 94.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001183/0.6378, allocations: 0.936 MB / 0.5069 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.6379, allocations: 0 / 0.5069 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.56e-06/0.6379, allocations: 0 / 0.5069 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.6379, allocations: 1.438 kB / 0.5069 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.042e-05/0.6379, allocations: 24.7 kB / 0.5069 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.494e-06/0.6379, allocations: 3.953 kB / 0.5069 GB, free: 94.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.6379, allocations: 6.031 kB / 0.507 GB, free: 94.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008486/0.6388, allocations: 0.6299 MB / 0.5076 GB, free: 94.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003224/0.6391, allocations: 259.4 kB / 0.5078 GB, free: 93.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.742e-05/0.6392, allocations: 12.41 kB / 0.5078 GB, free: 93.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001468/0.6393, allocations: 17.08 kB / 0.5078 GB, free: 93.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.6395, allocations: 59.28 kB / 0.5079 GB, free: 93.9 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.639e-05/0.6396, allocations: 107.7 kB / 0.508 GB, free: 93.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003853/0.64, allocations: 420.7 kB / 0.5084 GB, free: 93.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.64, allocations: 0 / 0.5084 GB, free: 93.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002765/0.6402, allocations: 47.25 kB / 0.5085 GB, free: 93.75 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.0001153/0.6404, allocations: 118.3 kB / 0.5086 GB, free: 93.66 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004561/0.6408, allocations: 0.5349 MB / 0.5091 GB, free: 93.35 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.6408, allocations: 3.469 kB / 0.5091 GB, free: 93.35 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002641/0.6411, allocations: 459.8 kB / 0.5095 GB, free: 93.04 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000601/0.6417, allocations: 158.2 kB / 0.5097 GB, free: 93.03 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009995/0.6427, allocations: 0.8385 MB / 0.5105 GB, free: 92.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002663/0.643, allocations: 0.8255 MB / 0.5113 GB, free: 91.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 5.708e-05/0.6431, allocations: 11.36 kB / 0.5113 GB, free: 91.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.222e-05/0.6431, allocations: 19.31 kB / 0.5113 GB, free: 91.86 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.6431, allocations: 0 / 0.5113 GB, free: 91.86 MB / 378.7 MB Notification: Performance of Templates: time 0.007597/0.6507, allocations: 6.583 MB / 0.5178 GB, free: 91.17 MB / 378.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