Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009324/0.0009324, allocations: 174 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.303/1.303, allocations: 205.4 MB / 222.9 MB, free: 9.016 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007476/0.0007476, allocations: 86.41 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002843/0.0002843, allocations: 12 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2153/0.2156, allocations: 47.57 MB / 375.2 MB, free: 45.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001352/0.217, allocations: 1.246 MB / 376.4 MB, free: 44.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00141/0.2184, allocations: 0.8606 MB / 377.3 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.542e-05/0.2185, allocations: 0.9062 kB / 377.3 MB, free: 43.78 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.397e-05/0.2186, allocations: 10.05 kB / 377.3 MB, free: 43.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.739e-05/0.2186, allocations: 21.25 kB / 377.3 MB, free: 43.75 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000194/0.2188, allocations: 33.12 kB / 377.4 MB, free: 43.73 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001249/0.219, allocations: 120.8 kB / 377.5 MB, free: 43.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.392e-05/0.2191, allocations: 31.88 kB / 377.5 MB, free: 43.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000563/0.2196, allocations: 0.5621 MB / 378.1 MB, free: 43.42 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001248/0.2198, allocations: 97.84 kB / 378.2 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.674e-05/0.2198, allocations: 7.75 kB / 378.2 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.51e-05/0.2199, allocations: 4.281 kB / 378.2 MB, free: 43.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.993e-05/0.22, allocations: 73.45 kB / 378.2 MB, free: 43.35 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001149/0.2201, allocations: 149.9 kB / 378.4 MB, free: 43.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002317/0.2203, allocations: 364 kB / 378.7 MB, free: 42.96 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.699e-06/0.2203, allocations: 0 / 378.7 MB, free: 42.96 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2203, allocations: 1.156 kB / 378.7 MB, free: 42.96 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.02e-06/0.2203, allocations: 4 kB / 378.8 MB, free: 42.96 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.0004917/0.2208, allocations: 0.7331 MB / 379.5 MB, free: 42.22 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.73e-05/0.2209, allocations: 10.44 kB / 379.5 MB, free: 42.22 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.077e-05/0.2209, allocations: 39.97 kB / 379.5 MB, free: 42.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.947e-05/0.221, allocations: 41.47 kB / 379.6 MB, free: 42.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002117/0.2212, allocations: 302.7 kB / 379.9 MB, free: 41.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.989e-05/0.2212, allocations: 6.188 kB / 379.9 MB, free: 41.87 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.444e-05/0.2213, allocations: 13.03 kB / 379.9 MB, free: 41.86 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000304/0.2216, allocations: 173.1 kB / 380.1 MB, free: 41.76 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.2216, allocations: 4 kB / 380.1 MB, free: 41.76 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.701e-05/0.2216, allocations: 4.281 kB / 380.1 MB, free: 41.76 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2217, allocations: 1.219 kB / 380.1 MB, free: 41.76 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001566/0.2218, allocations: 82.55 kB / 380.1 MB, free: 41.73 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00056/0.2224, allocations: 0.5005 MB / 380.6 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001858/0.2226, allocations: 121.9 kB / 380.8 MB, free: 41.22 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001521/0.2227, allocations: 110.8 kB / 380.9 MB, free: 41.16 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.847e-06/0.2228, allocations: 1.188 kB / 380.9 MB, free: 41.16 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003045/0.2231, allocations: 246.2 kB / 381.1 MB, free: 40.98 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.333e-06/0.2231, allocations: 0 / 381.1 MB, free: 40.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0008349/0.2239, allocations: 0.611 MB / 381.7 MB, free: 40.62 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.091e-05/0.224, allocations: 200.3 kB / 381.9 MB, free: 40.39 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005665/0.2246, allocations: 0.5656 MB / 382.5 MB, free: 40.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.624e-05/0.2246, allocations: 29.86 kB / 382.5 MB, free: 39.99 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.237e-05/0.2246, allocations: 116.5 kB / 382.6 MB, free: 39.88 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.564e-05/0.2247, allocations: 27.03 kB / 382.7 MB, free: 39.86 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.224e-05/0.2247, allocations: 3.656 kB / 382.7 MB, free: 39.86 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.05e-05/0.2248, allocations: 336.3 kB / 383 MB, free: 39.53 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001451/0.2249, allocations: 75.47 kB / 383.1 MB, free: 39.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.2251, allocations: 109.1 kB / 383.2 MB, free: 39.45 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003042/0.2254, allocations: 429.6 kB / 383.6 MB, free: 39.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.2254, allocations: 0 / 383.6 MB, free: 39.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005664/0.226, allocations: 0.5023 MB / 384.1 MB, free: 38.74 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.305e-05/0.226, allocations: 160.1 kB / 384.3 MB, free: 38.56 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.707e-06/0.226, allocations: 1.125 kB / 384.3 MB, free: 38.56 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.432e-05/0.2261, allocations: 1.031 kB / 384.3 MB, free: 38.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.436e-05/0.2261, allocations: 4.969 kB / 384.3 MB, free: 38.56 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.229e-06/0.2261, allocations: 5.125 kB / 384.3 MB, free: 38.55 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001513/0.2262, allocations: 16.61 kB / 384.3 MB, free: 38.55 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001103/0.2264, allocations: 103.7 kB / 384.4 MB, free: 38.54 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.0002781/0.2267, allocations: 408.8 kB / 384.8 MB, free: 38.17 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.801e-05/0.2267, allocations: 42.53 kB / 384.8 MB, free: 38.15 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001025/0.2268, allocations: 70.91 kB / 384.9 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.2268, allocations: 1.125 kB / 384.9 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.928e-06/0.2268, allocations: 4 kB / 384.9 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.2269, allocations: 1.344 kB / 384.9 MB, free: 38.1 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009451/0.2278, allocations: 0.9556 MB / 385.9 MB, free: 37.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2278, allocations: 0 / 385.9 MB, free: 37.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.699e-06/0.2278, allocations: 1 kB / 385.9 MB, free: 37.37 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.2278, allocations: 0 / 385.9 MB, free: 37.37 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.568e-05/0.2279, allocations: 24.14 kB / 385.9 MB, free: 37.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.2279, allocations: 3.938 kB / 385.9 MB, free: 37.36 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.2279, allocations: 0 / 385.9 MB, free: 37.36 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005701/0.2285, allocations: 0.6731 MB / 386.6 MB, free: 36.67 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002388/0.2287, allocations: 252.4 kB / 386.8 MB, free: 36.4 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.486e-05/0.2288, allocations: 16.17 kB / 386.8 MB, free: 36.39 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001466/0.2289, allocations: 23.88 kB / 386.8 MB, free: 36.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001154/0.2291, allocations: 55.92 kB / 386.9 MB, free: 36.31 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.925e-05/0.2291, allocations: 97.23 kB / 387 MB, free: 36.21 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003523/0.2295, allocations: 426.8 kB / 387.4 MB, free: 35.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2295, allocations: 0 / 387.4 MB, free: 35.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002591/0.2298, allocations: 48 kB / 387.5 MB, free: 35.75 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.0007553/0.2305, allocations: 1.22 MB / 388.7 MB, free: 34.47 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004043/0.2309, allocations: 0.536 MB / 389.2 MB, free: 33.88 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.231, allocations: 8.062 kB / 389.2 MB, free: 33.87 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000251/0.2312, allocations: 464.9 kB / 389.7 MB, free: 33.35 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006987/0.2319, allocations: 158 kB / 389.8 MB, free: 33.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002126/0.2341, allocations: 1.958 MB / 391.8 MB, free: 31.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002407/0.2343, allocations: 0.8147 MB / 392.6 MB, free: 30.35 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.275e-05/0.2344, allocations: 43.42 kB / 392.6 MB, free: 30.3 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2344, allocations: 7.875 kB / 392.6 MB, free: 30.3 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.059/4.293, allocations: 3.457 MB / 396.1 MB, free: 26.83 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches