Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001176/0.001176, allocations: 193.3 kB / 8.537 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.176/1.176, allocations: 225.5 MB / 234.4 MB, free: 3.383 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008301/0.0008301, allocations: 89.75 kB / 286.3 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08849/0.08935, allocations: 56.9 MB / 343.2 MB, free: 8.633 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09059/0.1799, allocations: 51.47 MB / 394.7 MB, free: 5.105 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2362/0.4162, allocations: 82.26 MB / 477 MB, free: 10.6 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000138/0.4164, allocations: 64.98 kB / 477 MB, free: 10.58 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.02723/0.4436, allocations: 16.84 MB / 493.9 MB, free: 13.56 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.112e-05/0.4437, allocations: 12 kB / 493.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.731e-05/0.4437, allocations: 39.53 kB / 493.9 MB, free: 13.51 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002807/0.444, allocations: 259.4 kB / 494.2 MB, free: 13.23 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.835e-05/0.4441, allocations: 8.75 kB / 494.2 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.827e-05/0.4441, allocations: 4 kB / 494.2 MB, free: 13.22 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000128/0.4442, allocations: 55.42 kB / 494.2 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001842/0.4444, allocations: 118.3 kB / 494.3 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.4444, allocations: 4 kB / 494.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.16e-05/0.4445, allocations: 3.938 kB / 494.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.4445, allocations: 4 kB / 494.4 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005936/0.4451, allocations: 459.5 kB / 494.8 MB, free: 12.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001336/0.4452, allocations: 87.03 kB / 494.9 MB, free: 12.6 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.4453, allocations: 77.78 kB / 495 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.187e-06/0.4453, allocations: 0 / 495 MB, free: 12.55 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001832/0.4455, allocations: 196.4 kB / 495.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.433e-06/0.4455, allocations: 0 / 495.2 MB, free: 12.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003712/0.4459, allocations: 193.2 kB / 495.3 MB, free: 12.19 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.957e-05/0.446, allocations: 165.8 kB / 495.5 MB, free: 12 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004841/0.4465, allocations: 446.5 kB / 495.9 MB, free: 11.63 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.4465, allocations: 33.69 kB / 496 MB, free: 11.59 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.916e-05/0.4466, allocations: 92.73 kB / 496.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.625e-05/0.4466, allocations: 35.27 kB / 496.1 MB, free: 11.47 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.578e-05/0.4467, allocations: 0 / 496.1 MB, free: 11.47 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.709e-05/0.4468, allocations: 326 kB / 496.4 MB, free: 11.15 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.922e-05/0.4468, allocations: 49.94 kB / 496.5 MB, free: 11.12 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.274e-05/0.4469, allocations: 53.73 kB / 496.5 MB, free: 11.08 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.666e-05/0.447, allocations: 41.91 kB / 496.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.447, allocations: 0 / 496.6 MB, free: 11.05 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003202/0.4474, allocations: 177.2 kB / 496.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.294e-05/0.4474, allocations: 4 kB / 496.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.201e-06/0.4474, allocations: 7.984 kB / 496.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.4474, allocations: 4.109 kB / 496.8 MB, free: 10.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.932e-05/0.4474, allocations: 10.94 kB / 496.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-06/0.4474, allocations: 0 / 496.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001217/0.4476, allocations: 8 kB / 496.8 MB, free: 10.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.511e-05/0.4476, allocations: 59.92 kB / 496.8 MB, free: 10.82 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.0001504/0.4478, allocations: 232.5 kB / 497.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.725e-05/0.4479, allocations: 39.53 kB / 497.1 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001063/0.448, allocations: 69.55 kB / 497.2 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.448, allocations: 4 kB / 497.2 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.448, allocations: 0 / 497.2 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.828e-06/0.448, allocations: 3.906 kB / 497.2 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005739/0.4486, allocations: 0.5638 MB / 497.7 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.483e-06/0.4486, allocations: 0 / 497.7 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.969e-06/0.4486, allocations: 3.375 kB / 497.7 MB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.4486, allocations: 4 kB / 497.7 MB, free: 9.922 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.131e-05/0.4486, allocations: 11.98 kB / 497.8 MB, free: 9.91 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.4486, allocations: 4 kB / 497.8 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.985e-06/0.4487, allocations: 5.406 kB / 497.8 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003428/0.449, allocations: 313.3 kB / 498.1 MB, free: 9.621 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004422/0.4495, allocations: 0.6822 MB / 498.8 MB, free: 8.961 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003073/0.4498, allocations: 246.9 kB / 499 MB, free: 8.742 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.447e-05/0.4498, allocations: 15.88 kB / 499 MB, free: 8.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001459/0.45, allocations: 15.91 kB / 499 MB, free: 8.715 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.683e-05/0.4501, allocations: 25.41 kB / 499 MB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.289e-05/0.4502, allocations: 62.98 kB / 499.1 MB, free: 8.637 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003858/0.4506, allocations: 368 kB / 499.5 MB, free: 8.344 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008509/0.4514, allocations: 36 kB / 499.5 MB, free: 8.309 MB / 362.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.0001434/0.4516, allocations: 118.2 kB / 499.6 MB, free: 8.184 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000315/0.4519, allocations: 253.5 kB / 499.9 MB, free: 7.965 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.4519, allocations: 0 / 499.9 MB, free: 7.965 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002212/0.4521, allocations: 267.5 kB / 0.4884 GB, free: 7.758 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004444/0.4526, allocations: 91.41 kB / 0.4885 GB, free: 7.684 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008483/0.4534, allocations: 0.5157 MB / 0.489 GB, free: 7.199 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004037/0.4539, allocations: 0.8241 MB / 0.4898 GB, free: 6.359 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.4539, allocations: 0 / 0.4898 GB, free: 6.359 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1)