Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.VectorDelay.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.VectorDelay,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_VectorDelay",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.653/1.653, allocations: 171.1 MB / 186.1 MB, free: 1.137 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003607/0.0003608, allocations: 8 kB / 233.4 MB, free: 2.273 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08075/0.08115, allocations: 38.78 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3844/0.4656, allocations: 71.28 MB / 343.4 MB, free: 1.902 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003113/0.466, allocations: 76.67 kB / 343.5 MB, free: 1.863 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06974/0.5358, allocations: 13.3 MB / 356.8 MB, free: 6.523 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.405e-06/0.5358, allocations: 0 / 356.8 MB, free: 6.523 MB / 282.7 MB Notification: Performance of Transformations before backend: time 3.525e-05/0.5359, allocations: 12 kB / 356.8 MB, free: 6.512 MB / 282.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.001913/0.5378, allocations: 1.172 MB / 358 MB, free: 5.297 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.33e-05/0.5379, allocations: 12.03 kB / 358 MB, free: 5.285 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000159/0.538, allocations: 50.31 kB / 358 MB, free: 5.23 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001981/0.5382, allocations: 99.56 kB / 358.1 MB, free: 5.133 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009422/0.5392, allocations: 415.5 kB / 358.5 MB, free: 4.691 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.453e-05/0.5393, allocations: 19.81 kB / 358.6 MB, free: 4.676 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.358e-05/0.5394, allocations: 13.5 kB / 358.6 MB, free: 4.664 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001104/0.5405, allocations: 354.1 kB / 358.9 MB, free: 4.379 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.5406, allocations: 0 / 358.9 MB, free: 4.379 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.343e-05/0.5406, allocations: 8 kB / 358.9 MB, free: 4.371 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.5407, allocations: 3.953 kB / 358.9 MB, free: 4.367 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006721/0.5413, allocations: 209.5 kB / 359.1 MB, free: 4.219 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002098/0.5435, allocations: 0.9614 MB / 360.1 MB, free: 3.34 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008784/0.5444, allocations: 315.7 kB / 360.4 MB, free: 3.098 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.5444, allocations: 0 / 360.4 MB, free: 3.098 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001179/0.5456, allocations: 0.5881 MB / 361 MB, free: 2.531 MB / 282.7 MB Notification: Performance of pre-optimization done (n=30): time 2.685e-06/0.5456, allocations: 0 / 361 MB, free: 2.531 MB / 282.7 MB Notification: Performance of matching and sorting (n=30): time 0.00329/0.5489, allocations: 1.347 MB / 362.3 MB, free: 1.305 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001966/0.5492, allocations: 286.6 kB / 362.6 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004832/0.554, allocations: 1.281 MB / 363.9 MB, free: 15.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002187/0.5543, allocations: 45.06 kB / 363.9 MB, free: 15.82 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001646/0.5545, allocations: 122.3 kB / 364.1 MB, free: 15.72 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002139/0.5547, allocations: 66.12 kB / 364.1 MB, free: 15.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.938e-05/0.5548, allocations: 11.44 kB / 364.1 MB, free: 15.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0002096/0.5551, allocations: 336.6 kB / 364.5 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001007/0.5561, allocations: 195.2 kB / 364.7 MB, free: 15.2 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00107/0.5572, allocations: 248.5 kB / 364.9 MB, free: 15 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00114/0.5584, allocations: 360.9 kB / 365.2 MB, free: 14.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.5584, allocations: 0 / 365.2 MB, free: 14.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.003569/0.562, allocations: 0.834 MB / 366.1 MB, free: 13.96 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0003032/0.5624, allocations: 195.3 kB / 366.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.369e-05/0.5624, allocations: 0 / 366.3 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.033e-05/0.5624, allocations: 4 kB / 366.3 MB, free: 13.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.85e-05/0.5625, allocations: 8.031 kB / 366.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.511e-05/0.5626, allocations: 4 kB / 366.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009393/0.5635, allocations: 47.31 kB / 366.3 MB, free: 13.69 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002729/0.5638, allocations: 95.86 kB / 366.4 MB, free: 13.59 MB / 298.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.002513/0.5663, allocations: 0.7835 MB / 367.2 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003434/0.5667, allocations: 103.1 kB / 367.3 MB, free: 12.74 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009383/0.5677, allocations: 197 kB / 367.5 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.5677, allocations: 7.984 kB / 367.5 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.087e-06/0.5677, allocations: 0 / 367.5 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.614e-06/0.5678, allocations: 4 kB / 367.5 MB, free: 12.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00657/0.5744, allocations: 1.848 MB / 369.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.284e-05/0.5744, allocations: 0 / 369.4 MB, free: 10.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.548e-05/0.5745, allocations: 7.922 kB / 369.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-05/0.5745, allocations: 4 kB / 369.4 MB, free: 10.92 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001344/0.5747, allocations: 31.55 kB / 369.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.154e-06/0.5747, allocations: 0 / 369.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.238e-06/0.5747, allocations: 0 / 369.4 MB, free: 10.89 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00427/0.579, allocations: 1.287 MB / 370.7 MB, free: 9.742 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002661/0.5817, allocations: 0.5949 MB / 371.3 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003843/0.5821, allocations: 50.97 kB / 371.3 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001053/0.5832, allocations: 39.44 kB / 371.4 MB, free: 9.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004715/0.5837, allocations: 83.06 kB / 371.5 MB, free: 9.117 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002948/0.584, allocations: 95.55 kB / 371.6 MB, free: 9.027 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.004139/0.5882, allocations: 1.079 MB / 372.6 MB, free: 8.105 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.082e-06/0.5883, allocations: 0 / 372.6 MB, free: 8.105 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001383/0.5897, allocations: 107.8 kB / 372.7 MB, free: 8.004 MB / 298.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.005165/0.5949, allocations: 2.036 MB / 374.8 MB, free: 6.105 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00324/0.5982, allocations: 1.016 MB / 375.8 MB, free: 5.289 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 5.07e-06/0.5983, allocations: 192 / 375.8 MB, free: 5.289 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001279/0.5995, allocations: 0.8017 MB / 376.6 MB, free: 4.645 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001636/0.6012, allocations: 204.7 kB / 376.8 MB, free: 4.477 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01115/0.6124, allocations: 4.848 MB / 381.6 MB, free: 112 kB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001427/0.6139, allocations: 1.1 MB / 382.7 MB, free: 15.02 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0001928/0.6141, allocations: 29.95 kB / 382.8 MB, free: 14.98 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.6142, allocations: 55.97 kB / 382.8 MB, free: 14.97 MB / 314.7 MB Notification: Performance of SimCode: time 1.163e-06/0.6142, allocations: 4 kB / 382.8 MB, free: 14.96 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03932/0.6536, allocations: 10.37 MB / 393.2 MB, free: 4.652 MB / 314.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004305/0.6541, allocations: 178.2 kB / 393.4 MB, free: 4.41 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.533/3.187, allocations: 3.938 kB / 393.4 MB, free: 4.406 MB / 314.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.VectorDelay_res.mat does not exist to compare? outputFormat=mat