Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.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.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_trunk_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 trunk/package.mo): time 0.00107/0.001071, allocations: 199.7 kB / 8.538 MB, free: 1.805 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.158/1.158, allocations: 225.5 MB / 234.4 MB, free: 3.414 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000889/0.000889, allocations: 91.34 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0985/0.09942, allocations: 56.89 MB / 343.2 MB, free: 8.625 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0835/0.1829, allocations: 51.48 MB / 394.7 MB, free: 5.082 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2231/0.406, allocations: 82.51 MB / 477.2 MB, free: 10.36 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001822/0.4063, allocations: 74.48 kB / 477.3 MB, free: 10.33 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: 147 * Number of variables: 147 Notification: Performance of Generate backend data structure: time 0.02845/0.4347, allocations: 12.44 MB / 489.7 MB, free: 28 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.8e-05/0.4348, allocations: 8 kB / 489.7 MB, free: 20 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.435, allocations: 83.7 kB / 489.8 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006969/0.4357, allocations: 493.4 kB / 490.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.248e-05/0.4357, allocations: 20.75 kB / 490.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.065e-05/0.4358, allocations: 36 kB / 490.4 MB, free: 15.46 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009972/0.4368, allocations: 0.5816 MB / 490.9 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00102/0.4379, allocations: 0.6973 MB / 491.6 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.4379, allocations: 0 / 491.6 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-05/0.4379, allocations: 0 / 491.6 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.511e-05/0.438, allocations: 16 kB / 491.6 MB, free: 14.55 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004691/0.4427, allocations: 3.231 MB / 494.9 MB, free: 11.87 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000613/0.4433, allocations: 427 kB / 495.3 MB, free: 11.61 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003536/0.4437, allocations: 253.1 kB / 495.5 MB, free: 11.47 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.764e-05/0.4437, allocations: 16.41 kB / 495.6 MB, free: 11.45 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004461/0.4442, allocations: 307.5 kB / 495.9 MB, free: 11.24 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 1.724e-06/0.4442, allocations: 4 kB / 495.9 MB, free: 11.24 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.0008652/0.445, allocations: 495.9 kB / 496.3 MB, free: 10.89 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001637/0.4452, allocations: 371.4 kB / 496.7 MB, free: 10.45 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000463/0.4457, allocations: 424.4 kB / 497.1 MB, free: 10.13 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.262e-05/0.4457, allocations: 29.7 kB / 497.2 MB, free: 10.1 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001788/0.4459, allocations: 312.5 kB / 497.5 MB, free: 9.82 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.4461, allocations: 157.4 kB / 497.6 MB, free: 9.684 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.622e-05/0.4461, allocations: 0 / 497.6 MB, free: 9.684 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001433/0.4463, allocations: 378.2 kB / 498 MB, free: 9.332 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003949/0.4467, allocations: 242.9 kB / 498.2 MB, free: 9.203 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006147/0.4473, allocations: 0.5104 MB / 498.7 MB, free: 8.703 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004446/0.4477, allocations: 262.3 kB / 499 MB, free: 8.543 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.4478, allocations: 4 kB / 499 MB, free: 8.539 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001157/0.4489, allocations: 0.7092 MB / 499.7 MB, free: 8.023 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.244e-05/0.4489, allocations: 4 kB / 499.7 MB, free: 8.02 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.082e-05/0.449, allocations: 8.844 kB / 499.7 MB, free: 8.012 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.949e-05/0.449, allocations: 12 kB / 499.7 MB, free: 8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001188/0.4502, allocations: 270.2 kB / 500 MB, free: 7.742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.41e-05/0.4502, allocations: 15.92 kB / 0.4883 GB, free: 7.727 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/0.4513, allocations: 231.6 kB / 0.4885 GB, free: 7.5 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.839e-05/0.4514, allocations: 34.11 kB / 0.4885 GB, free: 7.473 MB / 362.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.0001683/0.4516, allocations: 135.6 kB / 0.4887 GB, free: 7.336 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.045e-05/0.4517, allocations: 63.25 kB / 0.4887 GB, free: 7.273 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001632/0.4518, allocations: 62.03 kB / 0.4888 GB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.4519, allocations: 11.91 kB / 0.4888 GB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.4519, allocations: 1.75 kB / 0.4888 GB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4519, allocations: 0 / 0.4888 GB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006473/0.4525, allocations: 0.6566 MB / 0.4894 GB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4525, allocations: 0 / 0.4894 GB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009188/0.4535, allocations: 199.4 kB / 0.4896 GB, free: 6.527 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.4535, allocations: 3.938 kB / 0.4896 GB, free: 6.523 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.039e-05/0.4535, allocations: 11.48 kB / 0.4896 GB, free: 6.516 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.777e-06/0.4535, allocations: 4 kB / 0.4897 GB, free: 6.512 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.4535, allocations: 0 / 0.4897 GB, free: 6.512 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001246/0.4548, allocations: 0.8118 MB / 0.4904 GB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001816/0.4566, allocations: 1.482 MB / 0.4919 GB, free: 4.938 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001281/0.4568, allocations: 140.9 kB / 0.492 GB, free: 4.789 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001171/0.4569, allocations: 7.984 kB / 0.492 GB, free: 4.781 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008592/0.4578, allocations: 160.2 kB / 0.4922 GB, free: 4.629 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001096/0.4579, allocations: 44.67 kB / 0.4922 GB, free: 4.594 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.214e-05/0.4579, allocations: 20.92 kB / 0.4922 GB, free: 4.578 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0003158/0.4583, allocations: 319.5 kB / 0.4926 GB, free: 4.355 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001048/0.4593, allocations: 171.5 kB / 0.4927 GB, free: 4.188 MB / 362.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.0001674/0.4595, allocations: 117 kB / 0.4928 GB, free: 4.066 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009945/0.4605, allocations: 0.6369 MB / 0.4934 GB, free: 3.488 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.4605, allocations: 0 / 0.4934 GB, free: 3.488 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004341/0.4609, allocations: 273.6 kB / 0.4937 GB, free: 3.223 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.4614, allocations: 66.25 kB / 0.4938 GB, free: 3.156 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001988/0.4634, allocations: 0.8951 MB / 0.4946 GB, free: 2.234 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000792/0.4642, allocations: 0.9688 MB / 0.4956 GB, free: 1.238 MB / 362.7 MB Notification: Performance of SimCode: time 1.563e-06/0.4642, allocations: 3.938 kB / 0.4956 GB, free: 1.234 MB / 362.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)