Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.VectorDelay.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.VectorDelay,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_VectorDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.VectorDelay,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_VectorDelay",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.001621/0.00162, allocations: 185.8 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.936/1.936, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.00117/0.00117, allocations: 90.17 kB / 270.9 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003943/0.0003943, allocations: 12 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3385/0.3389, allocations: 47.57 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.128/0.467, allocations: 80.85 MB / 455.5 MB, free: 15.78 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/0.4673, allocations: 71.95 kB / 455.6 MB, free: 15.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04811/0.5155, allocations: 13.35 MB / 468.9 MB, free: 2.348 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5155, allocations: 0 / 468.9 MB, free: 2.348 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.908e-05/0.5155, allocations: 8 kB / 468.9 MB, free: 2.34 MB / 346.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.001871/0.5174, allocations: 1.188 MB / 470.1 MB, free: 1.062 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.5175, allocations: 12.03 kB / 470.1 MB, free: 1.051 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001322/0.5176, allocations: 50.55 kB / 470.2 MB, free: 0.9922 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001934/0.5179, allocations: 94.83 kB / 470.2 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000781/0.5186, allocations: 416.8 kB / 470.7 MB, free: 448 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.124e-05/0.5187, allocations: 16 kB / 470.7 MB, free: 432 kB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.365e-05/0.5188, allocations: 20 kB / 470.7 MB, free: 412 kB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.5198, allocations: 348.4 kB / 471 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.5199, allocations: 0 / 471 MB, free: 48 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.308e-05/0.5199, allocations: 15.98 kB / 471 MB, free: 32 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.52, allocations: 7.953 kB / 471.1 MB, free: 24 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007165/0.5207, allocations: 203.8 kB / 471.3 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002027/0.5227, allocations: 0.9548 MB / 472.2 MB, free: 14.81 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008468/0.5236, allocations: 311.8 kB / 472.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.5236, allocations: 0 / 472.5 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001195/0.5248, allocations: 0.5926 MB / 473.1 MB, free: 13.83 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 2.555e-06/0.5249, allocations: 3.938 kB / 473.1 MB, free: 13.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.003495/0.5284, allocations: 1.345 MB / 474.5 MB, free: 12.38 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001992/0.5286, allocations: 277 kB / 474.7 MB, free: 12.05 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003126/0.5318, allocations: 1.277 MB / 476 MB, free: 10.75 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001682/0.532, allocations: 41.69 kB / 476 MB, free: 10.71 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001408/0.5321, allocations: 176.9 kB / 476.2 MB, free: 10.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001634/0.5323, allocations: 75.19 kB / 476.3 MB, free: 10.46 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.109e-05/0.5324, allocations: 4 kB / 476.3 MB, free: 10.45 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001631/0.5325, allocations: 322.8 kB / 476.6 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006929/0.5332, allocations: 203.8 kB / 476.8 MB, free: 9.93 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007076/0.534, allocations: 251 kB / 477.1 MB, free: 9.672 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007276/0.5347, allocations: 362 kB / 477.4 MB, free: 9.281 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.5347, allocations: 0 / 477.4 MB, free: 9.281 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.002232/0.537, allocations: 0.8312 MB / 478.2 MB, free: 8.406 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000213/0.5372, allocations: 186.2 kB / 478.4 MB, free: 8.188 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.987e-06/0.5372, allocations: 4.938 kB / 478.4 MB, free: 8.184 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.292e-05/0.5373, allocations: 4 kB / 478.4 MB, free: 8.18 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.342e-05/0.5373, allocations: 11.98 kB / 478.4 MB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.508e-06/0.5373, allocations: 0 / 478.4 MB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005654/0.5379, allocations: 35.83 kB / 478.5 MB, free: 8.133 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001856/0.5381, allocations: 99.86 kB / 478.6 MB, free: 8.035 MB / 362.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.001616/0.5397, allocations: 0.7899 MB / 479.4 MB, free: 7.199 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002055/0.54, allocations: 106.8 kB / 479.5 MB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004825/0.5405, allocations: 199.9 kB / 479.7 MB, free: 6.898 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.5405, allocations: 3.938 kB / 479.7 MB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.176e-06/0.5405, allocations: 4 kB / 479.7 MB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.5405, allocations: 0 / 479.7 MB, free: 6.891 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003965/0.5445, allocations: 1.854 MB / 481.5 MB, free: 4.941 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.5445, allocations: 3.953 kB / 481.5 MB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.957e-05/0.5446, allocations: 8 kB / 481.5 MB, free: 4.93 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.591e-06/0.5446, allocations: 0 / 481.5 MB, free: 4.93 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.739e-05/0.5447, allocations: 27.98 kB / 481.6 MB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.5447, allocations: 0 / 481.6 MB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.5447, allocations: 0 / 481.6 MB, free: 4.902 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002742/0.5474, allocations: 1.286 MB / 482.8 MB, free: 3.551 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001659/0.5491, allocations: 0.5891 MB / 483.4 MB, free: 2.941 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002604/0.5494, allocations: 51.97 kB / 483.5 MB, free: 2.891 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006262/0.5501, allocations: 39.88 kB / 483.5 MB, free: 2.852 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003075/0.5504, allocations: 83.88 kB / 483.6 MB, free: 2.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001677/0.5506, allocations: 95.92 kB / 483.7 MB, free: 2.676 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.002663/0.5532, allocations: 1.075 MB / 484.8 MB, free: 1.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.61e-07/0.5533, allocations: 4 kB / 484.8 MB, free: 1.586 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008606/0.5541, allocations: 108 kB / 484.9 MB, free: 1.48 MB / 362.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.003401/0.5576, allocations: 2.04 MB / 486.9 MB, free: 15.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002105/0.5597, allocations: 0.9999 MB / 487.9 MB, free: 14.29 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.379e-06/0.5597, allocations: 0 / 487.9 MB, free: 14.29 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001353/0.5611, allocations: 0.8048 MB / 488.7 MB, free: 13.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/0.5626, allocations: 212 kB / 488.9 MB, free: 13.21 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01091/0.5736, allocations: 4.928 MB / 493.9 MB, free: 8.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001362/0.575, allocations: 1.097 MB / 495 MB, free: 7.055 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001296/0.5751, allocations: 51.42 kB / 495 MB, free: 7.004 MB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/0.5751, allocations: 4 kB / 495 MB, free: 7 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.625/3.201, allocations: 6.094 MB / 0.4894 GB, free: 0.9023 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.VectorDelay.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.VectorDelay.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.VectorDelay.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.VectorDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.VectorDelay_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_VectorDelay_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Digital_Examples_VectorDelay.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.VectorDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Digital.Examples.VectorDelay_res.mat does not exist to compare? outputFormat=mat