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.001368/0.001368, allocations: 177 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 221.5 MB / 230.3 MB, free: 7.574 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008663/0.0008666, allocations: 101.7 kB / 281.2 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.794e-05/1.796e-05, allocations: 4 kB / 337.1 MB, free: 9.949 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 50.42 MB / 387.6 MB, free: 7.484 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.343/0.4476, allocations: 81 MB / 468.6 MB, free: 13.81 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002195/0.4478, allocations: 67.97 kB / 468.6 MB, free: 13.74 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02621/0.4741, allocations: 13.44 MB / 482.1 MB, free: 348 kB / 346.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.4741, allocations: 0 / 482.1 MB, free: 348 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.4741, allocations: 8 kB / 482.1 MB, free: 340 kB / 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.001109/0.4752, allocations: 1.03 MB / 483.1 MB, free: 15.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.4753, allocations: 8.031 kB / 483.1 MB, free: 15.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000131/0.4754, allocations: 102.8 kB / 483.2 MB, free: 15.11 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005125/0.476, allocations: 416.8 kB / 483.6 MB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.237e-05/0.476, allocations: 19.88 kB / 483.6 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.204e-05/0.4761, allocations: 16 kB / 483.7 MB, free: 14.61 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002961/0.4764, allocations: 183.9 kB / 483.8 MB, free: 14.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004501/0.4768, allocations: 323.9 kB / 484.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.4768, allocations: 0 / 484.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.287e-05/0.4769, allocations: 12 kB / 484.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.4769, allocations: 0 / 484.2 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001209/0.4781, allocations: 0.9314 MB / 485.1 MB, free: 13.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003744/0.4785, allocations: 295.8 kB / 485.4 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002902/0.4788, allocations: 246.5 kB / 485.6 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.4788, allocations: 4 kB / 485.6 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006812/0.4795, allocations: 0.6047 MB / 486.2 MB, free: 11.88 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 1.513e-06/0.4795, allocations: 0 / 486.2 MB, free: 11.88 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.001067/0.4806, allocations: 0.672 MB / 486.9 MB, free: 11.2 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001227/0.4807, allocations: 277 kB / 487.2 MB, free: 10.87 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001499/0.4822, allocations: 1.238 MB / 488.4 MB, free: 9.613 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.134e-05/0.4823, allocations: 37.7 kB / 488.4 MB, free: 9.57 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.689e-05/0.4824, allocations: 126.5 kB / 488.6 MB, free: 9.441 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.905e-05/0.4825, allocations: 67.48 kB / 488.6 MB, free: 9.375 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.55e-05/0.4825, allocations: 8 kB / 488.6 MB, free: 9.367 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4826, allocations: 334.8 kB / 489 MB, free: 9.031 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002479/0.4829, allocations: 195.8 kB / 489.2 MB, free: 8.84 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002531/0.4832, allocations: 210.5 kB / 489.4 MB, free: 8.625 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002079/0.4834, allocations: 163.8 kB / 489.5 MB, free: 8.465 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.4834, allocations: 0 / 489.5 MB, free: 8.465 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.0008559/0.4842, allocations: 0.618 MB / 490.1 MB, free: 7.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001208/0.4844, allocations: 190.1 kB / 490.3 MB, free: 7.617 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.166e-06/0.4844, allocations: 4.141 kB / 490.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.4844, allocations: 0 / 490.3 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.872e-05/0.4844, allocations: 11.92 kB / 490.3 MB, free: 7.602 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.4845, allocations: 3.984 kB / 490.4 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002738/0.4847, allocations: 31.89 kB / 490.4 MB, free: 7.566 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.715e-05/0.4849, allocations: 99.88 kB / 490.5 MB, free: 7.469 MB / 362.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.0002552/0.4851, allocations: 346.4 kB / 490.8 MB, free: 7.086 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00103/0.4862, allocations: 0.7579 MB / 491.6 MB, free: 6.32 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001007/0.4863, allocations: 102.8 kB / 491.7 MB, free: 6.219 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002917/0.4866, allocations: 196.1 kB / 491.9 MB, free: 6.023 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.4866, allocations: 0 / 491.9 MB, free: 6.023 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.4866, allocations: 3.953 kB / 491.9 MB, free: 6.02 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.231e-06/0.4866, allocations: 7.984 kB / 491.9 MB, free: 6.012 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001828/0.4884, allocations: 1.56 MB / 493.4 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.376e-06/0.4884, allocations: 0 / 493.4 MB, free: 4.406 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.326e-06/0.4885, allocations: 3.938 kB / 493.4 MB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.4885, allocations: 4 kB / 493.4 MB, free: 4.398 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.365e-05/0.4885, allocations: 27.98 kB / 493.5 MB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/0.4885, allocations: 0 / 493.5 MB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.959e-06/0.4885, allocations: 3.953 kB / 493.5 MB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001236/0.4898, allocations: 1.036 MB / 494.5 MB, free: 3.301 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008659/0.4907, allocations: 0.5932 MB / 495.1 MB, free: 2.688 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001414/0.4908, allocations: 55.95 kB / 495.2 MB, free: 2.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000344/0.4912, allocations: 31.97 kB / 495.2 MB, free: 2.602 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002419/0.4914, allocations: 83.89 kB / 495.3 MB, free: 2.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000112/0.4915, allocations: 103.8 kB / 495.4 MB, free: 2.418 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.001266/0.4928, allocations: 1.02 MB / 496.4 MB, free: 1.387 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.373e-06/0.4928, allocations: 0 / 496.4 MB, free: 1.387 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004643/0.4933, allocations: 107.9 kB / 496.5 MB, free: 1.281 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) * 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.001689/0.495, allocations: 1.79 MB / 498.3 MB, free: 15.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001066/0.4961, allocations: 0.9493 MB / 499.2 MB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.896e-06/0.4961, allocations: 0 / 499.2 MB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007115/0.4968, allocations: 0.7815 MB / 0.4883 GB, free: 13.58 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009819/0.4978, allocations: 211.2 kB / 0.4885 GB, free: 13.37 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003673/0.5015, allocations: 1.973 MB / 0.4904 GB, free: 11.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009804/0.5025, allocations: 1.109 MB / 0.4915 GB, free: 10.21 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001481/0.5026, allocations: 25.12 kB / 0.4915 GB, free: 10.19 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.867e-05/0.5027, allocations: 63.34 kB / 0.4916 GB, free: 10.12 MB / 378.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5027, allocations: 0 / 0.4916 GB, free: 10.12 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02742/0.5302, allocations: 9.684 MB / 0.5011 GB, free: 468 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001669/0.5304, allocations: 131.4 kB / 0.5012 GB, free: 276 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.785/2.316, allocations: 0 / 0.5012 GB, free: 276 kB / 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