Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001143/0.001143, allocations: 191.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.5 MB / 244.7 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007655/0.0007655, allocations: 102 kB / 296.7 MB, free: 6.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002161/0.0002161, allocations: 8 kB / 356.8 MB, free: 10.83 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1842/0.1844, allocations: 51.29 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001116/0.1856, allocations: 1.252 MB / 409.4 MB, free: 26.45 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1868, allocations: 0.8437 MB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.072e-05/0.1869, allocations: 2.094 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 6.362e-05/0.187, allocations: 11.92 kB / 410.2 MB, free: 25.59 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.024e-05/0.187, allocations: 11.88 kB / 410.3 MB, free: 25.58 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001837/0.1872, allocations: 43.94 kB / 410.3 MB, free: 25.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.797e-05/0.1873, allocations: 128.2 kB / 410.4 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.534e-05/0.1874, allocations: 23.92 kB / 410.4 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004221/0.1879, allocations: 0.5615 MB / 411 MB, free: 24.82 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.388e-05/0.188, allocations: 99.81 kB / 411.1 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.388e-05/0.188, allocations: 8.641 kB / 411.1 MB, free: 24.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.355e-05/0.188, allocations: 4 kB / 411.1 MB, free: 24.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.783e-05/0.1881, allocations: 72.73 kB / 411.2 MB, free: 24.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.773e-05/0.1882, allocations: 148.9 kB / 411.3 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.1884, allocations: 369.4 kB / 411.7 MB, free: 24.13 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1884, allocations: 0 / 411.7 MB, free: 24.13 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.372e-06/0.1884, allocations: 0 / 411.7 MB, free: 24.13 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.1884, allocations: 0 / 411.7 MB, free: 24.13 MB / 298.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.0004347/0.1889, allocations: 0.7296 MB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.245e-05/0.1889, allocations: 8.031 kB / 412.4 MB, free: 23.32 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.574e-05/0.189, allocations: 46 kB / 412.5 MB, free: 23.27 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.237e-05/0.189, allocations: 40.47 kB / 412.5 MB, free: 23.23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001905/0.1892, allocations: 294.1 kB / 412.8 MB, free: 22.9 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.1892, allocations: 12.38 kB / 412.8 MB, free: 22.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.81e-05/0.1893, allocations: 8.375 kB / 412.8 MB, free: 22.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.1895, allocations: 174.5 kB / 413 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.1896, allocations: 0 / 413 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.1896, allocations: 11.98 kB / 413 MB, free: 22.69 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.907e-06/0.1896, allocations: 7.984 kB / 413 MB, free: 22.68 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001382/0.1898, allocations: 83.95 kB / 413.1 MB, free: 22.6 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005004/0.1903, allocations: 0.5003 MB / 413.6 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001687/0.1904, allocations: 130.5 kB / 413.7 MB, free: 21.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001377/0.1906, allocations: 108.9 kB / 413.8 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.347e-06/0.1906, allocations: 8 kB / 413.8 MB, free: 21.8 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000273/0.1909, allocations: 246.6 kB / 414.1 MB, free: 21.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.373e-06/0.1909, allocations: 0 / 414.1 MB, free: 21.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007243/0.1916, allocations: 0.6031 MB / 414.7 MB, free: 20.89 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/0.1917, allocations: 195.9 kB / 414.9 MB, free: 20.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004754/0.1922, allocations: 0.5639 MB / 415.4 MB, free: 20.08 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.563e-05/0.1922, allocations: 33.7 kB / 415.5 MB, free: 20.04 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.272e-05/0.1922, allocations: 113.1 kB / 415.6 MB, free: 19.93 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.363e-05/0.1923, allocations: 35.55 kB / 415.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.02e-05/0.1923, allocations: 4 kB / 415.6 MB, free: 19.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.302e-05/0.1924, allocations: 334.8 kB / 415.9 MB, free: 19.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.1925, allocations: 75.97 kB / 416 MB, free: 19.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001271/0.1926, allocations: 101.7 kB / 416.1 MB, free: 19.38 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.1929, allocations: 441.7 kB / 416.5 MB, free: 18.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1929, allocations: 0 / 416.5 MB, free: 18.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004852/0.1934, allocations: 0.498 MB / 417 MB, free: 18.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.736e-05/0.1935, allocations: 152.5 kB / 417.2 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.1935, allocations: 0 / 417.2 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.001e-05/0.1935, allocations: 4 kB / 417.2 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.435e-05/0.1935, allocations: 0 / 417.2 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.1935, allocations: 3.938 kB / 417.2 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000148/0.1937, allocations: 20.02 kB / 417.2 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.701e-05/0.1937, allocations: 101.3 kB / 417.3 MB, free: 18.04 MB / 298.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.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.0002435/0.194, allocations: 400 kB / 417.7 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.112e-05/0.194, allocations: 43.47 kB / 417.8 MB, free: 17.56 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.992e-05/0.1941, allocations: 79.45 kB / 417.8 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.462e-06/0.1941, allocations: 0 / 417.8 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.1941, allocations: 4 kB / 417.8 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.1942, allocations: 0 / 417.8 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007896/0.1949, allocations: 0.971 MB / 418.8 MB, free: 16.42 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.195, allocations: 0 / 418.8 MB, free: 16.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.867e-06/0.195, allocations: 0 / 418.8 MB, free: 16.42 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.195, allocations: 0 / 418.8 MB, free: 16.42 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.969e-05/0.195, allocations: 19.98 kB / 418.8 MB, free: 16.4 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.195, allocations: 3.938 kB / 418.8 MB, free: 16.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.195, allocations: 0 / 418.8 MB, free: 16.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005708/0.1956, allocations: 0.6568 MB / 419.5 MB, free: 15.69 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000234/0.1958, allocations: 256.4 kB / 419.7 MB, free: 15.42 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.551e-05/0.1959, allocations: 12 kB / 419.7 MB, free: 15.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.196, allocations: 20.11 kB / 419.8 MB, free: 15.39 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000116/0.1962, allocations: 55.92 kB / 419.8 MB, free: 15.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.041e-05/0.1963, allocations: 113.2 kB / 419.9 MB, free: 15.23 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003529/0.1966, allocations: 422.8 kB / 420.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1966, allocations: 0 / 420.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002614/0.1969, allocations: 51.94 kB / 420.4 MB, free: 14.77 MB / 298.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.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.0007185/0.1976, allocations: 1.228 MB / 421.6 MB, free: 13.48 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004026/0.198, allocations: 0.536 MB / 422.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.198, allocations: 0 / 422.2 MB, free: 12.88 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002454/0.1983, allocations: 457 kB / 422.6 MB, free: 12.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007033/0.199, allocations: 171.3 kB / 422.8 MB, free: 12.21 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002108/0.2011, allocations: 1.95 MB / 424.7 MB, free: 10.21 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002242/0.2014, allocations: 0.8186 MB / 425.5 MB, free: 9.363 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.218e-05/0.2014, allocations: 39.42 kB / 425.6 MB, free: 9.324 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2014, allocations: 3.938 kB / 425.6 MB, free: 9.32 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.371/3.572, allocations: 3.458 MB / 429 MB, free: 5.859 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches