Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.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.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER",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.001104/0.001104, allocations: 183.4 kB / 8.13 MB, free: 2.219 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.135/1.135, allocations: 221.4 MB / 229.9 MB, free: 3.25 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.0008998/0.0008997, allocations: 102.4 kB / 280.8 MB, free: 1.242 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.105/0.1059, allocations: 55.82 MB / 336.6 MB, free: 9.398 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2068/0.3127, allocations: 50.38 MB / 387 MB, free: 38.04 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08439/0.3972, allocations: 81.44 MB / 468.4 MB, free: 5.305 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002036/0.3975, allocations: 67.91 kB / 468.5 MB, free: 5.238 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0321/0.4296, allocations: 16.79 MB / 485.3 MB, free: 4.492 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.4296, allocations: 12 kB / 485.3 MB, free: 4.48 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.529e-05/0.4297, allocations: 35.53 kB / 485.3 MB, free: 4.445 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000308/0.43, allocations: 261.4 kB / 485.6 MB, free: 4.152 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.4301, allocations: 8 kB / 485.6 MB, free: 4.145 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.898e-05/0.4301, allocations: 8 kB / 485.6 MB, free: 4.137 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001221/0.4302, allocations: 51.98 kB / 485.7 MB, free: 4.086 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001854/0.4304, allocations: 121.6 kB / 485.8 MB, free: 3.961 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.4304, allocations: 0 / 485.8 MB, free: 3.961 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.378e-05/0.4305, allocations: 8.594 kB / 485.8 MB, free: 3.953 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.4305, allocations: 0 / 485.8 MB, free: 3.953 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005961/0.4311, allocations: 460.9 kB / 486.2 MB, free: 3.465 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.4312, allocations: 90.56 kB / 486.3 MB, free: 3.367 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001061/0.4313, allocations: 76.91 kB / 486.4 MB, free: 3.289 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.38e-06/0.4313, allocations: 0 / 486.4 MB, free: 3.289 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001843/0.4315, allocations: 182.7 kB / 486.6 MB, free: 3.086 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.443e-06/0.4315, allocations: 1.125 kB / 486.6 MB, free: 3.086 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003451/0.4319, allocations: 201.2 kB / 486.8 MB, free: 2.883 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.747e-05/0.432, allocations: 166.2 kB / 486.9 MB, free: 2.684 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005248/0.4325, allocations: 444.5 kB / 487.4 MB, free: 2.246 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.721e-05/0.4325, allocations: 29.7 kB / 487.4 MB, free: 2.211 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.326e-05/0.4326, allocations: 93.12 kB / 487.5 MB, free: 2.113 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.585e-05/0.4326, allocations: 27.62 kB / 487.5 MB, free: 2.086 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.918e-05/0.4326, allocations: 7.984 kB / 487.5 MB, free: 2.078 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.27e-05/0.4327, allocations: 314.8 kB / 487.8 MB, free: 1.762 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.4329, allocations: 55.98 kB / 487.9 MB, free: 1.707 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.683e-05/0.4329, allocations: 62.59 kB / 487.9 MB, free: 1.648 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.506e-05/0.433, allocations: 51.83 kB / 488 MB, free: 1.598 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.433, allocations: 1.219 kB / 488 MB, free: 1.598 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002854/0.4333, allocations: 169.5 kB / 488.2 MB, free: 1.426 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.292e-05/0.4334, allocations: 8 kB / 488.2 MB, free: 1.418 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.02e-06/0.4334, allocations: 3.906 kB / 488.2 MB, free: 1.414 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.289e-05/0.4334, allocations: 3.984 kB / 488.2 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.579e-05/0.4334, allocations: 0 / 488.2 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.198e-06/0.4334, allocations: 0 / 488.2 MB, free: 1.41 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001228/0.4335, allocations: 12 kB / 488.2 MB, free: 1.398 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.574e-05/0.4336, allocations: 59.92 kB / 488.2 MB, free: 1.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,$PRE.nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.x,$PRE.nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 4 * 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.0001652/0.4338, allocations: 245.7 kB / 488.5 MB, free: 1.066 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.609e-05/0.4338, allocations: 35.53 kB / 488.5 MB, free: 1.031 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001129/0.434, allocations: 63.36 kB / 488.6 MB, free: 0.9688 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.434, allocations: 7.984 kB / 488.6 MB, free: 0.9609 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.58e-06/0.434, allocations: 4.844 kB / 488.6 MB, free: 0.957 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.434, allocations: 0 / 488.6 MB, free: 0.957 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006027/0.4346, allocations: 0.5613 MB / 489.2 MB, free: 360 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.4346, allocations: 0 / 489.2 MB, free: 360 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.739e-06/0.4346, allocations: 4 kB / 489.2 MB, free: 356 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.4346, allocations: 0 / 489.2 MB, free: 356 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.907e-05/0.4347, allocations: 15.98 kB / 489.2 MB, free: 340 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.4347, allocations: 4 kB / 489.2 MB, free: 336 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.4347, allocations: 0 / 489.2 MB, free: 336 kB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003404/0.435, allocations: 323 kB / 489.5 MB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004401/0.4355, allocations: 0.6791 MB / 490.2 MB, free: 15.3 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003139/0.4358, allocations: 256.4 kB / 490.4 MB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.377e-05/0.4359, allocations: 8 kB / 490.4 MB, free: 15.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001514/0.436, allocations: 12 kB / 490.4 MB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001009/0.4361, allocations: 27.88 kB / 490.5 MB, free: 14.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.121e-05/0.4362, allocations: 67.92 kB / 490.5 MB, free: 14.91 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003983/0.4366, allocations: 366.9 kB / 490.9 MB, free: 14.56 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008436/0.4375, allocations: 40 kB / 490.9 MB, free: 14.52 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 13 ($whenCondition1,$whenCondition2,e_table.y,x_table.y,nXFERGATE.nextstate,nXFERGATE.yy,nXFERGATE.inertialDelaySensitive.x,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.y_old,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nXFERGATE.yy,nXFERGATE.nextstate,nXFERGATE.inertialDelaySensitive.y,nXFERGATE.inertialDelaySensitive.y_auxiliary,nXFERGATE.inertialDelaySensitive.t_next,nXFERGATE.inertialDelaySensitive.delayTime,nXFERGATE.inertialDelaySensitive.lh,nXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nXFERGATE.inertialDelaySensitive.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 4 * 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.000131/0.4376, allocations: 114.9 kB / 491 MB, free: 14.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003145/0.4379, allocations: 250.8 kB / 491.3 MB, free: 14.13 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.438, allocations: 0 / 491.3 MB, free: 14.13 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000225/0.4382, allocations: 266.8 kB / 491.6 MB, free: 13.84 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004651/0.4387, allocations: 105.2 kB / 491.7 MB, free: 13.74 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008649/0.4395, allocations: 0.5188 MB / 492.2 MB, free: 13.2 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004167/0.44, allocations: 0.8173 MB / 493 MB, free: 12.36 MB / 378.7 MB Notification: Performance of SimCode: time 4.01e-07/0.44, allocations: 0 / 493 MB, free: 12.36 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1)