Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate") [: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.1+maint.om/package.mo): time 0.004974/0.004974, allocations: 176.2 kB / 7.451 MB, free: 2.508 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.422/1.422, allocations: 170.6 MB / 178.4 MB, free: 15.4 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001805/0.001805, allocations: 111.9 kB / 217.7 MB, free: 8.176 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 8.686e-06/8.716e-06, allocations: 4 kB / 261.7 MB, free: 26.68 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08302/0.08305, allocations: 38.77 MB / 300.5 MB, free: 3.918 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2939/0.377, allocations: 69.24 MB / 369.7 MB, free: 15.35 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002414/0.3773, allocations: 68.7 kB / 369.8 MB, free: 15.31 MB / 266.7 MB Notification: Performance of FrontEnd: time 0.02932/0.4067, allocations: 10.15 MB / 380 MB, free: 6.754 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.997e-05/0.4067, allocations: 16 kB / 380 MB, free: 6.738 MB / 266.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.002577/0.4093, allocations: 1.123 MB / 381.1 MB, free: 5.602 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.405e-05/0.4094, allocations: 8.031 kB / 381.1 MB, free: 5.594 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001576/0.4095, allocations: 75.16 kB / 381.2 MB, free: 5.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005997/0.4101, allocations: 420.2 kB / 381.6 MB, free: 5.152 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.372e-05/0.4102, allocations: 23.5 kB / 381.6 MB, free: 5.133 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.552e-05/0.4103, allocations: 28 kB / 381.6 MB, free: 5.105 MB / 266.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00107/0.4114, allocations: 0.5683 MB / 382.2 MB, free: 4.773 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.4125, allocations: 0.6511 MB / 382.9 MB, free: 4.246 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/0.4125, allocations: 3.938 kB / 382.9 MB, free: 4.242 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.869e-05/0.4126, allocations: 4 kB / 382.9 MB, free: 4.238 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.365e-05/0.4126, allocations: 12 kB / 382.9 MB, free: 4.227 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005076/0.4177, allocations: 3.113 MB / 386 MB, free: 1.625 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000766/0.4185, allocations: 431.6 kB / 386.4 MB, free: 1.359 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004228/0.419, allocations: 256 kB / 386.7 MB, free: 1.219 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.557e-05/0.4191, allocations: 15.91 kB / 386.7 MB, free: 1.203 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005428/0.4196, allocations: 299.1 kB / 387 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of pre-optimization done (n=50): time 5.18e-06/0.4196, allocations: 0 / 387 MB, free: 0.9961 MB / 266.7 MB Notification: Performance of matching and sorting (n=50): time 0.001353/0.421, allocations: 483 kB / 387.4 MB, free: 0.668 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001732/0.4212, allocations: 272.7 kB / 387.7 MB, free: 352 kB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000543/0.4217, allocations: 401.7 kB / 388.1 MB, free: 40 kB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.345e-05/0.4218, allocations: 37.08 kB / 388.1 MB, free: 0 / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002361/0.422, allocations: 282.7 kB / 388.4 MB, free: 15.75 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001558/0.4222, allocations: 164.5 kB / 388.6 MB, free: 15.61 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.386e-05/0.4223, allocations: 0.75 kB / 388.6 MB, free: 15.61 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001937/0.4225, allocations: 370.8 kB / 388.9 MB, free: 15.26 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004061/0.4229, allocations: 234.7 kB / 389.2 MB, free: 15.14 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005985/0.4235, allocations: 491.6 kB / 389.7 MB, free: 14.68 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004426/0.4239, allocations: 265.2 kB / 389.9 MB, free: 14.52 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.974e-06/0.4239, allocations: 4 kB / 389.9 MB, free: 14.51 MB / 282.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001272/0.4252, allocations: 0.705 MB / 390.6 MB, free: 14 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.368e-05/0.4253, allocations: 7.906 kB / 390.6 MB, free: 14 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.148e-05/0.4253, allocations: 11.94 kB / 390.6 MB, free: 13.98 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.334e-05/0.4253, allocations: 15.98 kB / 390.7 MB, free: 13.97 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001222/0.4266, allocations: 266.4 kB / 390.9 MB, free: 13.71 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.906e-05/0.4266, allocations: 15.92 kB / 390.9 MB, free: 13.7 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00119/0.4278, allocations: 223.1 kB / 391.1 MB, free: 13.48 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.431e-05/0.4279, allocations: 39.69 kB / 391.2 MB, free: 13.45 MB / 282.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.000224/0.4281, allocations: 128.7 kB / 391.3 MB, free: 13.32 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001325/0.4282, allocations: 55.34 kB / 391.4 MB, free: 13.26 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002171/0.4285, allocations: 55.36 kB / 391.4 MB, free: 13.23 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.186e-06/0.4285, allocations: 8 kB / 391.4 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.001e-05/0.4285, allocations: 0 / 391.4 MB, free: 13.22 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.469e-05/0.4285, allocations: 11.89 kB / 391.4 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007965/0.4293, allocations: 0.6294 MB / 392.1 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.4293, allocations: 0 / 392.1 MB, free: 12.72 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009186/0.4303, allocations: 199.7 kB / 392.3 MB, free: 12.53 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.404e-06/0.4303, allocations: 4 kB / 392.3 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.506e-05/0.4303, allocations: 3.812 kB / 392.3 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.4303, allocations: 4 kB / 392.3 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.4304, allocations: 0 / 392.3 MB, free: 12.52 MB / 282.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001266/0.4316, allocations: 0.8079 MB / 393.1 MB, free: 11.99 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001393/0.4318, allocations: 140 kB / 393.2 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001182/0.4319, allocations: 4 kB / 393.2 MB, free: 11.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008848/0.4328, allocations: 159.8 kB / 393.4 MB, free: 11.69 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001542/0.433, allocations: 56.02 kB / 393.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.505e-05/0.433, allocations: 8 kB / 393.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of sort global known variables: time 0.0003704/0.4334, allocations: 303.3 kB / 393.7 MB, free: 11.42 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007307/0.4341, allocations: 147.7 kB / 393.9 MB, free: 11.28 MB / 282.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.0002127/0.4344, allocations: 115.2 kB / 394 MB, free: 11.16 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001106/0.4355, allocations: 0.634 MB / 394.6 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.4355, allocations: 0 / 394.6 MB, free: 10.73 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004588/0.4359, allocations: 280.6 kB / 394.9 MB, free: 10.55 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004367/0.4364, allocations: 71.55 kB / 395 MB, free: 10.5 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002142/0.4385, allocations: 0.8513 MB / 395.8 MB, free: 9.746 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000819/0.4394, allocations: 0.9322 MB / 396.8 MB, free: 8.793 MB / 282.7 MB Notification: Performance of SimCode: time 1.513e-06/0.4394, allocations: 4 kB / 396.8 MB, free: 8.789 MB / 282.7 MB Notification: Performance of Templates: time 0.01721/0.4566, allocations: 8.467 MB / 405.2 MB, free: 324 kB / 282.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)