Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NXFER,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001001/0.001001, allocations: 175 kB / 8.476 MB, free: 1.879 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.035/1.035, allocations: 205.2 MB / 214.1 MB, free: 5.105 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009115/0.0009115, allocations: 90.23 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.145/0.146, allocations: 52.96 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.05922/0.2052, allocations: 47.57 MB / 362.6 MB, free: 9.879 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1928/0.398, allocations: 80.53 MB / 443.2 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001691/0.3982, allocations: 62.23 kB / 443.2 MB, free: 10.64 MB / 314.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.02601/0.4242, allocations: 16.57 MB / 459.8 MB, free: 5.828 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.01e-05/0.4243, allocations: 8.938 kB / 459.8 MB, free: 5.828 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.307e-05/0.4244, allocations: 38.41 kB / 459.8 MB, free: 5.809 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000241/0.4246, allocations: 256.4 kB / 460.1 MB, free: 5.578 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.672e-05/0.4246, allocations: 8.531 kB / 460.1 MB, free: 5.574 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.4247, allocations: 7.906 kB / 460.1 MB, free: 5.574 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000117/0.4248, allocations: 51.92 kB / 460.2 MB, free: 5.57 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.425, allocations: 117.5 kB / 460.3 MB, free: 5.516 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.911e-06/0.425, allocations: 0 / 460.3 MB, free: 5.516 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.292e-05/0.425, allocations: 3.25 kB / 460.3 MB, free: 5.516 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.107e-06/0.425, allocations: 5 kB / 460.3 MB, free: 5.512 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005275/0.4256, allocations: 460.4 kB / 460.7 MB, free: 5.188 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001176/0.4257, allocations: 86.62 kB / 460.8 MB, free: 5.16 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.51e-05/0.4258, allocations: 79.27 kB / 460.9 MB, free: 5.145 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.62e-06/0.4258, allocations: 0 / 460.9 MB, free: 5.145 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001517/0.426, allocations: 189.2 kB / 461.1 MB, free: 5.004 MB / 314.7 MB Notification: Performance of pre-optimization done (n=13): time 1.292e-06/0.426, allocations: 4 kB / 461.1 MB, free: 5 MB / 314.7 MB Notification: Performance of matching and sorting (n=13): time 0.000313/0.4263, allocations: 195.7 kB / 461.3 MB, free: 4.934 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.657e-05/0.4263, allocations: 164 kB / 461.4 MB, free: 4.746 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004524/0.4268, allocations: 447.4 kB / 461.9 MB, free: 4.527 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.4268, allocations: 29.42 kB / 461.9 MB, free: 4.496 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.558e-05/0.4269, allocations: 95.34 kB / 462 MB, free: 4.402 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.4269, allocations: 26.66 kB / 462 MB, free: 4.383 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.896e-05/0.4269, allocations: 5.812 kB / 462 MB, free: 4.383 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 4.004e-05/0.427, allocations: 321.1 kB / 462.3 MB, free: 4.062 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001054/0.4271, allocations: 56.55 kB / 462.4 MB, free: 4.055 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001027/0.4272, allocations: 54.16 kB / 462.4 MB, free: 4.051 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.856e-05/0.4273, allocations: 50.5 kB / 462.5 MB, free: 4.039 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.4273, allocations: 0 / 462.5 MB, free: 4.039 MB / 314.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002743/0.4276, allocations: 170.1 kB / 462.7 MB, free: 3.992 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.061e-05/0.4276, allocations: 9.219 kB / 462.7 MB, free: 3.988 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.4276, allocations: 4 kB / 462.7 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.4276, allocations: 1.25 kB / 462.7 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.476e-05/0.4276, allocations: 0 / 462.7 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.886e-06/0.4276, allocations: 1.031 kB / 462.7 MB, free: 3.984 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.4278, allocations: 20.42 kB / 462.7 MB, free: 3.973 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.047e-05/0.4278, allocations: 54.97 kB / 462.7 MB, free: 3.969 MB / 314.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.0001093/0.428, allocations: 246.8 kB / 463 MB, free: 3.723 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.521e-05/0.428, allocations: 38.91 kB / 463 MB, free: 3.703 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001012/0.4281, allocations: 63.72 kB / 463.1 MB, free: 3.66 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.663e-06/0.4281, allocations: 0 / 463.1 MB, free: 3.66 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.4281, allocations: 1.75 kB / 463.1 MB, free: 3.66 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.766e-06/0.4281, allocations: 4 kB / 463.1 MB, free: 3.656 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000485/0.4286, allocations: 0.5714 MB / 463.7 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-06/0.4286, allocations: 0 / 463.7 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.478e-06/0.4286, allocations: 1.031 kB / 463.7 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.4287, allocations: 0 / 463.7 MB, free: 3.281 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.96e-05/0.4287, allocations: 15.52 kB / 463.7 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.51e-07/0.4287, allocations: 3.938 kB / 463.7 MB, free: 3.273 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.023e-06/0.4287, allocations: 3.906 kB / 463.7 MB, free: 3.27 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002909/0.429, allocations: 305.7 kB / 464 MB, free: 3.105 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003091/0.4293, allocations: 0.6915 MB / 464.7 MB, free: 2.555 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002685/0.4296, allocations: 251.1 kB / 464.9 MB, free: 2.383 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.214e-05/0.4297, allocations: 14.61 kB / 464.9 MB, free: 2.379 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001479/0.4298, allocations: 13.81 kB / 464.9 MB, free: 2.375 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.486e-05/0.4299, allocations: 32.19 kB / 465 MB, free: 2.359 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.322e-05/0.43, allocations: 64.17 kB / 465 MB, free: 2.348 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0003357/0.4303, allocations: 365.5 kB / 465.4 MB, free: 2.176 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008182/0.4311, allocations: 40.5 kB / 465.4 MB, free: 2.176 MB / 314.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 9.572e-05/0.4312, allocations: 116.1 kB / 465.5 MB, free: 2.082 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0002673/0.4315, allocations: 249.4 kB / 465.8 MB, free: 1.949 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.4315, allocations: 1.344 kB / 465.8 MB, free: 1.949 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001809/0.4317, allocations: 266.7 kB / 466.1 MB, free: 1.812 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004599/0.4322, allocations: 98.22 kB / 466.2 MB, free: 1.781 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007631/0.4329, allocations: 0.5137 MB / 466.7 MB, free: 1.531 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002532/0.4332, allocations: 0.8173 MB / 467.5 MB, free: 0.7656 MB / 314.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4332, allocations: 0 / 467.5 MB, free: 0.7656 MB / 314.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_NXFER.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.NXFER.pipe 2>&1)