Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",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.0009537/0.0009537, allocations: 182.2 kB / 8.479 MB, free: 1.848 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.077/1.077, allocations: 205.2 MB / 214.1 MB, free: 5.082 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.0008501/0.00085, allocations: 90.77 kB / 262.1 MB, free: 5.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1507/0.1516, allocations: 52.96 MB / 315.1 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06447/0.216, allocations: 47.58 MB / 362.6 MB, free: 9.836 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2015/0.4176, allocations: 78.85 MB / 441.5 MB, free: 10.84 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001757/0.4179, allocations: 74.17 kB / 441.6 MB, free: 10.84 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: 135 * Number of variables: 135 Notification: Performance of Generate backend data structure: time 0.02664/0.4445, allocations: 11.22 MB / 452.8 MB, free: 7.582 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.4445, allocations: 11.53 kB / 452.8 MB, free: 7.582 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001637/0.4447, allocations: 73.81 kB / 452.9 MB, free: 7.543 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004679/0.4452, allocations: 424.9 kB / 453.3 MB, free: 7.246 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.996e-05/0.4452, allocations: 19.19 kB / 453.3 MB, free: 7.246 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.615e-05/0.4453, allocations: 35.03 kB / 453.3 MB, free: 7.242 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008791/0.4462, allocations: 0.5662 MB / 453.9 MB, free: 7.215 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000868/0.4471, allocations: 0.6559 MB / 454.6 MB, free: 6.93 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.4471, allocations: 0 / 454.6 MB, free: 6.93 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.061e-05/0.4472, allocations: 3.844 kB / 454.6 MB, free: 6.93 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.157e-05/0.4472, allocations: 15.34 kB / 454.6 MB, free: 6.926 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003693/0.4509, allocations: 3.106 MB / 457.7 MB, free: 5.066 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005367/0.4514, allocations: 430.2 kB / 458.1 MB, free: 5.023 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000318/0.4518, allocations: 256.7 kB / 458.4 MB, free: 5.012 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.195e-05/0.4518, allocations: 15.48 kB / 458.4 MB, free: 5.004 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004204/0.4523, allocations: 305.4 kB / 458.7 MB, free: 4.906 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 1.823e-06/0.4523, allocations: 0 / 458.7 MB, free: 4.906 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008124/0.4531, allocations: 482 kB / 459.1 MB, free: 4.812 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.4531, allocations: 272 kB / 459.4 MB, free: 4.5 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003908/0.4535, allocations: 399.5 kB / 459.8 MB, free: 4.355 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.752e-05/0.4536, allocations: 32.3 kB / 459.8 MB, free: 4.32 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001097/0.4537, allocations: 289.6 kB / 460.1 MB, free: 4.094 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.8e-05/0.4538, allocations: 161.9 kB / 460.3 MB, free: 3.977 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.188e-05/0.4539, allocations: 5.344 kB / 460.3 MB, free: 3.973 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.555e-05/0.4539, allocations: 366 kB / 460.6 MB, free: 3.641 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003855/0.4543, allocations: 240.2 kB / 460.9 MB, free: 3.641 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004627/0.4548, allocations: 489.6 kB / 461.3 MB, free: 3.32 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004228/0.4552, allocations: 267.5 kB / 461.6 MB, free: 3.27 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.179e-06/0.4552, allocations: 1.25 kB / 461.6 MB, free: 3.27 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001169/0.4564, allocations: 0.7045 MB / 462.3 MB, free: 3.117 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.4564, allocations: 5.844 kB / 462.3 MB, free: 3.117 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.442e-05/0.4565, allocations: 7.188 kB / 462.3 MB, free: 3.117 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.459e-05/0.4565, allocations: 11 kB / 462.3 MB, free: 3.117 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001139/0.4576, allocations: 276.2 kB / 462.6 MB, free: 3.043 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.759e-05/0.4577, allocations: 13.45 kB / 462.6 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001081/0.4587, allocations: 221.7 kB / 462.8 MB, free: 2.945 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-05/0.4588, allocations: 32.88 kB / 462.9 MB, free: 2.945 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 28 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,$PRE.VIN1.signalSource.T_start,VIN1.signalSource.T_start,$PRE.VIN1.signalSource.count,VIN1.signalSource.count,$PRE.VIN2.signalSource.T_start,VIN2.signalSource.T_start,$PRE.VIN2.signalSource.count,VIN2.signalSource.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 87 * Array equations: 0 * Algorithm blocks: 2 * 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.0001605/0.459, allocations: 133.9 kB / 463 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.706e-05/0.4591, allocations: 66.3 kB / 463.1 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.4593, allocations: 56.89 kB / 463.1 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.184e-06/0.4593, allocations: 5.156 kB / 463.1 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.238e-05/0.4593, allocations: 1.25 kB / 463.1 MB, free: 2.766 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.137e-06/0.4593, allocations: 3.984 kB / 463.1 MB, free: 2.762 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006413/0.46, allocations: 0.6262 MB / 463.7 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.395e-06/0.46, allocations: 0 / 463.7 MB, free: 2.434 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009238/0.4609, allocations: 201.8 kB / 463.9 MB, free: 2.375 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.055e-06/0.4609, allocations: 6.156 kB / 464 MB, free: 2.371 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.022e-05/0.461, allocations: 7.188 kB / 464 MB, free: 2.371 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.02e-06/0.461, allocations: 5.75 kB / 464 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.461, allocations: 0.5938 kB / 464 MB, free: 2.367 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001303/0.4623, allocations: 0.8062 MB / 464.8 MB, free: 2.227 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001674/0.464, allocations: 1.47 MB / 466.2 MB, free: 1.715 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.587e-05/0.4641, allocations: 138.1 kB / 466.4 MB, free: 1.582 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001159/0.4642, allocations: 9.781 kB / 466.4 MB, free: 1.578 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000821/0.465, allocations: 159 kB / 466.5 MB, free: 1.523 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001198/0.4652, allocations: 49.73 kB / 466.6 MB, free: 1.504 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.616e-05/0.4652, allocations: 26.17 kB / 466.6 MB, free: 1.492 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002731/0.4655, allocations: 294.5 kB / 466.9 MB, free: 1.391 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001062/0.4666, allocations: 148.5 kB / 467 MB, free: 1.375 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Nand.C4.v,Nand.C7.v) * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,VIN1.signalSource.T_start,VIN1.signalSource.count,VIN2.signalSource.T_start,VIN2.signalSource.count) * Number of discrete states: 2 (VIN2.signalSource.count,VIN1.signalSource.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001514/0.4667, allocations: 119.4 kB / 467.2 MB, free: 1.27 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009477/0.4677, allocations: 0.6323 MB / 467.8 MB, free: 1.172 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.4677, allocations: 1.312 kB / 467.8 MB, free: 1.172 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004128/0.4681, allocations: 275.9 kB / 468.1 MB, free: 1.152 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003759/0.4685, allocations: 65.28 kB / 468.1 MB, free: 1.133 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001811/0.4703, allocations: 0.8577 MB / 469 MB, free: 0.75 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006054/0.4709, allocations: 0.9341 MB / 469.9 MB, free: 15.95 MB / 330.7 MB Notification: Performance of SimCode: time 3.1e-07/0.471, allocations: 5.344 kB / 469.9 MB, free: 15.95 MB / 330.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)