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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001213/0.001213, allocations: 182.8 kB / 8.138 MB, free: 2.223 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.125/1.125, allocations: 221.4 MB / 229.9 MB, free: 3.055 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.0008974/0.0008974, allocations: 91.39 kB / 280.8 MB, free: 1.215 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0957/0.09663, allocations: 55.82 MB / 336.6 MB, free: 9.375 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2022/0.2988, allocations: 50.39 MB / 387 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08349/0.3824, allocations: 80.94 MB / 467.9 MB, free: 5.812 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001989/0.3826, allocations: 67.91 kB / 468 MB, free: 5.746 MB / 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.02734/0.41, allocations: 14.04 MB / 482 MB, free: 7.707 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.41, allocations: 11.98 kB / 482.1 MB, free: 7.695 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001258/0.4101, allocations: 102.8 kB / 482.2 MB, free: 7.594 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005512/0.4107, allocations: 424.8 kB / 482.6 MB, free: 7.125 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.785e-05/0.4108, allocations: 12.84 kB / 482.6 MB, free: 7.113 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.575e-05/0.4108, allocations: 16 kB / 482.6 MB, free: 7.098 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003089/0.4111, allocations: 187.9 kB / 482.8 MB, free: 6.914 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004549/0.4116, allocations: 335.9 kB / 483.1 MB, free: 6.57 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.4116, allocations: 0 / 483.1 MB, free: 6.57 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.991e-05/0.4116, allocations: 8 kB / 483.1 MB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.4117, allocations: 0 / 483.1 MB, free: 6.562 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001322/0.413, allocations: 0.9626 MB / 484.1 MB, free: 5.555 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003533/0.4133, allocations: 291.7 kB / 484.4 MB, free: 5.242 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003052/0.4137, allocations: 270.5 kB / 484.6 MB, free: 4.969 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.322e-05/0.4137, allocations: 4 kB / 484.6 MB, free: 4.965 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005279/0.4142, allocations: 0.5433 MB / 485.2 MB, free: 4.363 MB / 362.7 MB Notification: Performance of pre-optimization done (n=30): time 1.383e-06/0.4142, allocations: 0 / 485.2 MB, free: 4.363 MB / 362.7 MB Notification: Performance of matching and sorting (n=30): time 0.0007917/0.415, allocations: 0.508 MB / 485.7 MB, free: 3.848 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001308/0.4152, allocations: 277 kB / 486 MB, free: 3.516 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001603/0.4168, allocations: 1.246 MB / 487.2 MB, free: 2.25 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.087e-05/0.4169, allocations: 37.69 kB / 487.2 MB, free: 2.207 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.734e-05/0.4169, allocations: 110.4 kB / 487.3 MB, free: 2.094 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.49e-05/0.417, allocations: 63.55 kB / 487.4 MB, free: 2.031 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.074e-05/0.4171, allocations: 4 kB / 487.4 MB, free: 2.027 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001589/0.4172, allocations: 334.8 kB / 487.7 MB, free: 1.691 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002891/0.4175, allocations: 211.7 kB / 487.9 MB, free: 1.484 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002765/0.4178, allocations: 226.5 kB / 488.2 MB, free: 1.254 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002419/0.4181, allocations: 161.4 kB / 488.3 MB, free: 1.098 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.4181, allocations: 0 / 488.3 MB, free: 1.098 MB / 362.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000699/0.4188, allocations: 483.3 kB / 488.8 MB, free: 0.6211 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.979e-05/0.4188, allocations: 6.969 kB / 488.8 MB, free: 0.6172 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.645e-06/0.4188, allocations: 4 kB / 488.8 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.4188, allocations: 0 / 488.8 MB, free: 0.6133 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.992e-05/0.4189, allocations: 4 kB / 488.8 MB, free: 0.6094 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.781e-06/0.4189, allocations: 4 kB / 488.8 MB, free: 0.6055 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003195/0.4192, allocations: 32.06 kB / 488.8 MB, free: 0.5742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001184/0.4193, allocations: 87.94 kB / 488.9 MB, free: 500 kB / 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.0003362/0.4197, allocations: 339.2 kB / 489.3 MB, free: 120 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.4198, allocations: 102.8 kB / 489.4 MB, free: 16 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003318/0.4202, allocations: 203.9 kB / 489.6 MB, free: 15.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.239e-06/0.4202, allocations: 4 kB / 489.6 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.4202, allocations: 0 / 489.6 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.4202, allocations: 0 / 489.6 MB, free: 15.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001622/0.4218, allocations: 1.384 MB / 490.9 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.4218, allocations: 0 / 490.9 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.037e-05/0.4219, allocations: 7.922 kB / 491 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/0.4219, allocations: 4 kB / 491 MB, free: 14.37 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.464e-05/0.4219, allocations: 31.98 kB / 491 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.197e-06/0.4219, allocations: 4 kB / 491 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4219, allocations: 3.938 kB / 491 MB, free: 14.33 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0008924/0.4228, allocations: 0.8644 MB / 491.9 MB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001003/0.4239, allocations: 1.236 MB / 493.1 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009197/0.4248, allocations: 0.6049 MB / 493.7 MB, free: 11.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001598/0.425, allocations: 55.88 kB / 493.8 MB, free: 11.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003855/0.4253, allocations: 39.91 kB / 493.8 MB, free: 11.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001914/0.4255, allocations: 83.88 kB / 493.9 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001047/0.4257, allocations: 95.92 kB / 494 MB, free: 11.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.001279/0.4269, allocations: 1.036 MB / 495 MB, free: 10.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001055/0.428, allocations: 92 kB / 495.1 MB, free: 10.14 MB / 378.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.0002313/0.4282, allocations: 179.3 kB / 495.3 MB, free: 9.949 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007966/0.4291, allocations: 0.6269 MB / 495.9 MB, free: 9.285 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.4291, allocations: 4 kB / 495.9 MB, free: 9.281 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005766/0.4296, allocations: 0.6348 MB / 496.5 MB, free: 8.609 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008787/0.4305, allocations: 205.4 kB / 496.7 MB, free: 8.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002685/0.4332, allocations: 1.806 MB / 498.5 MB, free: 6.562 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008364/0.4341, allocations: 1.116 MB / 499.7 MB, free: 5.418 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.4341, allocations: 0 / 499.7 MB, free: 5.418 MB / 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)