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.002282/0.002282, allocations: 177.8 kB / 8.36 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.016/2.016, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 91.45 kB / 262.1 MB, free: 13.86 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.414e-05/2.425e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3443/0.3443, allocations: 47.55 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1321/0.4765, allocations: 80.1 MB / 442.5 MB, free: 6.102 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002637/0.4768, allocations: 67.97 kB / 442.6 MB, free: 6.035 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.04884/0.5256, allocations: 13.32 MB / 455.9 MB, free: 8.801 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.5257, allocations: 0 / 455.9 MB, free: 8.801 MB / 347.1 MB Notification: Performance of Transformations before backend: time 2.881e-05/0.5257, allocations: 8 kB / 455.9 MB, free: 8.793 MB / 347.1 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.00175/0.5275, allocations: 1.032 MB / 457 MB, free: 7.68 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.963e-05/0.5276, allocations: 12.03 kB / 457 MB, free: 7.668 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002564/0.5278, allocations: 98.81 kB / 457.1 MB, free: 7.57 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009185/0.5288, allocations: 419.3 kB / 457.5 MB, free: 7.109 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.354e-05/0.5289, allocations: 16 kB / 457.5 MB, free: 7.094 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.811e-05/0.529, allocations: 19.94 kB / 457.5 MB, free: 7.074 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005097/0.5295, allocations: 179.9 kB / 457.7 MB, free: 6.898 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007634/0.5303, allocations: 320 kB / 458 MB, free: 6.57 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.5303, allocations: 0 / 458 MB, free: 6.57 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.422e-05/0.5304, allocations: 8 kB / 458 MB, free: 6.562 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.907e-06/0.5304, allocations: 3.953 kB / 458 MB, free: 6.559 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002041/0.5325, allocations: 0.9239 MB / 458.9 MB, free: 5.59 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006731/0.5332, allocations: 299.6 kB / 459.2 MB, free: 5.27 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000553/0.5338, allocations: 254.4 kB / 459.5 MB, free: 5.012 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.5338, allocations: 0 / 459.5 MB, free: 5.012 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00105/0.5348, allocations: 0.6094 MB / 460.1 MB, free: 4.344 MB / 347.1 MB Notification: Performance of pre-optimization done (n=30): time 2.464e-06/0.5349, allocations: 0 / 460.1 MB, free: 4.344 MB / 347.1 MB Notification: Performance of matching and sorting (n=30): time 0.003644/0.5385, allocations: 0.6785 MB / 460.8 MB, free: 3.66 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002648/0.5388, allocations: 277 kB / 461 MB, free: 3.328 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006289/0.5452, allocations: 1.231 MB / 462.3 MB, free: 2.078 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002265/0.5454, allocations: 37.7 kB / 462.3 MB, free: 2.035 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000249/0.5457, allocations: 180.8 kB / 462.5 MB, free: 1.855 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002269/0.546, allocations: 71.47 kB / 462.5 MB, free: 1.785 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.749e-05/0.546, allocations: 8 kB / 462.6 MB, free: 1.777 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0002112/0.5463, allocations: 322.8 kB / 462.9 MB, free: 1.453 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000691/0.547, allocations: 191.9 kB / 463.1 MB, free: 1.266 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.5485, allocations: 224.8 kB / 463.3 MB, free: 1.039 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005295/0.549, allocations: 155 kB / 463.4 MB, free: 0.8906 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.052e-06/0.5491, allocations: 0 / 463.4 MB, free: 0.8906 MB / 347.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.003152/0.5522, allocations: 0.608 MB / 464 MB, free: 284 kB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002602/0.5526, allocations: 190.2 kB / 464.2 MB, free: 56 kB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.525e-05/0.5526, allocations: 3.953 kB / 464.2 MB, free: 52 kB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.036e-05/0.5526, allocations: 4 kB / 464.2 MB, free: 48 kB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.716e-05/0.5527, allocations: 0 / 464.2 MB, free: 48 kB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.495e-05/0.5527, allocations: 7.984 kB / 464.2 MB, free: 40 kB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008359/0.5536, allocations: 31.89 kB / 464.3 MB, free: 8 kB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002798/0.5539, allocations: 95.86 kB / 464.4 MB, free: 15.91 MB / 363.1 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.0006575/0.5545, allocations: 348.6 kB / 464.7 MB, free: 15.53 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.003858/0.5584, allocations: 0.7637 MB / 465.5 MB, free: 14.76 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007094/0.5592, allocations: 106.8 kB / 465.6 MB, free: 14.65 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001288/0.5605, allocations: 188.1 kB / 465.8 MB, free: 14.46 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.391e-05/0.5606, allocations: 4 kB / 465.8 MB, free: 14.46 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.5606, allocations: 0 / 465.8 MB, free: 14.46 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.819e-06/0.5606, allocations: 7.984 kB / 465.8 MB, free: 14.45 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006955/0.5676, allocations: 1.557 MB / 467.3 MB, free: 12.85 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.144e-05/0.5677, allocations: 3.953 kB / 467.3 MB, free: 12.85 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.103e-05/0.5677, allocations: 0 / 467.3 MB, free: 12.85 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.939e-06/0.5677, allocations: 0 / 467.3 MB, free: 12.85 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001525/0.5679, allocations: 27.98 kB / 467.4 MB, free: 12.82 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.38e-05/0.5679, allocations: 11.22 kB / 467.4 MB, free: 12.81 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.064e-06/0.5679, allocations: 7.984 kB / 467.4 MB, free: 12.8 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003891/0.5719, allocations: 1.027 MB / 468.4 MB, free: 11.75 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003354/0.5753, allocations: 0.5891 MB / 469 MB, free: 11.14 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004034/0.5757, allocations: 55.95 kB / 469 MB, free: 11.09 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001036/0.5768, allocations: 35.88 kB / 469.1 MB, free: 11.05 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006064/0.5774, allocations: 87.77 kB / 469.2 MB, free: 10.96 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005601/0.578, allocations: 95.92 kB / 469.3 MB, free: 10.87 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.003971/0.582, allocations: 1.02 MB / 470.3 MB, free: 9.84 MB / 363.1 MB Notification: Performance of sort global known variables: time 7.91e-07/0.5821, allocations: 0 / 470.3 MB, free: 9.84 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.0009102/0.583, allocations: 108 kB / 470.4 MB, free: 9.734 MB / 363.1 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.002899/0.5859, allocations: 1.792 MB / 472.2 MB, free: 7.91 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001704/0.5877, allocations: 0.9532 MB / 473.1 MB, free: 6.883 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 5.751e-06/0.5878, allocations: 0 / 473.1 MB, free: 6.883 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001207/0.589, allocations: 0.7854 MB / 473.9 MB, free: 6.023 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001718/0.5907, allocations: 216.3 kB / 474.1 MB, free: 5.812 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006042/0.5968, allocations: 2.037 MB / 476.2 MB, free: 3.719 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001483/0.5984, allocations: 1.108 MB / 477.3 MB, free: 2.586 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001406/0.5986, allocations: 55.42 kB / 477.3 MB, free: 2.531 MB / 363.1 MB Notification: Performance of SimCode: time 1.443e-06/0.5986, allocations: 0 / 477.3 MB, free: 2.531 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.67/3.269, allocations: 6.144 MB / 483.5 MB, free: 12.39 MB / 379.1 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