Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.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.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER",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.001173/0.001173, allocations: 182 kB / 8.136 MB, free: 2.215 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.133/1.133, allocations: 221.4 MB / 229.9 MB, free: 3.078 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.0008716/0.000872, allocations: 93.34 kB / 280.8 MB, free: 1.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1063/0.1072, allocations: 55.82 MB / 336.6 MB, free: 9.422 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2029/0.3102, allocations: 50.4 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08467/0.3949, allocations: 81.45 MB / 468.4 MB, free: 5.324 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000153/0.3951, allocations: 63.97 kB / 468.5 MB, free: 5.262 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.0319/0.427, allocations: 16.78 MB / 485.3 MB, free: 4.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.908e-05/0.4271, allocations: 12 kB / 485.3 MB, free: 4.508 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.888e-05/0.4271, allocations: 35.53 kB / 485.3 MB, free: 4.473 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003288/0.4275, allocations: 261.5 kB / 485.6 MB, free: 4.18 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.201e-05/0.4275, allocations: 4 kB / 485.6 MB, free: 4.176 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.995e-05/0.4275, allocations: 11.94 kB / 485.6 MB, free: 4.164 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001339/0.4277, allocations: 51.97 kB / 485.7 MB, free: 4.113 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002058/0.4279, allocations: 117.6 kB / 485.8 MB, free: 3.992 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.304e-06/0.4279, allocations: 3.938 kB / 485.8 MB, free: 3.988 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.4279, allocations: 4 kB / 485.8 MB, free: 3.984 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.27e-06/0.428, allocations: 0.75 kB / 485.8 MB, free: 3.984 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007036/0.4287, allocations: 465 kB / 486.2 MB, free: 3.492 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001384/0.4288, allocations: 86.56 kB / 486.3 MB, free: 3.398 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001049/0.4289, allocations: 75.2 kB / 486.4 MB, free: 3.324 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.028e-05/0.429, allocations: 3.984 kB / 486.4 MB, free: 3.32 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001907/0.4291, allocations: 186.7 kB / 486.6 MB, free: 3.113 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 2.054e-06/0.4292, allocations: 0 / 486.6 MB, free: 3.113 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003599/0.4295, allocations: 205.2 kB / 486.8 MB, free: 2.906 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/0.4296, allocations: 163.1 kB / 486.9 MB, free: 2.711 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005049/0.4301, allocations: 448.5 kB / 487.4 MB, free: 2.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.289e-05/0.4302, allocations: 29.7 kB / 487.4 MB, free: 2.234 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.216e-05/0.4302, allocations: 89.14 kB / 487.5 MB, free: 2.141 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.84e-05/0.4302, allocations: 31.61 kB / 487.5 MB, free: 2.109 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.77e-05/0.4303, allocations: 8 kB / 487.5 MB, free: 2.102 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.382e-05/0.4304, allocations: 322.8 kB / 487.8 MB, free: 1.777 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.265e-05/0.4305, allocations: 51.98 kB / 487.9 MB, free: 1.727 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.373e-05/0.4306, allocations: 52 kB / 487.9 MB, free: 1.676 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.143e-05/0.4307, allocations: 52.61 kB / 488 MB, free: 1.625 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.4307, allocations: 0 / 488 MB, free: 1.625 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002948/0.431, allocations: 173.5 kB / 488.2 MB, free: 1.449 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.431, allocations: 8 kB / 488.2 MB, free: 1.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.431, allocations: 3.906 kB / 488.2 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.089e-05/0.431, allocations: 0 / 488.2 MB, free: 1.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.468e-05/0.431, allocations: 4 kB / 488.2 MB, free: 1.434 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.431, allocations: 0 / 488.2 MB, free: 1.434 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.4312, allocations: 8 kB / 488.2 MB, free: 1.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.285e-05/0.4312, allocations: 67.86 kB / 488.3 MB, free: 1.359 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,nRXFERGATE.nextstate,nRXFERGATE.yy,$PRE.nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.x,$PRE.nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.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.0001551/0.4314, allocations: 237.8 kB / 488.5 MB, free: 1.094 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.285e-05/0.4315, allocations: 35.64 kB / 488.5 MB, free: 1.059 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00011/0.4316, allocations: 75.17 kB / 488.6 MB, free: 0.9844 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.4316, allocations: 3.938 kB / 488.6 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.368e-06/0.4316, allocations: 4 kB / 488.6 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.4316, allocations: 0 / 488.6 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005923/0.4322, allocations: 0.5574 MB / 489.2 MB, free: 384 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.552e-06/0.4322, allocations: 0 / 489.2 MB, free: 384 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.041e-06/0.4322, allocations: 4 kB / 489.2 MB, free: 380 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.4322, allocations: 0 / 489.2 MB, free: 380 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.041e-05/0.4323, allocations: 11.98 kB / 489.2 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.4323, allocations: 4 kB / 489.2 MB, free: 364 kB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4323, allocations: 0 / 489.2 MB, free: 364 kB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003423/0.4326, allocations: 323 kB / 489.5 MB, free: 24 kB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004599/0.4331, allocations: 0.6832 MB / 490.2 MB, free: 15.32 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003171/0.4334, allocations: 248.5 kB / 490.4 MB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.644e-05/0.4335, allocations: 16 kB / 490.4 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001499/0.4337, allocations: 15.98 kB / 490.5 MB, free: 15.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/0.4338, allocations: 27.89 kB / 490.5 MB, free: 15 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.889e-05/0.4338, allocations: 59.92 kB / 490.5 MB, free: 14.94 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0004038/0.4343, allocations: 366.9 kB / 490.9 MB, free: 14.59 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008441/0.4351, allocations: 40 kB / 490.9 MB, free: 14.55 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,nRXFERGATE.nextstate,nRXFERGATE.yy,nRXFERGATE.inertialDelaySensitive.x,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.y_old,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.t_next) * Number of discrete states: 13 (e_table.y,x_table.y,nRXFERGATE.yy,nRXFERGATE.nextstate,nRXFERGATE.inertialDelaySensitive.y,nRXFERGATE.inertialDelaySensitive.y_auxiliary,nRXFERGATE.inertialDelaySensitive.t_next,nRXFERGATE.inertialDelaySensitive.delayTime,nRXFERGATE.inertialDelaySensitive.lh,nRXFERGATE.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,nRXFERGATE.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.0001433/0.4353, allocations: 109.9 kB / 491 MB, free: 14.43 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003305/0.4356, allocations: 258.7 kB / 491.3 MB, free: 14.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.4356, allocations: 8 kB / 491.3 MB, free: 14.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002309/0.4358, allocations: 254.8 kB / 491.6 MB, free: 13.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004698/0.4363, allocations: 90.34 kB / 491.6 MB, free: 13.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009151/0.4373, allocations: 0.5151 MB / 492.2 MB, free: 13.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004677/0.4377, allocations: 0.8289 MB / 493 MB, free: 12.39 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.4377, allocations: 4 kB / 493 MB, free: 12.39 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1)