Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.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.WiredX,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_WiredX",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.001648/0.001648, allocations: 185.9 kB / 16.41 MB, free: 5.727 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.95/1.95, allocations: 205.4 MB / 222.5 MB, free: 9.145 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.001178/0.001177, allocations: 98.66 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000397/0.0003967, allocations: 8 kB / 327.1 MB, free: 136 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3439/0.3443, allocations: 47.57 MB / 374.6 MB, free: 45.27 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1388/0.4832, allocations: 82.81 MB / 457.4 MB, free: 13.85 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002812/0.4836, allocations: 71.97 kB / 457.5 MB, free: 13.78 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1622/0.6458, allocations: 42.89 MB / 0.4887 GB, free: 2.969 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.715e-06/0.6458, allocations: 0 / 0.4887 GB, free: 2.969 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.541e-05/0.6459, allocations: 8 kB / 0.4887 GB, free: 2.961 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 33 * Number of variables: 33 Notification: Performance of Generate backend data structure: time 0.001703/0.6476, allocations: 1.071 MB / 0.4897 GB, free: 1.785 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.254e-05/0.6477, allocations: 11.97 kB / 0.4897 GB, free: 1.773 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001738/0.6478, allocations: 54.55 kB / 0.4898 GB, free: 1.711 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.6481, allocations: 75.16 kB / 0.4899 GB, free: 1.637 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007387/0.6488, allocations: 371.9 kB / 0.4902 GB, free: 1.23 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.984e-05/0.6489, allocations: 16.19 kB / 0.4902 GB, free: 1.215 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001053/0.649, allocations: 19.94 kB / 0.4902 GB, free: 1.195 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009681/0.65, allocations: 291.2 kB / 0.4905 GB, free: 0.9023 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.397e-05/0.65, allocations: 7.938 kB / 0.4905 GB, free: 0.8945 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.307e-05/0.6501, allocations: 19.94 kB / 0.4905 GB, free: 0.875 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.697e-06/0.6501, allocations: 4 kB / 0.4906 GB, free: 0.8711 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005757/0.6507, allocations: 152.5 kB / 0.4907 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.2684/0.9191, allocations: 0.7532 MB / 0.4914 GB, free: 101.9 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008984/0.92, allocations: 213 kB / 0.4916 GB, free: 101.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.566e-05/0.9201, allocations: 1.781 kB / 0.4916 GB, free: 101.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0011/0.9212, allocations: 437.6 kB / 0.4921 GB, free: 101.7 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 5.07e-06/0.9212, allocations: 0 / 0.4921 GB, free: 101.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.003367/0.9246, allocations: 1.339 MB / 0.4934 GB, free: 101 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001375/0.9248, allocations: 283.5 kB / 0.4936 GB, free: 100.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001947/0.9268, allocations: 0.8397 MB / 0.4945 GB, free: 100.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001798/0.927, allocations: 37.05 kB / 0.4945 GB, free: 100.4 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.9271, allocations: 182 kB / 0.4947 GB, free: 100.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001546/0.9273, allocations: 62.41 kB / 0.4947 GB, free: 100.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.968e-05/0.9274, allocations: 9.844 kB / 0.4947 GB, free: 100.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.333e-05/0.9275, allocations: 327.2 kB / 0.495 GB, free: 99.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005409/0.928, allocations: 142.8 kB / 0.4952 GB, free: 99.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005479/0.9286, allocations: 177.2 kB / 0.4953 GB, free: 99.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006181/0.9292, allocations: 357.6 kB / 0.4957 GB, free: 99.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.5e-06/0.9293, allocations: 0 / 0.4957 GB, free: 99.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.002042/0.9313, allocations: 0.8145 MB / 0.4965 GB, free: 99.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001546/0.9315, allocations: 246.5 kB / 0.4967 GB, free: 99.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.889e-06/0.9315, allocations: 1.156 kB / 0.4967 GB, free: 99.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.465e-05/0.9316, allocations: 1.125 kB / 0.4967 GB, free: 99.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.773e-05/0.9316, allocations: 6.406 kB / 0.4967 GB, free: 99.09 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.042e-05/0.9316, allocations: 1.406 kB / 0.4967 GB, free: 99.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004943/0.9321, allocations: 38.05 kB / 0.4968 GB, free: 99.08 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004406/0.9326, allocations: 274 kB / 0.497 GB, free: 99.07 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 34 ($PRE.bUF3S1.inertialDelaySensitive.y,$PRE.bUF3S2.inertialDelaySensitive.y,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,$PRE.bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.auxiliary[1],wiredX.auxiliary[2],wiredX.y,$PRE.wiredX.auxiliary[2]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 8 * 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.001162/0.9338, allocations: 0.6018 MB / 0.4976 GB, free: 98.66 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.934, allocations: 75.47 kB / 0.4977 GB, free: 98.62 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003814/0.9344, allocations: 128.2 kB / 0.4978 GB, free: 98.56 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.632e-06/0.9344, allocations: 1.25 kB / 0.4978 GB, free: 98.56 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.927e-06/0.9344, allocations: 1.062 kB / 0.4978 GB, free: 98.56 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.9345, allocations: 3.953 kB / 0.4978 GB, free: 98.56 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003348/0.9378, allocations: 1.506 MB / 0.4993 GB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.9379, allocations: 0.875 kB / 0.4993 GB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.162e-05/0.9379, allocations: 11.91 kB / 0.4993 GB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.057e-06/0.9379, allocations: 1.562 kB / 0.4993 GB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001219/0.9381, allocations: 43.28 kB / 0.4993 GB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.16e-06/0.9381, allocations: 0 / 0.4993 GB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.1e-06/0.9381, allocations: 5.141 kB / 0.4993 GB, free: 97.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002435/0.9405, allocations: 1.033 MB / 0.5004 GB, free: 97.51 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001267/0.9419, allocations: 429.5 kB / 0.5008 GB, free: 97.33 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002082/0.9421, allocations: 20.62 kB / 0.5008 GB, free: 97.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004788/0.9426, allocations: 33.62 kB / 0.5008 GB, free: 97.33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002996/0.9429, allocations: 78.84 kB / 0.5009 GB, free: 97.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004627/0.9434, allocations: 270.3 kB / 0.5011 GB, free: 97.31 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001877/0.9453, allocations: 0.6921 MB / 0.5018 GB, free: 97.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.052e-06/0.9453, allocations: 3.094 kB / 0.5018 GB, free: 97.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00117/0.9465, allocations: 91.53 kB / 0.5019 GB, free: 97.09 MB / 378.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: 29 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.y_old,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.t_next,e_table1.y,x_table1.y,bUF3S1.nextstate,bUF3S1.yy,bUF3S1.inertialDelaySensitive.x,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.y_old,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.t_next,wiredX.y,wiredX.auxiliary[1],wiredX.auxiliary[2]) * Number of discrete states: 27 (e_table2.y,x_table2.y,bUF3S2.yy,bUF3S2.nextstate,bUF3S2.inertialDelaySensitive.y,bUF3S2.inertialDelaySensitive.y_auxiliary,bUF3S2.inertialDelaySensitive.t_next,bUF3S2.inertialDelaySensitive.delayTime,bUF3S2.inertialDelaySensitive.lh,bUF3S2.inertialDelaySensitive.y_old,$whenCondition4,$whenCondition3,bUF3S2.inertialDelaySensitive.x,e_table1.y,x_table1.y,bUF3S1.yy,bUF3S1.nextstate,bUF3S1.inertialDelaySensitive.y,bUF3S1.inertialDelaySensitive.y_auxiliary,bUF3S1.inertialDelaySensitive.t_next,bUF3S1.inertialDelaySensitive.delayTime,bUF3S1.inertialDelaySensitive.lh,bUF3S1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,bUF3S1.inertialDelaySensitive.x,wiredX.auxiliary[2]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 8 * 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.002751/0.9493, allocations: 1.616 MB / 0.5035 GB, free: 96.14 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.951, allocations: 0.9167 MB / 0.5044 GB, free: 95.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.319e-06/0.951, allocations: 1.125 kB / 0.5044 GB, free: 95.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009707/0.952, allocations: 0.765 MB / 0.5051 GB, free: 95.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001742/0.9538, allocations: 232 kB / 0.5054 GB, free: 95.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00746/0.9613, allocations: 3.35 MB / 0.5086 GB, free: 93.55 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007477/0.9621, allocations: 0.9555 MB / 0.5096 GB, free: 92.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002791/0.9624, allocations: 95.7 kB / 0.5097 GB, free: 92.77 MB / 378.7 MB Notification: Performance of SimCode: time 2.215e-06/0.9624, allocations: 0 / 0.5097 GB, free: 92.77 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.884/3.847, allocations: 8.889 MB / 0.5183 GB, free: 91.71 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat