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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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) 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001205, allocations: 95.47 kB / 16.3 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00131/0.00131, allocations: 182.9 kB / 17.2 MB, free: 5.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 223.2 MB / 241.1 MB, free: 5.449 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002737/0.0002737, allocations: 6.75 kB / 300.7 MB, free: 5.996 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1171/0.1174, allocations: 50.42 MB / 351.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001656/0.1191, allocations: 1.237 MB / 352.4 MB, free: 10.48 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001653/0.1208, allocations: 0.824 MB / 353.2 MB, free: 9.656 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.946e-05/0.1208, allocations: 0 / 353.2 MB, free: 9.656 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 7.611e-05/0.1209, allocations: 7.922 kB / 353.2 MB, free: 9.648 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.766e-05/0.121, allocations: 23.92 kB / 353.2 MB, free: 9.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002532/0.1213, allocations: 39.88 kB / 353.3 MB, free: 9.586 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001381/0.1214, allocations: 83.84 kB / 353.4 MB, free: 9.504 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001267/0.1216, allocations: 21.66 kB / 353.4 MB, free: 9.477 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00053/0.1221, allocations: 479.2 kB / 353.8 MB, free: 9.008 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001534/0.1223, allocations: 107.7 kB / 353.9 MB, free: 8.902 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.557e-05/0.1223, allocations: 8 kB / 354 MB, free: 8.895 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.298e-05/0.1224, allocations: 4 kB / 354 MB, free: 8.891 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.481e-05/0.1224, allocations: 71.75 kB / 354 MB, free: 8.82 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.297e-05/0.1225, allocations: 77.52 kB / 354.1 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003045/0.1228, allocations: 367.1 kB / 354.5 MB, free: 8.379 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1229, allocations: 0 / 354.5 MB, free: 8.379 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.835e-06/0.1229, allocations: 0 / 354.5 MB, free: 8.379 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.095e-05/0.1229, allocations: 0 / 354.5 MB, free: 8.379 MB / 286.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.0007065/0.1236, allocations: 0.7321 MB / 355.2 MB, free: 7.566 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.1236, allocations: 12.03 kB / 355.2 MB, free: 7.555 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.866e-05/0.1237, allocations: 43.53 kB / 355.2 MB, free: 7.512 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003287/0.1241, allocations: 281.2 kB / 355.5 MB, free: 7.195 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.572e-05/0.1241, allocations: 8 kB / 355.5 MB, free: 7.188 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.1241, allocations: 12 kB / 355.5 MB, free: 7.176 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003566/0.1245, allocations: 165.5 kB / 355.7 MB, free: 7.008 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.111e-05/0.1245, allocations: 0 / 355.7 MB, free: 7.008 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.061e-05/0.1245, allocations: 11.89 kB / 355.7 MB, free: 6.996 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.1246, allocations: 4 kB / 355.7 MB, free: 6.992 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001653/0.1247, allocations: 87.89 kB / 355.8 MB, free: 6.906 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007839/0.1255, allocations: 0.4888 MB / 356.3 MB, free: 6.367 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002176/0.1258, allocations: 130.4 kB / 356.4 MB, free: 6.23 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.099e-05/0.1258, allocations: 0 / 356.4 MB, free: 6.23 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003995/0.1262, allocations: 242.7 kB / 356.7 MB, free: 5.969 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.1262, allocations: 0 / 356.7 MB, free: 5.969 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.00104/0.1272, allocations: 0.7762 MB / 357.4 MB, free: 5.121 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.1274, allocations: 199.9 kB / 357.6 MB, free: 4.883 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007002/0.1281, allocations: 0.5601 MB / 358.2 MB, free: 4.312 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.899e-05/0.1281, allocations: 29.7 kB / 358.2 MB, free: 4.277 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.987e-05/0.1282, allocations: 117.1 kB / 358.3 MB, free: 4.16 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.972e-05/0.1283, allocations: 31.7 kB / 358.4 MB, free: 4.129 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.146e-05/0.1283, allocations: 8 kB / 358.4 MB, free: 4.121 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.1285, allocations: 326.8 kB / 358.7 MB, free: 3.793 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001458/0.1286, allocations: 79.95 kB / 358.8 MB, free: 3.715 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001614/0.1288, allocations: 101.7 kB / 358.9 MB, free: 3.609 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002058/0.129, allocations: 218.5 kB / 359.1 MB, free: 3.367 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.129, allocations: 0 / 359.1 MB, free: 3.367 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.00061/0.1296, allocations: 0.5018 MB / 359.6 MB, free: 2.828 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.785e-05/0.1297, allocations: 152.5 kB / 359.7 MB, free: 2.648 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.013e-06/0.1297, allocations: 112 / 359.7 MB, free: 2.648 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.276e-05/0.1297, allocations: 3.938 kB / 359.7 MB, free: 2.645 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.456e-05/0.1298, allocations: 3.938 kB / 359.7 MB, free: 2.641 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.716e-06/0.1298, allocations: 7.984 kB / 359.7 MB, free: 2.633 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001796/0.13, allocations: 20 kB / 359.8 MB, free: 2.613 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001073/0.1301, allocations: 101.3 kB / 359.9 MB, free: 2.512 MB / 286.1 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.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,Select.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.0003451/0.1304, allocations: 392.1 kB / 360.3 MB, free: 2.09 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.826e-05/0.1305, allocations: 59.39 kB / 360.3 MB, free: 2.031 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.1306, allocations: 67.48 kB / 360.4 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.1306, allocations: 0 / 360.4 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.1306, allocations: 0 / 360.4 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.565e-06/0.1306, allocations: 0 / 360.4 MB, free: 1.961 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001053/0.1317, allocations: 0.9595 MB / 361.3 MB, free: 0.9141 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.1317, allocations: 3.938 kB / 361.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.488e-06/0.1317, allocations: 0 / 361.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.1317, allocations: 4 kB / 361.3 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.314e-05/0.1318, allocations: 19.98 kB / 361.4 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.1318, allocations: 4 kB / 361.4 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.295e-06/0.1318, allocations: 3.984 kB / 361.4 MB, free: 0.8789 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007249/0.1325, allocations: 0.6595 MB / 362 MB, free: 176 kB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003584/0.1329, allocations: 256.4 kB / 362.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.626e-05/0.133, allocations: 12 kB / 362.3 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001562/0.1331, allocations: 19.89 kB / 362.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.1333, allocations: 55.94 kB / 362.4 MB, free: 15.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.792e-05/0.1334, allocations: 101.2 kB / 362.5 MB, free: 15.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005023/0.1339, allocations: 422.8 kB / 362.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.1339, allocations: 3.938 kB / 362.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000311/0.1342, allocations: 52 kB / 362.9 MB, free: 15.25 MB / 302.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.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,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,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.0001533/0.1344, allocations: 119.1 kB / 363 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005852/0.135, allocations: 0.5362 MB / 363.6 MB, free: 14.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.135, allocations: 4.062 kB / 363.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003836/0.1354, allocations: 468.9 kB / 364 MB, free: 14 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006937/0.1361, allocations: 159.1 kB / 364.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001223/0.1373, allocations: 0.8374 MB / 365 MB, free: 12.99 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004386/0.1378, allocations: 0.8302 MB / 365.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.522e-05/0.1378, allocations: 12.88 kB / 365.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.298e-05/0.1379, allocations: 11.44 kB / 365.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1379, allocations: 0 / 365.9 MB, free: 12.11 MB / 302.1 MB Notification: Performance of Templates: time 0.009835/0.1477, allocations: 6.577 MB / 372.5 MB, free: 5.418 MB / 302.1 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