Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.VectorDelay.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.VectorDelay,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_VectorDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.VectorDelay,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_VectorDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009871/0.0009871, allocations: 181.2 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009317/0.0009317, allocations: 86.88 kB / 291.5 MB, free: 10.92 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000288/0.000288, allocations: 11.94 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.271/0.2713, allocations: 50.4 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1045/0.3758, allocations: 81.73 MB / 483.3 MB, free: 14.73 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002247/0.3761, allocations: 67.97 kB / 483.4 MB, free: 14.66 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02735/0.4034, allocations: 13.49 MB / 496.9 MB, free: 1.23 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.575e-06/0.4035, allocations: 0 / 496.9 MB, free: 1.23 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.877e-05/0.4035, allocations: 12 kB / 496.9 MB, free: 1.219 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.001403/0.4049, allocations: 1.177 MB / 498.1 MB, free: 15.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/0.405, allocations: 8.031 kB / 498.1 MB, free: 15.94 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.7e-05/0.405, allocations: 46.56 kB / 498.1 MB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001224/0.4052, allocations: 98.86 kB / 498.2 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005952/0.4058, allocations: 420.6 kB / 498.6 MB, free: 15.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.165e-05/0.4058, allocations: 16 kB / 498.6 MB, free: 15.31 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.782e-05/0.4059, allocations: 16 kB / 498.7 MB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000604/0.4065, allocations: 351.5 kB / 499 MB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.4065, allocations: 0 / 499 MB, free: 14.94 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.099e-05/0.4066, allocations: 15.98 kB / 499 MB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.4066, allocations: 0 / 499 MB, free: 14.93 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003708/0.407, allocations: 203.8 kB / 499.2 MB, free: 14.73 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001356/0.4083, allocations: 0.9666 MB / 0.4885 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004557/0.4088, allocations: 311.7 kB / 0.4888 GB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.336e-06/0.4088, allocations: 3.938 kB / 0.4888 GB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007053/0.4095, allocations: 0.5745 MB / 0.4893 GB, free: 12.73 MB / 378.7 MB Notification: Performance of pre-optimization done (n=30): time 1.443e-06/0.4095, allocations: 0 / 0.4893 GB, free: 12.73 MB / 378.7 MB Notification: Performance of matching and sorting (n=30): time 0.001921/0.4115, allocations: 1.357 MB / 0.4906 GB, free: 11.28 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001424/0.4116, allocations: 281 kB / 0.4909 GB, free: 10.94 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001708/0.4133, allocations: 1.277 MB / 0.4922 GB, free: 9.645 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.049e-05/0.4134, allocations: 37.7 kB / 0.4922 GB, free: 9.602 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.042e-05/0.4135, allocations: 122.4 kB / 0.4923 GB, free: 9.477 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.447e-05/0.4136, allocations: 67.19 kB / 0.4924 GB, free: 9.41 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.015e-05/0.4136, allocations: 16 kB / 0.4924 GB, free: 9.395 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001206/0.4137, allocations: 334.8 kB / 0.4927 GB, free: 9.059 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003362/0.4141, allocations: 199.7 kB / 0.4929 GB, free: 8.863 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003359/0.4144, allocations: 241 kB / 0.4931 GB, free: 8.609 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003909/0.4148, allocations: 358.1 kB / 0.4935 GB, free: 8.223 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.4148, allocations: 0 / 0.4935 GB, free: 8.223 MB / 378.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001172/0.416, allocations: 0.8388 MB / 0.4943 GB, free: 7.34 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001339/0.4161, allocations: 190.2 kB / 0.4945 GB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.4162, allocations: 0 / 0.4945 GB, free: 7.117 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.806e-05/0.4162, allocations: 4 kB / 0.4945 GB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.88e-05/0.4162, allocations: 11.92 kB / 0.4945 GB, free: 7.102 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.688e-06/0.4162, allocations: 7.938 kB / 0.4945 GB, free: 7.094 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002978/0.4165, allocations: 43.97 kB / 0.4945 GB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.4167, allocations: 87.94 kB / 0.4946 GB, free: 6.965 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 36 ($PRE.delay.inertialDelaySensitive[3].y,$whenCondition5,$whenCondition6,$PRE.delay.inertialDelaySensitive[3].x,delay.inertialDelaySensitive[3].x,delay.inertialDelaySensitive[3].y,delay.inertialDelaySensitive[3].delayTime,delay.inertialDelaySensitive[3].y_auxiliary,delay.inertialDelaySensitive[3].y_old,delay.inertialDelaySensitive[3].lh,delay.inertialDelaySensitive[3].t_next,table2.y,$PRE.delay.inertialDelaySensitive[2].y,$whenCondition3,$whenCondition4,$PRE.delay.inertialDelaySensitive[2].x,delay.inertialDelaySensitive[2].x,delay.inertialDelaySensitive[2].y,delay.inertialDelaySensitive[2].delayTime,delay.inertialDelaySensitive[2].y_auxiliary,delay.inertialDelaySensitive[2].y_old,delay.inertialDelaySensitive[2].lh,delay.inertialDelaySensitive[2].t_next,table1.y,$PRE.delay.inertialDelaySensitive[1].y,$whenCondition1,$whenCondition2,$PRE.delay.inertialDelaySensitive[1].x,delay.inertialDelaySensitive[1].x,delay.inertialDelaySensitive[1].y,delay.inertialDelaySensitive[1].delayTime,delay.inertialDelaySensitive[1].y_auxiliary,delay.inertialDelaySensitive[1].y_old,delay.inertialDelaySensitive[1].lh,delay.inertialDelaySensitive[1].t_next,table.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 6 * 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.0008562/0.4175, allocations: 0.7818 MB / 0.4954 GB, free: 6.137 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001198/0.4176, allocations: 110.8 kB / 0.4955 GB, free: 6.027 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002659/0.4179, allocations: 191.9 kB / 0.4957 GB, free: 5.836 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.417e-06/0.4179, allocations: 288 / 0.4957 GB, free: 5.836 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.704e-06/0.4179, allocations: 4 kB / 0.4957 GB, free: 5.832 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.919e-06/0.418, allocations: 3.953 kB / 0.4957 GB, free: 5.828 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002295/0.4203, allocations: 1.855 MB / 0.4975 GB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.434e-06/0.4203, allocations: 0 / 0.4975 GB, free: 3.879 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.081e-05/0.4203, allocations: 7.938 kB / 0.4975 GB, free: 3.871 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.621e-06/0.4203, allocations: 4 kB / 0.4975 GB, free: 3.867 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.429e-05/0.4204, allocations: 27.98 kB / 0.4975 GB, free: 3.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.956e-06/0.4204, allocations: 3.953 kB / 0.4975 GB, free: 3.836 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.4204, allocations: 4 kB / 0.4975 GB, free: 3.832 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001439/0.4218, allocations: 1.282 MB / 0.4988 GB, free: 2.484 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009239/0.4228, allocations: 0.5968 MB / 0.4994 GB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001342/0.4229, allocations: 59.89 kB / 0.4994 GB, free: 1.809 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003476/0.4233, allocations: 35.97 kB / 0.4995 GB, free: 1.773 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001797/0.4234, allocations: 83.89 kB / 0.4995 GB, free: 1.691 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001087/0.4236, allocations: 99.86 kB / 0.4996 GB, free: 1.594 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001392/0.425, allocations: 1.082 MB / 0.5007 GB, free: 0.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 2e-07/0.425, allocations: 0 / 0.5007 GB, free: 0.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005164/0.4255, allocations: 104 kB / 0.5008 GB, free: 408 kB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 30 ($whenCondition1,$whenCondition2,delay.inertialDelaySensitive[1].x,delay.inertialDelaySensitive[1].y,delay.inertialDelaySensitive[1].delayTime,delay.inertialDelaySensitive[1].y_auxiliary,delay.inertialDelaySensitive[1].y_old,delay.inertialDelaySensitive[1].lh,delay.inertialDelaySensitive[1].t_next,table.y,$whenCondition3,$whenCondition4,delay.inertialDelaySensitive[2].x,delay.inertialDelaySensitive[2].y,delay.inertialDelaySensitive[2].delayTime,delay.inertialDelaySensitive[2].y_auxiliary,delay.inertialDelaySensitive[2].y_old,delay.inertialDelaySensitive[2].lh,delay.inertialDelaySensitive[2].t_next,table1.y,$whenCondition5,$whenCondition6,delay.inertialDelaySensitive[3].x,delay.inertialDelaySensitive[3].y,delay.inertialDelaySensitive[3].delayTime,delay.inertialDelaySensitive[3].y_auxiliary,delay.inertialDelaySensitive[3].y_old,delay.inertialDelaySensitive[3].lh,delay.inertialDelaySensitive[3].t_next,table2.y) * Number of discrete states: 30 (table2.y,delay.inertialDelaySensitive[3].y,delay.inertialDelaySensitive[3].y_auxiliary,delay.inertialDelaySensitive[3].t_next,delay.inertialDelaySensitive[3].delayTime,delay.inertialDelaySensitive[3].lh,delay.inertialDelaySensitive[3].y_old,$whenCondition6,$whenCondition5,delay.inertialDelaySensitive[3].x,table1.y,delay.inertialDelaySensitive[2].y,delay.inertialDelaySensitive[2].y_auxiliary,delay.inertialDelaySensitive[2].t_next,delay.inertialDelaySensitive[2].delayTime,delay.inertialDelaySensitive[2].lh,delay.inertialDelaySensitive[2].y_old,$whenCondition4,$whenCondition3,delay.inertialDelaySensitive[2].x,table.y,delay.inertialDelaySensitive[1].y,delay.inertialDelaySensitive[1].y_auxiliary,delay.inertialDelaySensitive[1].t_next,delay.inertialDelaySensitive[1].delayTime,delay.inertialDelaySensitive[1].lh,delay.inertialDelaySensitive[1].y_old,$whenCondition2,$whenCondition1,delay.inertialDelaySensitive[1].x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 6 * 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.2263/0.6518, allocations: 2.037 MB / 0.5028 GB, free: 100.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.6532, allocations: 1.009 MB / 0.5038 GB, free: 100.1 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.6533, allocations: 1.156 kB / 0.5038 GB, free: 100.1 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008213/0.6541, allocations: 0.8004 MB / 0.5046 GB, free: 99.73 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.6552, allocations: 205.9 kB / 0.5047 GB, free: 99.72 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006856/0.6621, allocations: 4.854 MB / 0.5095 GB, free: 97.56 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007005/0.6628, allocations: 1.107 MB / 0.5106 GB, free: 96.75 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001517/0.663, allocations: 25.83 kB / 0.5106 GB, free: 96.74 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.824e-05/0.6631, allocations: 62.22 kB / 0.5107 GB, free: 96.7 MB / 378.7 MB Notification: Performance of SimCode: time 1.302e-06/0.6631, allocations: 0 / 0.5107 GB, free: 96.7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02311/0.6862, allocations: 10.36 MB / 0.5208 GB, free: 90.78 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001979/0.6864, allocations: 177.8 kB / 0.5209 GB, free: 90.54 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.856/2.542, allocations: 0 / 0.5209 GB, free: 90.54 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.VectorDelay.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.VectorDelay.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.VectorDelay.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.VectorDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.VectorDelay_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_VectorDelay_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_VectorDelay.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.VectorDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Digital.Examples.VectorDelay_res.mat does not exist to compare? outputFormat=mat