Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001103/0.001103, allocations: 104.9 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.4 MB / 246.3 MB, free: 9.078 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001136/0.001137, allocations: 60.47 kB / 306.3 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08914/0.09029, allocations: 50.53 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002994/0.09333, allocations: 1.623 MB / 358.5 MB, free: 12.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001857/0.09521, allocations: 0.924 MB / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.413e-05/0.09531, allocations: 0 / 359.4 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001018/0.09542, allocations: 11.92 kB / 359.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.328e-05/0.09551, allocations: 19.88 kB / 359.5 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002512/0.09577, allocations: 55.88 kB / 359.5 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001535/0.09593, allocations: 127.7 kB / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.09605, allocations: 21.39 kB / 359.7 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006041/0.09666, allocations: 0.6239 MB / 360.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001314/0.09681, allocations: 95.61 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.895e-05/0.09687, allocations: 4 kB / 360.4 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.107e-05/0.09692, allocations: 8 kB / 360.4 MB, free: 10.67 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.701e-05/0.09702, allocations: 83.61 kB / 360.5 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001325/0.09716, allocations: 131 kB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003652/0.09753, allocations: 438.4 kB / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.09754, allocations: 0 / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.09755, allocations: 0 / 361 MB, free: 10.03 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.09756, allocations: 4 kB / 361 MB, free: 10.03 MB / 302.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.0009097/0.09848, allocations: 0.8201 MB / 361.8 MB, free: 9.129 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.03e-05/0.09852, allocations: 8.031 kB / 361.9 MB, free: 9.121 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.014e-05/0.09859, allocations: 46.75 kB / 361.9 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.514e-05/0.09868, allocations: 40.47 kB / 361.9 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003388/0.09903, allocations: 298.1 kB / 362.2 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.161e-05/0.09906, allocations: 12.31 kB / 362.2 MB, free: 8.684 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.549e-05/0.0991, allocations: 12.38 kB / 362.3 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000349/0.09946, allocations: 169.7 kB / 362.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.09948, allocations: 0 / 362.4 MB, free: 8.5 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.732e-05/0.09951, allocations: 4 kB / 362.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.688e-06/0.09952, allocations: 0 / 362.4 MB, free: 8.496 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001679/0.09969, allocations: 83.95 kB / 362.5 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007006/0.1004, allocations: 0.5042 MB / 363 MB, free: 7.859 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002009/0.1006, allocations: 118.5 kB / 363.1 MB, free: 7.734 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001802/0.1008, allocations: 112.9 kB / 363.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.166e-05/0.1008, allocations: 8 kB / 363.2 MB, free: 7.613 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000365/0.1012, allocations: 242.6 kB / 363.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.1012, allocations: 0 / 363.5 MB, free: 7.352 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009258/0.1021, allocations: 0.6109 MB / 364.1 MB, free: 6.703 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.349e-05/0.1022, allocations: 191.9 kB / 364.3 MB, free: 6.473 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006276/0.1029, allocations: 0.5678 MB / 364.9 MB, free: 5.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.247e-05/0.1029, allocations: 33.64 kB / 364.9 MB, free: 5.859 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.951e-05/0.103, allocations: 125.1 kB / 365 MB, free: 5.734 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.634e-05/0.103, allocations: 35.59 kB / 365 MB, free: 5.699 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.1032, allocations: 97.41 kB / 365.1 MB, free: 5.598 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1033, allocations: 330.8 kB / 365.5 MB, free: 5.266 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001552/0.1035, allocations: 79.95 kB / 365.5 MB, free: 5.188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.1036, allocations: 97.67 kB / 365.6 MB, free: 5.086 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004227/0.1041, allocations: 444.7 kB / 366.1 MB, free: 4.586 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.1041, allocations: 0 / 366.1 MB, free: 4.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006466/0.1047, allocations: 0.498 MB / 366.6 MB, free: 4.051 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.393e-05/0.1048, allocations: 152.5 kB / 366.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.582e-06/0.1048, allocations: 112 / 366.7 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.154e-05/0.1048, allocations: 7.938 kB / 366.7 MB, free: 3.863 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.901e-05/0.1049, allocations: 7.922 kB / 366.7 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.1049, allocations: 0 / 366.7 MB, free: 3.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001561/0.105, allocations: 12 kB / 366.7 MB, free: 3.844 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.533e-05/0.1051, allocations: 97.23 kB / 366.8 MB, free: 3.75 MB / 302.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,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000336/0.1055, allocations: 404 kB / 367.2 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.15e-05/0.1056, allocations: 47.44 kB / 367.3 MB, free: 3.266 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001002/0.1057, allocations: 71.47 kB / 367.3 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.1057, allocations: 0 / 367.3 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1057, allocations: 0 / 367.3 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.1057, allocations: 0 / 367.3 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001028/0.1067, allocations: 0.9748 MB / 368.3 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.1067, allocations: 3.938 kB / 368.3 MB, free: 2.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.218e-06/0.1067, allocations: 4 kB / 368.3 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1067, allocations: 0 / 368.3 MB, free: 2.125 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.295e-05/0.1068, allocations: 23.98 kB / 368.4 MB, free: 2.102 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1068, allocations: 3.938 kB / 368.4 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.1068, allocations: 0 / 368.4 MB, free: 2.098 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007691/0.1076, allocations: 0.6557 MB / 369 MB, free: 1.395 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002959/0.1079, allocations: 256.4 kB / 369.3 MB, free: 1.125 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.891e-05/0.108, allocations: 12 kB / 369.3 MB, free: 1.113 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001614/0.1081, allocations: 27.83 kB / 369.3 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.1083, allocations: 55.88 kB / 369.4 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.277e-05/0.1084, allocations: 101.2 kB / 369.5 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004553/0.1088, allocations: 426.8 kB / 369.9 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1088, allocations: 0 / 369.9 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002952/0.1091, allocations: 48 kB / 369.9 MB, free: 476 kB / 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.1603/0.2695, allocations: 1.213 MB / 371.1 MB, free: 19.97 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00062/0.2702, allocations: 0.537 MB / 371.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2702, allocations: 0.9375 kB / 371.7 MB, free: 19.66 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000356/0.2705, allocations: 465 kB / 372.1 MB, free: 19.35 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008438/0.2714, allocations: 174 kB / 372.3 MB, free: 19.34 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004297/0.2757, allocations: 3.301 MB / 375.6 MB, free: 17.45 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004548/0.2762, allocations: 0.8191 MB / 376.4 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001163/0.2763, allocations: 15.88 kB / 376.4 MB, free: 16.71 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.11e-05/0.2764, allocations: 43.78 kB / 376.5 MB, free: 16.68 MB / 302.1 MB Notification: Performance of SimCode: time 9.31e-07/0.2764, allocations: 0 / 376.5 MB, free: 16.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02134/0.2977, allocations: 8.608 MB / 385.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001751/0.2979, allocations: 195.3 kB / 385.3 MB, free: 14.2 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.93/2.228, allocations: 0 / 385.3 MB, free: 14.2 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches