Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Digital_Examples_VectorDelay",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.VectorDelay,fileNamePrefix="Modelica_3_2_3_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.001364/0.001364, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.556/1.556, allocations: 205.3 MB / 214.4 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008954/0.0008954, allocations: 78.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.01e-05/2.031e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09278/0.09281, allocations: 47.58 MB / 363.2 MB, free: 6.992 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3587/0.4515, allocations: 80.35 MB / 443.5 MB, free: 15.04 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002389/0.4518, allocations: 68.91 kB / 443.6 MB, free: 15 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02618/0.478, allocations: 13.32 MB / 456.9 MB, free: 3.852 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.4781, allocations: 0 / 456.9 MB, free: 3.852 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.871e-05/0.4781, allocations: 12 kB / 456.9 MB, free: 3.84 MB / 330.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.001119/0.4792, allocations: 1.033 MB / 457.9 MB, free: 2.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.137e-05/0.4793, allocations: 12.03 kB / 458 MB, free: 2.758 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000127/0.4794, allocations: 94.83 kB / 458 MB, free: 2.664 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005299/0.48, allocations: 420.9 kB / 458.5 MB, free: 2.219 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.82e-05/0.48, allocations: 8 kB / 458.5 MB, free: 2.211 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.759e-05/0.4801, allocations: 19.56 kB / 458.5 MB, free: 2.195 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002866/0.4804, allocations: 182.4 kB / 458.7 MB, free: 2.07 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004509/0.4808, allocations: 324.8 kB / 459 MB, free: 1.805 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.676e-06/0.4808, allocations: 0 / 459 MB, free: 1.805 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.005e-05/0.4809, allocations: 7.984 kB / 459 MB, free: 1.797 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.456e-06/0.4809, allocations: 7.953 kB / 459 MB, free: 1.789 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001157/0.4821, allocations: 0.9233 MB / 459.9 MB, free: 0.957 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003331/0.4824, allocations: 294.9 kB / 460.2 MB, free: 0.7344 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000307/0.4827, allocations: 252.2 kB / 460.4 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.241e-05/0.4827, allocations: 0 / 460.4 MB, free: 0.5703 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006421/0.4834, allocations: 0.6146 MB / 461.1 MB, free: 15.98 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 1.543e-06/0.4834, allocations: 0 / 461.1 MB, free: 15.98 MB / 346.7 MB Notification: Performance of matching and sorting (n=30): time 0.00105/0.4845, allocations: 0.683 MB / 461.7 MB, free: 15.43 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001372/0.4846, allocations: 277 kB / 462 MB, free: 15.11 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001516/0.4861, allocations: 1.229 MB / 463.2 MB, free: 14.06 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.18e-05/0.4862, allocations: 37.69 kB / 463.3 MB, free: 14.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.39e-05/0.4863, allocations: 121.5 kB / 463.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.529e-05/0.4864, allocations: 65.7 kB / 463.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.129e-05/0.4864, allocations: 8 kB / 463.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001296/0.4865, allocations: 333.1 kB / 463.8 MB, free: 13.53 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000247/0.4868, allocations: 190.9 kB / 464 MB, free: 13.41 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002479/0.4871, allocations: 221.8 kB / 464.2 MB, free: 13.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001977/0.4873, allocations: 152.4 kB / 464.4 MB, free: 13.15 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.104e-06/0.4873, allocations: 3.938 kB / 464.4 MB, free: 13.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008406/0.4881, allocations: 0.6162 MB / 465 MB, free: 12.67 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001305/0.4883, allocations: 193.4 kB / 465.2 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.273e-06/0.4883, allocations: 3.953 kB / 465.2 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.526e-05/0.4883, allocations: 4 kB / 465.2 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.505e-05/0.4883, allocations: 7.875 kB / 465.2 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.4883, allocations: 4 kB / 465.2 MB, free: 12.44 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002766/0.4886, allocations: 35.88 kB / 465.2 MB, free: 12.4 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001062/0.4887, allocations: 92.06 kB / 465.3 MB, free: 12.31 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 36 ($whenCondition5,$whenCondition6,$PRE.delay.inertialDelaySensitive[3].x,delay.inertialDelaySensitive[3].x,$PRE.delay.inertialDelaySensitive[3].y,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,$whenCondition3,$whenCondition4,$PRE.delay.inertialDelaySensitive[2].x,delay.inertialDelaySensitive[2].x,$PRE.delay.inertialDelaySensitive[2].y,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,$whenCondition1,$whenCondition2,$PRE.delay.inertialDelaySensitive[1].x,delay.inertialDelaySensitive[1].x,$PRE.delay.inertialDelaySensitive[1].y,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 () * 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.0002765/0.489, allocations: 346.6 kB / 465.6 MB, free: 11.94 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001045/0.4901, allocations: 0.7638 MB / 466.4 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.4902, allocations: 106.7 kB / 466.5 MB, free: 11.22 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002964/0.4905, allocations: 196.7 kB / 466.7 MB, free: 11.05 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.4905, allocations: 4 kB / 466.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.4905, allocations: 0 / 466.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.4905, allocations: 4 kB / 466.7 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001854/0.4924, allocations: 1.552 MB / 468.3 MB, free: 9.723 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.4924, allocations: 7.953 kB / 468.3 MB, free: 9.715 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.832e-06/0.4924, allocations: 0 / 468.3 MB, free: 9.715 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.015e-06/0.4924, allocations: 0 / 468.3 MB, free: 9.715 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.205e-05/0.4925, allocations: 26.98 kB / 468.3 MB, free: 9.691 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.4925, allocations: 8 kB / 468.3 MB, free: 9.684 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.019e-06/0.4925, allocations: 3.984 kB / 468.3 MB, free: 9.68 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001156/0.4937, allocations: 1.033 MB / 469.3 MB, free: 8.789 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008072/0.4945, allocations: 0.5975 MB / 469.9 MB, free: 8.293 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001511/0.4947, allocations: 49.66 kB / 470 MB, free: 8.258 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003412/0.495, allocations: 35.91 kB / 470 MB, free: 8.223 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001804/0.4952, allocations: 85.31 kB / 470.1 MB, free: 8.16 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.4953, allocations: 99.59 kB / 470.2 MB, free: 8.066 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001271/0.4966, allocations: 1.026 MB / 471.2 MB, free: 7.199 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4966, allocations: 96 / 471.2 MB, free: 7.199 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0004678/0.4971, allocations: 107.9 kB / 471.3 MB, free: 7.094 MB / 346.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) * 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.001645/0.4987, allocations: 1.785 MB / 473.1 MB, free: 5.457 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009391/0.4997, allocations: 0.9586 MB / 474.1 MB, free: 4.695 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.4997, allocations: 0 / 474.1 MB, free: 4.695 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006245/0.5003, allocations: 0.78 MB / 474.9 MB, free: 4.074 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009469/0.5013, allocations: 207.1 kB / 475.1 MB, free: 3.898 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003114/0.5044, allocations: 1.963 MB / 477 MB, free: 2.066 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008872/0.5053, allocations: 1.107 MB / 478.1 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001352/0.5054, allocations: 37.42 kB / 478.2 MB, free: 0.9336 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.585e-05/0.5055, allocations: 55.17 kB / 478.2 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of SimCode: time 5.21e-07/0.5055, allocations: 0 / 478.2 MB, free: 0.9141 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0303/0.5358, allocations: 9.694 MB / 487.9 MB, free: 7.203 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002079/0.5361, allocations: 139.4 kB / 488.1 MB, free: 7.008 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.75/2.286, allocations: 0 / 488.1 MB, free: 7.008 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.VectorDelay.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.VectorDelay.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.VectorDelay.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.VectorDelay.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.VectorDelay_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_VectorDelay_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_VectorDelay.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.VectorDelay.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Digital.Examples.VectorDelay_res.mat does not exist to compare? outputFormat=mat