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.002447/0.002446, allocations: 181 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.089/2.089, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001151/0.001151, allocations: 86.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.572e-05/3.59e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.104/0.1041, allocations: 47.57 MB / 369.2 MB, free: 2.121 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4419/0.5461, allocations: 80.75 MB / 449.9 MB, free: 12.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002728/0.5464, allocations: 70.22 kB / 450 MB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04889/0.5953, allocations: 13.4 MB / 463.4 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5954, allocations: 0 / 463.4 MB, free: 0.9336 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.57e-05/0.5954, allocations: 12 kB / 463.4 MB, free: 0.9219 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.001789/0.5972, allocations: 1.038 MB / 464.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.013e-05/0.5973, allocations: 8.031 kB / 464.5 MB, free: 15.8 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001719/0.5975, allocations: 46.56 kB / 464.5 MB, free: 15.74 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002413/0.5977, allocations: 102.8 kB / 464.6 MB, free: 15.64 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009448/0.5987, allocations: 412.9 kB / 465 MB, free: 15.18 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.04e-05/0.5988, allocations: 12 kB / 465 MB, free: 15.17 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.666e-05/0.5989, allocations: 20 kB / 465 MB, free: 15.15 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008812/0.5998, allocations: 344.5 kB / 465.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.203e-05/0.5998, allocations: 0 / 465.4 MB, free: 14.8 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.126e-05/0.5999, allocations: 7.984 kB / 465.4 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.768e-06/0.5999, allocations: 7.953 kB / 465.4 MB, free: 14.79 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005314/0.6005, allocations: 195.8 kB / 465.6 MB, free: 14.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002137/0.6026, allocations: 0.9626 MB / 466.5 MB, free: 13.57 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007058/0.6034, allocations: 307.8 kB / 466.8 MB, free: 13.25 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005938/0.604, allocations: 266.5 kB / 467.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.126e-05/0.604, allocations: 0 / 467.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001087/0.6051, allocations: 0.5704 MB / 467.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of pre-optimization done (n=30): time 2.966e-06/0.6051, allocations: 0 / 467.7 MB, free: 12.35 MB / 346.7 MB Notification: Performance of matching and sorting (n=30): time 0.002228/0.6074, allocations: 0.8814 MB / 468.6 MB, free: 11.42 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002186/0.6076, allocations: 285 kB / 468.8 MB, free: 11.08 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003353/0.611, allocations: 1.27 MB / 470.1 MB, free: 9.789 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001887/0.6112, allocations: 41.7 kB / 470.1 MB, free: 9.742 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001564/0.6114, allocations: 180.9 kB / 470.3 MB, free: 9.562 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001537/0.6116, allocations: 75.19 kB / 470.4 MB, free: 9.488 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.456e-05/0.6117, allocations: 4 kB / 470.4 MB, free: 9.484 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001638/0.6118, allocations: 322.8 kB / 470.7 MB, free: 9.16 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005516/0.6124, allocations: 207.9 kB / 470.9 MB, free: 8.957 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005715/0.613, allocations: 231.4 kB / 471.1 MB, free: 8.723 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000613/0.6136, allocations: 350.1 kB / 471.5 MB, free: 8.344 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.6136, allocations: 0 / 471.5 MB, free: 8.344 MB / 346.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001933/0.6156, allocations: 0.8233 MB / 472.3 MB, free: 7.477 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001923/0.6158, allocations: 186.2 kB / 472.5 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.6158, allocations: 4 kB / 472.5 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.119e-05/0.6159, allocations: 0 / 472.5 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.101e-05/0.6159, allocations: 11.94 kB / 472.5 MB, free: 7.242 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.174e-05/0.6159, allocations: 3.984 kB / 472.5 MB, free: 7.238 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000591/0.6165, allocations: 31.89 kB / 472.5 MB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001729/0.6167, allocations: 99.8 kB / 472.6 MB, free: 7.109 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.0004768/0.6172, allocations: 352.7 kB / 473 MB, free: 6.719 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002184/0.6174, allocations: 110.7 kB / 473.1 MB, free: 6.609 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006295/0.6181, allocations: 188.1 kB / 473.3 MB, free: 6.426 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.6181, allocations: 7.938 kB / 473.3 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.6181, allocations: 0 / 473.3 MB, free: 6.418 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.6181, allocations: 3.984 kB / 473.3 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003857/0.622, allocations: 1.827 MB / 475.1 MB, free: 4.492 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.32e-06/0.622, allocations: 4 kB / 475.1 MB, free: 4.488 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.221e-05/0.6221, allocations: 4 kB / 475.1 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.803e-06/0.6221, allocations: 0 / 475.1 MB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.698e-05/0.6222, allocations: 31.97 kB / 475.2 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.647e-06/0.6222, allocations: 0 / 475.2 MB, free: 4.453 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.421e-06/0.6222, allocations: 7.938 kB / 475.2 MB, free: 4.445 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002514/0.6247, allocations: 1.269 MB / 476.4 MB, free: 3.109 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001913/0.6267, allocations: 0.5891 MB / 477 MB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002572/0.627, allocations: 59.95 kB / 477.1 MB, free: 2.441 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006519/0.6277, allocations: 31.97 kB / 477.1 MB, free: 2.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003232/0.628, allocations: 95.73 kB / 477.2 MB, free: 2.316 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001794/0.6282, allocations: 95.92 kB / 477.3 MB, free: 2.223 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.003282/0.6315, allocations: 1.071 MB / 478.4 MB, free: 1.137 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.292e-06/0.6315, allocations: 3.938 kB / 478.4 MB, free: 1.133 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008745/0.6324, allocations: 108 kB / 478.5 MB, free: 1.027 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.003396/0.6358, allocations: 2.017 MB / 480.5 MB, free: 14.93 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001882/0.6378, allocations: 0.9767 MB / 481.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.6378, allocations: 0 / 481.5 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001277/0.6391, allocations: 0.7932 MB / 482.3 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001736/0.6409, allocations: 211.9 kB / 482.5 MB, free: 12.81 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006109/0.647, allocations: 2.069 MB / 484.5 MB, free: 10.68 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001424/0.6485, allocations: 1.105 MB / 485.6 MB, free: 9.551 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001345/0.6487, allocations: 51.42 kB / 485.7 MB, free: 9.5 MB / 362.7 MB Notification: Performance of SimCode: time 1.593e-06/0.6487, allocations: 0 / 485.7 MB, free: 9.5 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.737/3.385, allocations: 6.177 MB / 491.9 MB, free: 3.316 MB / 362.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