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.001805/0.001805, allocations: 188.2 kB / 16.4 MB, free: 5.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.176/2.176, allocations: 205.4 MB / 222.5 MB, free: 13.77 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.001758/0.001758, allocations: 94.8 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006548/0.0006549, allocations: 12 kB / 327.1 MB, free: 15 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1277, allocations: 47.58 MB / 374.6 MB, free: 15.33 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002368/0.1301, allocations: 1.239 MB / 375.9 MB, free: 14.08 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002972/0.1332, allocations: 0.8601 MB / 376.7 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.087e-05/0.1333, allocations: 0 / 376.7 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 8.977e-05/0.1334, allocations: 3.938 kB / 376.7 MB, free: 13.21 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001223/0.1336, allocations: 27.89 kB / 376.8 MB, free: 13.18 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003135/0.1339, allocations: 39.91 kB / 376.8 MB, free: 13.14 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001769/0.1341, allocations: 83.83 kB / 376.9 MB, free: 13.06 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001283/0.1342, allocations: 21.38 kB / 376.9 MB, free: 13.04 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008412/0.1351, allocations: 471.2 kB / 377.4 MB, free: 12.58 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002111/0.1353, allocations: 103.8 kB / 377.5 MB, free: 12.48 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.702e-05/0.1354, allocations: 4 kB / 377.5 MB, free: 12.47 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.205e-05/0.1355, allocations: 7.938 kB / 377.5 MB, free: 12.46 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001176/0.1356, allocations: 75.75 kB / 377.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.1357, allocations: 81.52 kB / 377.6 MB, free: 12.3 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004931/0.1362, allocations: 363.1 kB / 378 MB, free: 11.95 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1363, allocations: 0 / 378 MB, free: 11.95 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.545e-06/0.1363, allocations: 3.938 kB / 378 MB, free: 11.95 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.592e-06/0.1363, allocations: 0 / 378 MB, free: 11.95 MB / 282.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.001024/0.1373, allocations: 0.7362 MB / 378.7 MB, free: 11.13 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.266e-05/0.1374, allocations: 8.031 kB / 378.7 MB, free: 11.12 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.667e-05/0.1375, allocations: 46.5 kB / 378.8 MB, free: 11.07 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.1376, allocations: 39.53 kB / 378.8 MB, free: 11.03 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004678/0.1381, allocations: 285.2 kB / 379.1 MB, free: 10.71 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.1382, allocations: 11.98 kB / 379.1 MB, free: 10.7 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.228e-05/0.1382, allocations: 12 kB / 379.1 MB, free: 10.68 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005417/0.1388, allocations: 161.6 kB / 379.3 MB, free: 10.52 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.1388, allocations: 3.984 kB / 379.3 MB, free: 10.52 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.289e-05/0.1389, allocations: 4 kB / 379.3 MB, free: 10.51 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.041e-05/0.1389, allocations: 0 / 379.3 MB, free: 10.51 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003095/0.1392, allocations: 87.89 kB / 379.4 MB, free: 10.43 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00116/0.1404, allocations: 0.4965 MB / 379.9 MB, free: 9.879 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000432/0.1409, allocations: 126.5 kB / 380 MB, free: 9.746 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.202e-05/0.1409, allocations: 4 kB / 380 MB, free: 9.742 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006442/0.1415, allocations: 242.7 kB / 380.2 MB, free: 9.48 MB / 282.7 MB Notification: Performance of pre-optimization done (n=14): time 3.326e-06/0.1416, allocations: 0 / 380.2 MB, free: 9.48 MB / 282.7 MB Notification: Performance of matching and sorting (n=14): time 0.001929/0.1435, allocations: 0.7653 MB / 381 MB, free: 8.641 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001564/0.1437, allocations: 195.9 kB / 381.2 MB, free: 8.406 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001149/0.1449, allocations: 0.5678 MB / 381.8 MB, free: 7.832 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 8.991e-05/0.145, allocations: 29.7 kB / 381.8 MB, free: 7.797 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.1451, allocations: 179.5 kB / 382 MB, free: 7.621 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.37e-05/0.1452, allocations: 27.7 kB / 382 MB, free: 7.594 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.053e-05/0.1452, allocations: 0 / 382 MB, free: 7.594 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001755/0.1454, allocations: 326.8 kB / 382.3 MB, free: 7.266 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002924/0.1457, allocations: 75.97 kB / 382.4 MB, free: 7.191 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002978/0.146, allocations: 102.5 kB / 382.5 MB, free: 7.086 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003523/0.1464, allocations: 209.9 kB / 382.7 MB, free: 6.852 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.506e-06/0.1464, allocations: 0 / 382.7 MB, free: 6.852 MB / 282.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.001165/0.1476, allocations: 0.4941 MB / 383.2 MB, free: 6.32 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001526/0.1478, allocations: 148.5 kB / 383.3 MB, free: 6.145 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.1478, allocations: 4.016 kB / 383.3 MB, free: 6.141 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.1478, allocations: 4 kB / 383.3 MB, free: 6.137 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.741e-05/0.1479, allocations: 4 kB / 383.3 MB, free: 6.133 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.795e-06/0.1479, allocations: 0 / 383.3 MB, free: 6.133 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003333/0.1482, allocations: 24.06 kB / 383.4 MB, free: 6.109 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001801/0.1484, allocations: 105.2 kB / 383.5 MB, free: 6.004 MB / 282.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.0006258/0.1491, allocations: 404 kB / 383.9 MB, free: 5.57 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.1492, allocations: 39.53 kB / 383.9 MB, free: 5.531 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002202/0.1494, allocations: 79.45 kB / 384 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.03e-06/0.1494, allocations: 0 / 384 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.1495, allocations: 0 / 384 MB, free: 5.449 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.274e-06/0.1495, allocations: 3.984 kB / 384 MB, free: 5.445 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001897/0.1514, allocations: 0.9596 MB / 384.9 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.1514, allocations: 0 / 384.9 MB, free: 4.398 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.252e-05/0.1514, allocations: 3.938 kB / 384.9 MB, free: 4.395 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.1515, allocations: 0 / 384.9 MB, free: 4.395 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.234e-05/0.1515, allocations: 19.98 kB / 385 MB, free: 4.375 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1515, allocations: 3.938 kB / 385 MB, free: 4.371 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.1516, allocations: 4 kB / 385 MB, free: 4.367 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001374/0.1529, allocations: 0.6634 MB / 385.6 MB, free: 3.656 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000652/0.1536, allocations: 260.3 kB / 385.9 MB, free: 3.383 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.1538, allocations: 8 kB / 385.9 MB, free: 3.375 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002936/0.1541, allocations: 19.98 kB / 385.9 MB, free: 3.355 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002498/0.1543, allocations: 55.92 kB / 386 MB, free: 3.301 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001694/0.1545, allocations: 97.25 kB / 386.1 MB, free: 3.207 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008986/0.1554, allocations: 426.8 kB / 386.5 MB, free: 2.793 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.1554, allocations: 0 / 386.5 MB, free: 2.793 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.000503/0.156, allocations: 52 kB / 386.5 MB, free: 2.742 MB / 282.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.001892/0.1579, allocations: 1.221 MB / 387.8 MB, free: 1.461 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001021/0.1589, allocations: 0.5399 MB / 388.3 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.168e-06/0.159, allocations: 0 / 388.3 MB, free: 0.8594 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006519/0.1596, allocations: 469 kB / 388.8 MB, free: 348 kB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001182/0.1608, allocations: 158.7 kB / 388.9 MB, free: 192 kB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2529/0.4137, allocations: 1.985 MB / 390.9 MB, free: 20.32 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004977/0.4143, allocations: 0.8247 MB / 391.7 MB, free: 19.61 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001066/0.4144, allocations: 45.5 kB / 391.8 MB, free: 19.6 MB / 282.7 MB Notification: Performance of SimCode: time 1.373e-06/0.4144, allocations: 0.6562 kB / 391.8 MB, free: 19.6 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.707/3.121, allocations: 4.942 MB / 396.7 MB, free: 19.08 MB / 282.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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat