Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Digital_Examples_WiredX",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.WiredX,fileNamePrefix="Modelica_3_2_3_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.001446/0.001446, allocations: 172.1 kB / 14.1 MB, free: 1.223 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.396/1.396, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.0007951/0.0007951, allocations: 86.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.326e-05/2.329e-05, allocations: 4 kB / 322.5 MB, free: 17.26 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0826/0.08263, allocations: 47.58 MB / 370.1 MB, free: 1.613 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2956/0.3782, allocations: 82.7 MB / 452.8 MB, free: 10.55 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002105/0.3785, allocations: 70.27 kB / 452.9 MB, free: 10.52 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08242/0.4609, allocations: 43.21 MB / 496.1 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.935e-06/0.461, allocations: 0 / 496.1 MB, free: 0.8945 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.835e-05/0.461, allocations: 11.94 kB / 496.1 MB, free: 0.8828 MB / 362.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.0009212/0.4619, allocations: 0.9551 MB / 497.1 MB, free: 15.83 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.462, allocations: 16.02 kB / 497.1 MB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.379e-05/0.4621, allocations: 46.56 kB / 497.1 MB, free: 15.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001372/0.4622, allocations: 79.16 kB / 497.2 MB, free: 15.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005297/0.4627, allocations: 368 kB / 497.6 MB, free: 15.28 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.024e-05/0.4628, allocations: 16.19 kB / 497.6 MB, free: 15.26 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.487e-05/0.4629, allocations: 16 kB / 497.6 MB, free: 15.25 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005288/0.4634, allocations: 295.1 kB / 497.9 MB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.358e-06/0.4634, allocations: 0 / 497.9 MB, free: 14.95 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.525e-05/0.4635, allocations: 15.95 kB / 497.9 MB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.663e-06/0.4635, allocations: 0 / 497.9 MB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000287/0.4638, allocations: 148.6 kB / 498 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0012/0.465, allocations: 0.7706 MB / 498.8 MB, free: 13.97 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000343/0.4654, allocations: 214.5 kB / 499 MB, free: 13.75 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00028/0.4656, allocations: 188.8 kB / 499.2 MB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.851e-05/0.4657, allocations: 4 kB / 499.2 MB, free: 13.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005284/0.4662, allocations: 425.9 kB / 499.6 MB, free: 13.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 1.924e-06/0.4662, allocations: 3.938 kB / 499.6 MB, free: 13.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.001222/0.4675, allocations: 0.8542 MB / 0.4888 GB, free: 12.19 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001442/0.4676, allocations: 285 kB / 0.489 GB, free: 11.85 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001049/0.4687, allocations: 0.8391 MB / 0.4898 GB, free: 11 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.978e-05/0.4687, allocations: 33.7 kB / 0.4899 GB, free: 10.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.431e-05/0.4688, allocations: 126 kB / 0.49 GB, free: 10.84 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.214e-05/0.4689, allocations: 67.19 kB / 0.4901 GB, free: 10.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.892e-05/0.469, allocations: 8 kB / 0.4901 GB, free: 10.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.4691, allocations: 334.8 kB / 0.4904 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002721/0.4694, allocations: 140.2 kB / 0.4905 GB, free: 10.29 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002733/0.4697, allocations: 170.1 kB / 0.4907 GB, free: 10.12 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003808/0.4701, allocations: 365.5 kB / 0.491 GB, free: 9.715 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.033e-06/0.4701, allocations: 0 / 0.491 GB, free: 9.715 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.001132/0.4712, allocations: 0.8113 MB / 0.4918 GB, free: 8.848 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001708/0.4714, allocations: 249.6 kB / 0.4921 GB, free: 8.555 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.4714, allocations: 7.938 kB / 0.4921 GB, free: 8.547 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.4714, allocations: 0 / 0.4921 GB, free: 8.547 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.772e-05/0.4715, allocations: 4 kB / 0.4921 GB, free: 8.543 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.4715, allocations: 4 kB / 0.4921 GB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002559/0.4717, allocations: 39.91 kB / 0.4921 GB, free: 8.5 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002611/0.472, allocations: 259.8 kB / 0.4924 GB, free: 8.246 MB / 378.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: 34 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,e_table2.y,x_table2.y,bUF3S2.nextstate,bUF3S2.yy,$PRE.bUF3S2.inertialDelaySensitive.x,bUF3S2.inertialDelaySensitive.x,$PRE.bUF3S2.inertialDelaySensitive.y,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,$PRE.bUF3S1.inertialDelaySensitive.y,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 () * 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.0003015/0.4723, allocations: 390.4 kB / 0.4927 GB, free: 7.809 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.939e-05/0.4724, allocations: 75.16 kB / 0.4928 GB, free: 7.734 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002134/0.4727, allocations: 127 kB / 0.4929 GB, free: 7.605 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.137e-06/0.4727, allocations: 0 / 0.4929 GB, free: 7.605 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.142e-06/0.4727, allocations: 3.938 kB / 0.4929 GB, free: 7.602 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.001e-06/0.4727, allocations: 7.984 kB / 0.4929 GB, free: 7.594 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001935/0.4746, allocations: 1.495 MB / 0.4944 GB, free: 5.988 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.014e-06/0.4746, allocations: 0 / 0.4944 GB, free: 5.988 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.602e-05/0.4747, allocations: 7.938 kB / 0.4944 GB, free: 5.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.876e-06/0.4747, allocations: 4 kB / 0.4944 GB, free: 5.977 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.01e-05/0.4748, allocations: 43.97 kB / 0.4945 GB, free: 5.934 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.4748, allocations: 3.938 kB / 0.4945 GB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4748, allocations: 0 / 0.4945 GB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001257/0.476, allocations: 1.02 MB / 0.4955 GB, free: 4.844 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000618/0.4767, allocations: 431.8 kB / 0.4959 GB, free: 4.402 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001162/0.4768, allocations: 23.98 kB / 0.4959 GB, free: 4.379 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002542/0.4771, allocations: 27.89 kB / 0.4959 GB, free: 4.352 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001946/0.4773, allocations: 75.91 kB / 0.496 GB, free: 4.277 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002513/0.4775, allocations: 267.5 kB / 0.4962 GB, free: 4.016 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009244/0.4784, allocations: 0.6939 MB / 0.4969 GB, free: 3.328 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.4785, allocations: 0 / 0.4969 GB, free: 3.328 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003977/0.4789, allocations: 92 kB / 0.497 GB, free: 3.238 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]) * 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.00167/0.4805, allocations: 1.594 MB / 0.4986 GB, free: 1.566 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009459/0.4815, allocations: 0.9053 MB / 0.4995 GB, free: 0.5625 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.4815, allocations: 3.938 kB / 0.4995 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000631/0.4822, allocations: 0.7647 MB / 0.5002 GB, free: 15.7 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009768/0.4831, allocations: 223.5 kB / 0.5004 GB, free: 15.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002153/0.4853, allocations: 1.206 MB / 0.5016 GB, free: 14.23 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006793/0.486, allocations: 0.9674 MB / 0.5025 GB, free: 13.24 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002448/0.4863, allocations: 93.11 kB / 0.5026 GB, free: 13.15 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001509/0.4864, allocations: 87.34 kB / 0.5027 GB, free: 13.06 MB / 394.7 MB Notification: Performance of SimCode: time 6.61e-07/0.4864, allocations: 0 / 0.5027 GB, free: 13.06 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02765/0.5141, allocations: 14.14 MB / 0.5165 GB, free: 14.73 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000201/0.5143, allocations: 153.2 kB / 0.5167 GB, free: 14.5 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.839/2.353, allocations: 0 / 0.5167 GB, free: 14.5 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_WiredX.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.WiredX_res.mat does not exist to compare? outputFormat=mat