Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) 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 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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001168/0.001169, allocations: 92.97 kB / 16.95 MB, free: 6.457 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.001247/0.001248, allocations: 182.7 kB / 17.84 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.811/1.811, allocations: 205.4 MB / 224 MB, free: 13.16 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0008456/0.0008458, allocations: 8 kB / 280.9 MB, free: 3.633 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1366/0.1375, allocations: 47.57 MB / 328.4 MB, free: 3.992 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002768/0.1404, allocations: 1.247 MB / 329.7 MB, free: 2.734 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002447/0.1429, allocations: 0.8638 MB / 330.6 MB, free: 1.863 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.143, allocations: 4 kB / 330.6 MB, free: 1.859 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001199/0.1432, allocations: 7.922 kB / 330.6 MB, free: 1.852 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001219/0.1433, allocations: 7.938 kB / 330.6 MB, free: 1.844 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004395/0.1438, allocations: 51.88 kB / 330.6 MB, free: 1.793 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002376/0.144, allocations: 115.7 kB / 330.7 MB, free: 1.68 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001485/0.1442, allocations: 21.39 kB / 330.8 MB, free: 1.656 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001206/0.1454, allocations: 0.5693 MB / 331.3 MB, free: 1.086 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002853/0.1457, allocations: 99.8 kB / 331.4 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 8.176e-05/0.1458, allocations: 4 kB / 331.4 MB, free: 0.9844 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.211e-05/0.1458, allocations: 4 kB / 331.4 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.146, allocations: 79.69 kB / 331.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001513/0.1462, allocations: 77.52 kB / 331.6 MB, free: 0.8203 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006317/0.1468, allocations: 363.1 kB / 331.9 MB, free: 476 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.462e-05/0.1468, allocations: 4 kB / 331.9 MB, free: 472 kB / 270.1 MB Notification: Performance of FrontEnd: time 3.426e-06/0.1468, allocations: 3.938 kB / 331.9 MB, free: 468 kB / 270.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.1469, allocations: 0 / 331.9 MB, free: 468 kB / 270.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.001275/0.1481, allocations: 0.7363 MB / 332.7 MB, free: 15.64 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.738e-05/0.1482, allocations: 8.031 kB / 332.7 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.154e-05/0.1483, allocations: 46.55 kB / 332.7 MB, free: 15.58 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.457e-05/0.1484, allocations: 39.53 kB / 332.8 MB, free: 15.54 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004166/0.1488, allocations: 273.2 kB / 333 MB, free: 15.23 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.779e-05/0.1489, allocations: 11.94 kB / 333.1 MB, free: 15.22 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/0.1489, allocations: 12 kB / 333.1 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000458/0.1494, allocations: 165.5 kB / 333.2 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.1494, allocations: 4 kB / 333.2 MB, free: 15.04 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.138e-05/0.1495, allocations: 7.984 kB / 333.2 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.1495, allocations: 0 / 333.2 MB, free: 15.03 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001864/0.1497, allocations: 83.95 kB / 333.3 MB, free: 14.95 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009367/0.1506, allocations: 0.5003 MB / 333.8 MB, free: 14.39 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003603/0.151, allocations: 126.5 kB / 333.9 MB, free: 14.26 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001987/0.1512, allocations: 112.9 kB / 334.1 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.1512, allocations: 0 / 334.1 MB, free: 14.15 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004986/0.1517, allocations: 246.6 kB / 334.3 MB, free: 13.88 MB / 286.1 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.1517, allocations: 0 / 334.3 MB, free: 13.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=14): time 0.001125/0.1529, allocations: 0.6147 MB / 334.9 MB, free: 13.23 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001726/0.1531, allocations: 203.9 kB / 335.1 MB, free: 12.99 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007108/0.1538, allocations: 0.5601 MB / 335.7 MB, free: 12.42 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.378e-05/0.1538, allocations: 33.64 kB / 335.7 MB, free: 12.38 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.1539, allocations: 121 kB / 335.8 MB, free: 12.26 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.485e-05/0.154, allocations: 31.7 kB / 335.8 MB, free: 12.23 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.239e-05/0.154, allocations: 4.109 kB / 335.9 MB, free: 12.23 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0002448/0.1543, allocations: 330.8 kB / 336.2 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001595/0.1544, allocations: 79.95 kB / 336.3 MB, free: 11.82 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001721/0.1546, allocations: 105.7 kB / 336.4 MB, free: 11.71 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002304/0.1549, allocations: 208.6 kB / 336.6 MB, free: 11.47 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.1549, allocations: 0 / 336.6 MB, free: 11.47 MB / 286.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006805/0.1556, allocations: 0.4979 MB / 337.1 MB, free: 10.94 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001226/0.1557, allocations: 156.5 kB / 337.2 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.813e-06/0.1557, allocations: 0 / 337.2 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.987e-05/0.1557, allocations: 4 kB / 337.2 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.463e-05/0.1558, allocations: 0 / 337.2 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.522e-06/0.1558, allocations: 0 / 337.2 MB, free: 10.75 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.156, allocations: 23.97 kB / 337.2 MB, free: 10.73 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001204/0.1561, allocations: 101.2 kB / 337.3 MB, free: 10.62 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.0005129/0.1566, allocations: 400 kB / 337.7 MB, free: 10.19 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000158/0.1568, allocations: 43.44 kB / 337.8 MB, free: 10.15 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000135/0.1569, allocations: 75.45 kB / 337.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.939e-06/0.157, allocations: 0 / 337.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.626e-06/0.157, allocations: 4 kB / 337.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.31e-06/0.157, allocations: 0 / 337.8 MB, free: 10.07 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001663/0.1587, allocations: 0.9595 MB / 338.8 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.777e-06/0.1587, allocations: 0 / 338.8 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.087e-06/0.1587, allocations: 0 / 338.8 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.394e-06/0.1587, allocations: 0 / 338.8 MB, free: 9.02 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.589e-05/0.1588, allocations: 27.92 kB / 338.8 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.943e-06/0.1588, allocations: 0 / 338.8 MB, free: 8.992 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/0.1588, allocations: 3.953 kB / 338.8 MB, free: 8.988 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001176/0.16, allocations: 0.6557 MB / 339.5 MB, free: 8.285 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003763/0.1604, allocations: 260.4 kB / 339.7 MB, free: 8.012 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.658e-05/0.1605, allocations: 12 kB / 339.8 MB, free: 8 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000175/0.1606, allocations: 15.91 kB / 339.8 MB, free: 7.984 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000185/0.1608, allocations: 59.92 kB / 339.8 MB, free: 7.926 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001195/0.161, allocations: 109.1 kB / 339.9 MB, free: 7.82 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0005378/0.1615, allocations: 418.8 kB / 340.4 MB, free: 7.414 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1615, allocations: 0 / 340.4 MB, free: 7.414 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003564/0.1619, allocations: 48 kB / 340.4 MB, free: 7.367 MB / 286.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.001302/0.1632, allocations: 1.228 MB / 341.6 MB, free: 6.078 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0007602/0.164, allocations: 0.5398 MB / 342.2 MB, free: 5.477 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.164, allocations: 0 / 342.2 MB, free: 5.477 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006153/0.1646, allocations: 461 kB / 342.6 MB, free: 4.965 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000875/0.1655, allocations: 166.3 kB / 342.8 MB, free: 4.805 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003324/0.1688, allocations: 1.91 MB / 344.7 MB, free: 2.84 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000639/0.1695, allocations: 0.8147 MB / 345.5 MB, free: 2 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000112/0.1696, allocations: 12.86 kB / 345.5 MB, free: 1.988 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.227e-05/0.1697, allocations: 43.42 kB / 345.6 MB, free: 1.945 MB / 286.1 MB Notification: Performance of SimCode: time 1.192e-06/0.1697, allocations: 0 / 345.6 MB, free: 1.945 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02491/0.1946, allocations: 8.251 MB / 353.8 MB, free: 9.527 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003732/0.1951, allocations: 188 kB / 354 MB, free: 9.277 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.11/2.305, allocations: 0 / 354 MB, free: 9.277 MB / 302.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat