Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.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.NRXFER,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.NRXFER,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.001061/0.001061, allocations: 195.7 kB / 8.539 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.185/1.185, allocations: 225.5 MB / 234.4 MB, free: 3.309 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008671/0.0008672, allocations: 91.61 kB / 286.3 MB, free: 5.285 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0935/0.09439, allocations: 56.91 MB / 343.2 MB, free: 8.598 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07581/0.1702, allocations: 51.47 MB / 394.7 MB, free: 5.059 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2001/0.3703, allocations: 82.26 MB / 477 MB, free: 10.11 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001576/0.3705, allocations: 65.73 kB / 477 MB, free: 10.08 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.02606/0.3966, allocations: 16.84 MB / 493.9 MB, free: 13.19 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.115e-05/0.3966, allocations: 12 kB / 493.9 MB, free: 13.18 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.007e-05/0.3967, allocations: 35.53 kB / 493.9 MB, free: 13.14 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002877/0.397, allocations: 259.3 kB / 494.2 MB, free: 12.86 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.815e-05/0.397, allocations: 8 kB / 494.2 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.622e-05/0.3971, allocations: 4 kB / 494.2 MB, free: 12.85 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001214/0.3972, allocations: 60.42 kB / 494.2 MB, free: 12.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001816/0.3974, allocations: 126.3 kB / 494.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.702e-06/0.3974, allocations: 3.094 kB / 494.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.203e-05/0.3974, allocations: 3.312 kB / 494.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.3974, allocations: 4 kB / 494.4 MB, free: 12.69 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005849/0.398, allocations: 443.2 kB / 494.8 MB, free: 12.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.3982, allocations: 90 kB / 494.9 MB, free: 12.23 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.3983, allocations: 78.34 kB / 495 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.721e-06/0.3983, allocations: 0 / 495 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001766/0.3985, allocations: 182.2 kB / 495.1 MB, free: 12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=13): time 1.413e-06/0.3985, allocations: 0 / 495.1 MB, free: 12 MB / 362.7 MB Notification: Performance of matching and sorting (n=13): time 0.0003382/0.3988, allocations: 195.7 kB / 495.3 MB, free: 11.83 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.937e-05/0.3989, allocations: 173.8 kB / 495.5 MB, free: 11.63 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004776/0.3994, allocations: 444.1 kB / 495.9 MB, free: 11.27 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.083e-05/0.3994, allocations: 33.64 kB / 496 MB, free: 11.23 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.771e-05/0.3995, allocations: 96.28 kB / 496.1 MB, free: 11.13 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.851e-05/0.3995, allocations: 22.78 kB / 496.1 MB, free: 11.11 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.573e-05/0.3996, allocations: 3.125 kB / 496.1 MB, free: 11.11 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.239e-05/0.3996, allocations: 322.3 kB / 496.4 MB, free: 10.79 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.439e-05/0.3997, allocations: 56.05 kB / 496.5 MB, free: 10.76 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.107e-05/0.3998, allocations: 52.98 kB / 496.5 MB, free: 10.72 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.509e-05/0.3999, allocations: 44.84 kB / 496.6 MB, free: 10.69 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.3999, allocations: 0 / 496.6 MB, free: 10.69 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002721/0.4002, allocations: 184.4 kB / 496.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.4002, allocations: 4 kB / 496.7 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.4002, allocations: 4 kB / 496.7 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.898e-06/0.4002, allocations: 0 / 496.7 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.644e-05/0.4003, allocations: 112 / 496.7 MB, free: 10.53 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.246e-06/0.4003, allocations: 3.938 kB / 496.7 MB, free: 10.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.4004, allocations: 22.92 kB / 496.8 MB, free: 10.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-05/0.4005, allocations: 55.94 kB / 496.8 MB, free: 10.45 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.0001445/0.4006, allocations: 240.4 kB / 497.1 MB, free: 10.19 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.625e-05/0.4007, allocations: 39.53 kB / 497.1 MB, free: 10.15 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001031/0.4008, allocations: 66.11 kB / 497.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.4008, allocations: 4 kB / 497.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.4008, allocations: 1.406 kB / 497.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.4008, allocations: 3.906 kB / 497.2 MB, free: 10.08 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005735/0.4014, allocations: 0.5664 MB / 497.7 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.4014, allocations: 0 / 497.7 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.399e-06/0.4014, allocations: 0 / 497.7 MB, free: 9.555 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.4014, allocations: 4 kB / 497.7 MB, free: 9.551 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.099e-05/0.4015, allocations: 11.98 kB / 497.8 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.4015, allocations: 0 / 497.8 MB, free: 9.539 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.4015, allocations: 7.906 kB / 497.8 MB, free: 9.531 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000327/0.4018, allocations: 305 kB / 498.1 MB, free: 9.258 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004123/0.4022, allocations: 0.6877 MB / 498.7 MB, free: 8.594 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002935/0.4025, allocations: 251.3 kB / 499 MB, free: 8.371 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.165e-05/0.4026, allocations: 11.94 kB / 499 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.4028, allocations: 15.89 kB / 499 MB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.73e-05/0.4028, allocations: 23.66 kB / 499 MB, free: 8.328 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.038e-05/0.4029, allocations: 63.47 kB / 499.1 MB, free: 8.273 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003595/0.4033, allocations: 371.7 kB / 499.5 MB, free: 7.977 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008168/0.4041, allocations: 40 kB / 499.5 MB, free: 7.938 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,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.0001151/0.4042, allocations: 117.9 kB / 499.6 MB, free: 7.812 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000299/0.4045, allocations: 260.3 kB / 499.9 MB, free: 7.586 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.4045, allocations: 0 / 499.9 MB, free: 7.586 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002068/0.4048, allocations: 263.4 kB / 0.4884 GB, free: 7.383 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004321/0.4052, allocations: 97.5 kB / 0.4885 GB, free: 7.305 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008422/0.406, allocations: 0.5148 MB / 0.489 GB, free: 6.824 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003795/0.4064, allocations: 0.8205 MB / 0.4898 GB, free: 5.988 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.4064, allocations: 0 / 0.4898 GB, free: 5.988 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER_fmu --startTime=0 --stopTime=12 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_NRXFER.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.NRXFER.pipe 2>&1)