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.0009736/0.0009733, allocations: 92.59 kB / 17 MB, free: 6.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 192.5 kB / 17.9 MB, free: 5.938 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.455/1.455, allocations: 227.4 MB / 246 MB, free: 11.97 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002457/0.0002458, allocations: 7.984 kB / 306.8 MB, free: 1.48 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.11/0.1102, allocations: 51.49 MB / 358.3 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001815/0.1121, allocations: 1.249 MB / 359.5 MB, free: 12.73 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.1139, allocations: 0.8581 MB / 360.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.661e-05/0.114, allocations: 4 kB / 360.4 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.294e-05/0.1141, allocations: 7.922 kB / 360.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 8.231e-05/0.1142, allocations: 23.84 kB / 360.4 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002434/0.1144, allocations: 35.97 kB / 360.5 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001628/0.1146, allocations: 123.7 kB / 360.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.1147, allocations: 25.39 kB / 360.6 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006729/0.1154, allocations: 0.5654 MB / 361.2 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001368/0.1155, allocations: 99.75 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.897e-05/0.1156, allocations: 7.938 kB / 361.3 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.846e-05/0.1156, allocations: 8 kB / 361.3 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.046e-05/0.1157, allocations: 71.75 kB / 361.4 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.482e-05/0.1158, allocations: 73.52 kB / 361.4 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003002/0.1161, allocations: 367.1 kB / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.1161, allocations: 0 / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1161, allocations: 0 / 361.8 MB, free: 10.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.345e-06/0.1161, allocations: 0 / 361.8 MB, free: 10.46 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.0006942/0.1168, allocations: 0.744 MB / 362.5 MB, free: 9.637 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.1169, allocations: 8.031 kB / 362.5 MB, free: 9.629 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.88e-05/0.1169, allocations: 38.56 kB / 362.6 MB, free: 9.582 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.629e-05/0.117, allocations: 43.44 kB / 362.6 MB, free: 9.539 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.1173, allocations: 281.2 kB / 362.9 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.88e-05/0.1173, allocations: 8 kB / 362.9 MB, free: 9.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.091e-05/0.1174, allocations: 8 kB / 362.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003244/0.1177, allocations: 173.5 kB / 363.1 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.133e-06/0.1177, allocations: 4 kB / 363.1 MB, free: 9.027 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.504e-05/0.1177, allocations: 4 kB / 363.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.1178, allocations: 3.984 kB / 363.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001788/0.1179, allocations: 87.89 kB / 363.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000712/0.1187, allocations: 0.4887 MB / 363.7 MB, free: 8.395 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002283/0.1189, allocations: 126.5 kB / 363.8 MB, free: 8.262 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.1191, allocations: 112.9 kB / 363.9 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.067e-05/0.1191, allocations: 0 / 363.9 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003799/0.1195, allocations: 250.6 kB / 364.2 MB, free: 7.879 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.302e-06/0.1195, allocations: 0 / 364.2 MB, free: 7.879 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009369/0.1205, allocations: 0.6107 MB / 364.8 MB, free: 7.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.1206, allocations: 195.9 kB / 365 MB, free: 6.996 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006269/0.1212, allocations: 0.5601 MB / 365.5 MB, free: 6.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.134e-05/0.1213, allocations: 37.69 kB / 365.6 MB, free: 6.387 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.271e-05/0.1213, allocations: 117 kB / 365.7 MB, free: 6.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.448e-05/0.1214, allocations: 27.7 kB / 365.7 MB, free: 6.242 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.547e-05/0.1214, allocations: 8 kB / 365.7 MB, free: 6.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.1215, allocations: 322.8 kB / 366 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001492/0.1217, allocations: 87.89 kB / 366.1 MB, free: 5.82 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.1219, allocations: 101.7 kB / 366.2 MB, free: 5.715 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002018/0.1221, allocations: 210.7 kB / 366.4 MB, free: 5.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.285e-06/0.1221, allocations: 0 / 366.4 MB, free: 5.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006454/0.1227, allocations: 0.4979 MB / 366.9 MB, free: 4.945 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.744e-05/0.1228, allocations: 156.4 kB / 367.1 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.966e-06/0.1229, allocations: 8.062 kB / 367.1 MB, free: 4.754 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.319e-05/0.1229, allocations: 3.984 kB / 367.1 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.158e-05/0.1229, allocations: 4 kB / 367.1 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.1229, allocations: 3.984 kB / 367.1 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000183/0.1231, allocations: 23.94 kB / 367.1 MB, free: 4.719 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001095/0.1232, allocations: 101.3 kB / 367.2 MB, free: 4.621 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,$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.0003584/0.1236, allocations: 400.1 kB / 367.6 MB, free: 4.188 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.391e-05/0.1237, allocations: 47.52 kB / 367.6 MB, free: 4.141 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001021/0.1238, allocations: 63.48 kB / 367.7 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.958e-06/0.1238, allocations: 4 kB / 367.7 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.62e-06/0.1238, allocations: 0 / 367.7 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.1238, allocations: 4 kB / 367.7 MB, free: 4.062 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00106/0.1249, allocations: 0.9669 MB / 368.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1249, allocations: 0 / 368.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.897e-06/0.1249, allocations: 0 / 368.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.1249, allocations: 0 / 368.7 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.547e-05/0.1249, allocations: 19.98 kB / 368.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.1249, allocations: 0 / 368.7 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.61e-07/0.1249, allocations: 3.938 kB / 368.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008024/0.1257, allocations: 0.6672 MB / 369.4 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003554/0.1261, allocations: 268.2 kB / 369.6 MB, free: 1.992 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.64e-05/0.1262, allocations: 8 kB / 369.6 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000144/0.1263, allocations: 19.92 kB / 369.7 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001549/0.1265, allocations: 55.94 kB / 369.7 MB, free: 1.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.1266, allocations: 101.2 kB / 369.8 MB, free: 1.812 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005194/0.1271, allocations: 418.8 kB / 370.2 MB, free: 1.406 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1271, allocations: 0 / 370.2 MB, free: 1.406 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003195/0.1275, allocations: 59.95 kB / 370.3 MB, free: 1.348 MB / 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 (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.001137/0.1286, allocations: 1.209 MB / 371.5 MB, free: 84 kB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.2185/0.3471, allocations: 0.5361 MB / 372 MB, free: 19.88 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.526e-06/0.3472, allocations: 3.828 kB / 372 MB, free: 19.88 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004639/0.3476, allocations: 466.4 kB / 372.5 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009167/0.3486, allocations: 163.5 kB / 372.6 MB, free: 19.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003456/0.352, allocations: 1.912 MB / 374.5 MB, free: 18.83 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004477/0.3525, allocations: 0.8187 MB / 375.4 MB, free: 18.1 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000125/0.3526, allocations: 14.02 kB / 375.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.349e-05/0.3527, allocations: 44.45 kB / 375.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of SimCode: time 1.273e-06/0.3527, allocations: 1.094 kB / 375.4 MB, free: 18.09 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02533/0.3781, allocations: 8.25 MB / 383.7 MB, free: 16.06 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001734/0.3783, allocations: 188.2 kB / 383.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.916/2.294, allocations: 3.938 kB / 383.9 MB, free: 15.82 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/linux/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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat does not exist to compare? outputFormat=mat