Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate") translateModel(Modelica.Electrical.Analog.Examples.NandGate,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.2+maint.om/package.mo): time 0.001915/0.001915, allocations: 192.1 kB / 8.134 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.282/1.282, allocations: 194.2 MB / 202.8 MB, free: 9.137 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001769/0.001769, allocations: 112.1 kB / 247.7 MB, free: 6.211 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.061e-06/6.161e-06, allocations: 0 / 297.6 MB, free: 8.105 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0746/0.07463, allocations: 44.49 MB / 342.1 MB, free: 11.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2053/0.28, allocations: 74.54 MB / 416.6 MB, free: 20.7 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002006/0.2802, allocations: 69.97 kB / 416.7 MB, free: 20.67 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.02642/0.3067, allocations: 10.04 MB / 426.7 MB, free: 12.3 MB / 314.7 MB Notification: Performance of Transformations before backend: time 3.507e-05/0.3068, allocations: 19.44 kB / 426.7 MB, free: 12.29 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.002709/0.3095, allocations: 1.119 MB / 427.8 MB, free: 11.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.28e-05/0.3095, allocations: 12.02 kB / 427.9 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002089/0.3097, allocations: 71.16 kB / 427.9 MB, free: 11.07 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005775/0.3103, allocations: 422.3 kB / 428.3 MB, free: 10.7 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.816e-05/0.3104, allocations: 31.14 kB / 428.4 MB, free: 10.67 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000103/0.3105, allocations: 32 kB / 428.4 MB, free: 10.64 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001023/0.3115, allocations: 0.5594 MB / 429 MB, free: 10.32 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009947/0.3125, allocations: 0.6565 MB / 429.6 MB, free: 9.781 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.841e-05/0.3126, allocations: 4.688 kB / 429.6 MB, free: 9.777 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.828e-05/0.3126, allocations: 0 / 429.6 MB, free: 9.777 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.273e-05/0.3127, allocations: 16 kB / 429.6 MB, free: 9.762 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004395/0.3171, allocations: 3.104 MB / 432.7 MB, free: 7.176 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000654/0.3177, allocations: 429.3 kB / 433.2 MB, free: 6.91 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003635/0.3181, allocations: 256.1 kB / 433.4 MB, free: 6.77 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.606e-05/0.3182, allocations: 19.91 kB / 433.4 MB, free: 6.754 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004434/0.3186, allocations: 294.8 kB / 433.7 MB, free: 6.551 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 2.745e-06/0.3186, allocations: 3.469 kB / 433.7 MB, free: 6.551 MB / 314.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008523/0.3195, allocations: 481.7 kB / 434.2 MB, free: 6.223 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.143e-05/0.3196, allocations: 272.6 kB / 434.5 MB, free: 5.898 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000408/0.32, allocations: 407.8 kB / 434.9 MB, free: 5.59 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.054e-05/0.32, allocations: 25.7 kB / 434.9 MB, free: 5.559 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000131/0.3202, allocations: 289.5 kB / 435.2 MB, free: 5.305 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001101/0.3203, allocations: 168.4 kB / 435.3 MB, free: 5.16 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.426e-05/0.3203, allocations: 0 / 435.3 MB, free: 5.16 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.097e-05/0.3204, allocations: 361.1 kB / 435.7 MB, free: 4.82 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003927/0.3208, allocations: 242.5 kB / 435.9 MB, free: 4.695 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004914/0.3213, allocations: 484.9 kB / 436.4 MB, free: 4.238 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004083/0.3217, allocations: 268.2 kB / 436.7 MB, free: 4.078 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.3218, allocations: 4 kB / 436.7 MB, free: 4.074 MB / 314.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00115/0.3229, allocations: 0.7074 MB / 437.4 MB, free: 3.559 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.683e-05/0.3229, allocations: 8 kB / 437.4 MB, free: 3.551 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.42e-05/0.323, allocations: 4 kB / 437.4 MB, free: 3.547 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.641e-05/0.323, allocations: 12 kB / 437.4 MB, free: 3.535 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001241/0.3242, allocations: 270.1 kB / 437.6 MB, free: 3.277 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.695e-05/0.3243, allocations: 19.92 kB / 437.7 MB, free: 3.258 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001255/0.3255, allocations: 223.1 kB / 437.9 MB, free: 3.039 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.091e-05/0.3256, allocations: 34.5 kB / 437.9 MB, free: 3.012 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.00017/0.3258, allocations: 131.6 kB / 438 MB, free: 2.879 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.559e-05/0.3259, allocations: 59.25 kB / 438.1 MB, free: 2.82 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001697/0.3261, allocations: 62.22 kB / 438.2 MB, free: 2.785 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/0.3261, allocations: 4 kB / 438.2 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/0.3261, allocations: 0 / 438.2 MB, free: 2.781 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.649e-06/0.3261, allocations: 3.984 kB / 438.2 MB, free: 2.777 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006461/0.3268, allocations: 0.6254 MB / 438.8 MB, free: 2.285 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.654e-06/0.3268, allocations: 0 / 438.8 MB, free: 2.285 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009232/0.3277, allocations: 198.1 kB / 439 MB, free: 2.098 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.422e-06/0.3277, allocations: 0 / 439 MB, free: 2.098 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.461e-05/0.3278, allocations: 7.984 kB / 439 MB, free: 2.09 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.368e-06/0.3278, allocations: 9.031 kB / 439 MB, free: 2.082 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.3278, allocations: 11.94 kB / 439 MB, free: 2.07 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001213/0.329, allocations: 0.8028 MB / 439.8 MB, free: 1.555 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001231/0.3292, allocations: 136.1 kB / 440 MB, free: 1.41 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001314/0.3293, allocations: 7.906 kB / 440 MB, free: 1.402 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008729/0.3302, allocations: 161.1 kB / 440.1 MB, free: 1.246 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001322/0.3303, allocations: 47.42 kB / 440.2 MB, free: 1.211 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.603e-05/0.3304, allocations: 15.81 kB / 440.2 MB, free: 1.199 MB / 314.7 MB Notification: Performance of sort global known variables: time 0.0002698/0.3307, allocations: 302.8 kB / 440.5 MB, free: 0.9844 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0005273/0.3312, allocations: 147.7 kB / 440.6 MB, free: 0.8398 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.0001602/0.3314, allocations: 108.4 kB / 440.7 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009085/0.3323, allocations: 0.6362 MB / 441.4 MB, free: 300 kB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3323, allocations: 1.688 kB / 441.4 MB, free: 300 kB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003987/0.3327, allocations: 280.5 kB / 441.6 MB, free: 124 kB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000399/0.3331, allocations: 59.22 kB / 441.7 MB, free: 84 kB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/0.3354, allocations: 0.8526 MB / 442.6 MB, free: 15.34 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000881/0.3363, allocations: 0.9366 MB / 443.5 MB, free: 14.38 MB / 330.7 MB Notification: Performance of SimCode: time 3e-07/0.3363, allocations: 0 / 443.5 MB, free: 14.38 MB / 330.7 MB Notification: Performance of Templates: time 0.01587/0.3522, allocations: 8.479 MB / 452 MB, free: 5.992 MB / 330.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.sim & ./Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)