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.002336/0.002341, allocations: 181.4 kB / 13.66 MB, free: 1.664 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.139/2.139, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001152/0.001151, allocations: 94.64 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.655e-05/3.677e-05, allocations: 3.984 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1061/0.1061, allocations: 47.58 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4423/0.5485, allocations: 82.71 MB / 451.9 MB, free: 10.09 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003688/0.549, allocations: 74.73 kB / 452 MB, free: 10.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2077/0.7567, allocations: 43.2 MB / 495.2 MB, free: 1.129 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.7568, allocations: 0 / 495.2 MB, free: 1.129 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.83e-05/0.7568, allocations: 11.94 kB / 495.2 MB, free: 1.117 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.001366/0.7582, allocations: 0.959 MB / 496.1 MB, free: 60 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.198e-05/0.7582, allocations: 8.031 kB / 496.1 MB, free: 52 kB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001659/0.7584, allocations: 54.62 kB / 496.2 MB, free: 15.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001909/0.7586, allocations: 71.16 kB / 496.3 MB, free: 15.91 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007538/0.7594, allocations: 375.9 kB / 496.6 MB, free: 15.51 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.029e-05/0.7595, allocations: 8.188 kB / 496.6 MB, free: 15.5 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001023/0.7596, allocations: 23.94 kB / 496.7 MB, free: 15.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008385/0.7604, allocations: 295.2 kB / 497 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.145e-05/0.7604, allocations: 0 / 497 MB, free: 15.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.107e-05/0.7605, allocations: 15.94 kB / 497 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/0.7606, allocations: 4 kB / 497 MB, free: 15.16 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004872/0.7611, allocations: 148.5 kB / 497.1 MB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00215/0.7632, allocations: 0.7706 MB / 497.9 MB, free: 14.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006173/0.7639, allocations: 210.5 kB / 498.1 MB, free: 13.98 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004975/0.7644, allocations: 184.8 kB / 498.3 MB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.676e-05/0.7645, allocations: 0 / 498.3 MB, free: 13.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008626/0.7653, allocations: 437.8 kB / 498.7 MB, free: 13.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=29): time 3.015e-06/0.7653, allocations: 0 / 498.7 MB, free: 13.33 MB / 378.7 MB Notification: Performance of matching and sorting (n=29): time 0.00218/0.7675, allocations: 0.862 MB / 499.6 MB, free: 12.41 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002155/0.7678, allocations: 289 kB / 499.8 MB, free: 12.07 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002027/0.7698, allocations: 0.8274 MB / 0.4889 GB, free: 11.23 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001792/0.7701, allocations: 37.7 kB / 0.489 GB, free: 11.19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001459/0.7702, allocations: 188.4 kB / 0.4892 GB, free: 11.01 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001469/0.7704, allocations: 59.2 kB / 0.4892 GB, free: 10.95 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.196e-05/0.7705, allocations: 12 kB / 0.4892 GB, free: 10.94 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001573/0.7706, allocations: 322.8 kB / 0.4895 GB, free: 10.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004553/0.7711, allocations: 136.2 kB / 0.4897 GB, free: 10.48 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004741/0.7716, allocations: 174.2 kB / 0.4898 GB, free: 10.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005789/0.7722, allocations: 357.5 kB / 0.4902 GB, free: 9.906 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.108e-06/0.7722, allocations: 4 kB / 0.4902 GB, free: 9.902 MB / 378.7 MB Notification: Performance of matching and sorting (n=34) (initialization): time 0.00196/0.7742, allocations: 0.8035 MB / 0.491 GB, free: 9.043 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002367/0.7744, allocations: 249.6 kB / 0.4912 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.948e-06/0.7745, allocations: 0 / 0.4912 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.113e-05/0.7745, allocations: 0 / 0.4912 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.355e-05/0.7745, allocations: 4 kB / 0.4912 GB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.219e-05/0.7746, allocations: 4 kB / 0.4912 GB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005071/0.7751, allocations: 32.02 kB / 0.4912 GB, free: 8.711 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004308/0.7755, allocations: 263.8 kB / 0.4915 GB, free: 8.453 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.0005002/0.776, allocations: 398.4 kB / 0.4919 GB, free: 8.008 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/0.7763, allocations: 83.05 kB / 0.4919 GB, free: 7.926 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004447/0.7767, allocations: 123 kB / 0.4921 GB, free: 7.801 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.7767, allocations: 0 / 0.4921 GB, free: 7.801 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.033e-05/0.7768, allocations: 4 kB / 0.4921 GB, free: 7.797 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.7768, allocations: 3.938 kB / 0.4921 GB, free: 7.793 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003213/0.78, allocations: 1.491 MB / 0.4935 GB, free: 6.191 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.937e-06/0.7801, allocations: 7.984 kB / 0.4935 GB, free: 6.184 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.135e-05/0.7801, allocations: 4 kB / 0.4935 GB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.494e-06/0.7801, allocations: 0 / 0.4935 GB, free: 6.18 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001171/0.7803, allocations: 47.91 kB / 0.4936 GB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.569e-06/0.7803, allocations: 0 / 0.4936 GB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.745e-06/0.7803, allocations: 0 / 0.4936 GB, free: 6.133 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002288/0.7826, allocations: 1.023 MB / 0.4946 GB, free: 5.043 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001225/0.7839, allocations: 427.7 kB / 0.495 GB, free: 4.605 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001895/0.7841, allocations: 20 kB / 0.495 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004785/0.7846, allocations: 35.91 kB / 0.495 GB, free: 4.551 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002822/0.7849, allocations: 67.92 kB / 0.4951 GB, free: 4.484 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004312/0.7853, allocations: 271.6 kB / 0.4954 GB, free: 4.219 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001692/0.787, allocations: 0.69 MB / 0.496 GB, free: 3.535 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.7871, allocations: 0 / 0.496 GB, free: 3.535 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007498/0.7878, allocations: 92 kB / 0.4961 GB, free: 3.445 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.002839/0.7907, allocations: 1.602 MB / 0.4977 GB, free: 1.766 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001613/0.7923, allocations: 0.8976 MB / 0.4986 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.863e-06/0.7924, allocations: 0 / 0.4986 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.7935, allocations: 0.7725 MB / 0.4993 GB, free: 15.9 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00173/0.7953, allocations: 233.3 kB / 0.4995 GB, free: 15.67 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00383/0.7991, allocations: 1.27 MB / 0.5008 GB, free: 14.36 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001012/0.8002, allocations: 0.9635 MB / 0.5017 GB, free: 13.37 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002841/0.8005, allocations: 95.31 kB / 0.5018 GB, free: 13.27 MB / 394.7 MB Notification: Performance of SimCode: time 1.463e-06/0.8005, allocations: 0 / 0.5018 GB, free: 13.27 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.807/3.608, allocations: 8.955 MB / 0.5106 GB, free: 4.168 MB / 394.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