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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001127/0.001126, allocations: 202 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.198/1.198, allocations: 227.2 MB / 245 MB, free: 5.906 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000821/0.0008208, allocations: 98.75 kB / 297.3 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002142/0.0002143, allocations: 8 kB / 358 MB, free: 9.223 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1819/0.1822, allocations: 51.48 MB / 409.5 MB, free: 26.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09241/0.2746, allocations: 83.31 MB / 492.8 MB, free: 7.156 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001962/0.2748, allocations: 71.97 kB / 492.9 MB, free: 7.086 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02912/0.304, allocations: 11.46 MB / 0.4925 GB, free: 11.59 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.704e-06/0.304, allocations: 0 / 0.4925 GB, free: 11.59 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.576e-05/0.304, allocations: 12 kB / 0.4925 GB, free: 11.58 MB / 378.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.002586/0.3066, allocations: 1.214 MB / 0.4937 GB, free: 10.3 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.3067, allocations: 8.031 kB / 0.4937 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001311/0.3068, allocations: 98.52 kB / 0.4938 GB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.307, allocations: 87.06 kB / 0.4939 GB, free: 10.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006829/0.3077, allocations: 489.9 kB / 0.4944 GB, free: 9.582 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.817e-05/0.3077, allocations: 41.31 kB / 0.4944 GB, free: 9.543 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.978e-05/0.3078, allocations: 63.98 kB / 0.4945 GB, free: 9.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002016/0.3098, allocations: 1.044 MB / 0.4955 GB, free: 8.375 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.512e-05/0.3099, allocations: 0 / 0.4955 GB, free: 8.375 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.511e-05/0.3099, allocations: 24 kB / 0.4955 GB, free: 8.352 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.31, allocations: 16 kB / 0.4955 GB, free: 8.336 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002894/0.3129, allocations: 1.159 MB / 0.4967 GB, free: 7.172 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004726/0.3176, allocations: 3.297 MB / 0.4999 GB, free: 3.738 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002246/0.3199, allocations: 1.041 MB / 0.5009 GB, free: 2.652 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.377e-05/0.3199, allocations: 12.58 kB / 0.5009 GB, free: 2.641 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001165/0.3211, allocations: 0.5128 MB / 0.5014 GB, free: 2.113 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 2.906e-06/0.3211, allocations: 3.938 kB / 0.5014 GB, free: 2.109 MB / 378.7 MB Notification: Performance of matching and sorting (n=50): time 0.003058/0.3242, allocations: 1.271 MB / 0.5026 GB, free: 0.832 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000139/0.3243, allocations: 372.3 kB / 0.503 GB, free: 392 kB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.1533/0.4777, allocations: 0.5079 MB / 0.5035 GB, free: 93 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001594/0.4779, allocations: 40.48 kB / 0.5035 GB, free: 92.97 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002703/0.4781, allocations: 370.1 kB / 0.5039 GB, free: 92.86 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001556/0.4783, allocations: 167.9 kB / 0.5041 GB, free: 92.78 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.188e-05/0.4784, allocations: 14.34 kB / 0.5041 GB, free: 92.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.772e-05/0.4785, allocations: 373.2 kB / 0.5044 GB, free: 92.46 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001316/0.4798, allocations: 463.5 kB / 0.5049 GB, free: 92.46 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001289/0.4811, allocations: 0.7334 MB / 0.5056 GB, free: 92.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001199/0.4823, allocations: 0.5345 MB / 0.5061 GB, free: 92.06 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.633e-06/0.4823, allocations: 2.375 kB / 0.5061 GB, free: 92.06 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002677/0.485, allocations: 1.251 MB / 0.5073 GB, free: 91.92 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.887e-05/0.485, allocations: 62.38 kB / 0.5074 GB, free: 91.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.4851, allocations: 6.922 kB / 0.5074 GB, free: 91.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.4851, allocations: 10.84 kB / 0.5074 GB, free: 91.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.4861, allocations: 248.3 kB / 0.5076 GB, free: 91.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.573e-05/0.4861, allocations: 17.98 kB / 0.5077 GB, free: 91.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001059/0.4872, allocations: 233.3 kB / 0.5079 GB, free: 91.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.259e-05/0.4873, allocations: 33.25 kB / 0.5079 GB, free: 91.84 MB / 378.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 () * Number of clocked 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.0003077/0.4876, allocations: 222.3 kB / 0.5081 GB, free: 91.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001072/0.4877, allocations: 68.75 kB / 0.5082 GB, free: 91.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001479/0.4879, allocations: 73.84 kB / 0.5083 GB, free: 91.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.4879, allocations: 5.656 kB / 0.5083 GB, free: 91.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.4879, allocations: 0 / 0.5083 GB, free: 91.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.572e-06/0.4879, allocations: 4.172 kB / 0.5083 GB, free: 91.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002964/0.4909, allocations: 1.783 MB / 0.51 GB, free: 91.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.4909, allocations: 0 / 0.51 GB, free: 91.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007549/0.4917, allocations: 188 kB / 0.5102 GB, free: 91.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.4917, allocations: 7.438 kB / 0.5102 GB, free: 91.34 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.226e-05/0.4917, allocations: 9.156 kB / 0.5102 GB, free: 91.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.715e-06/0.4917, allocations: 0.5625 kB / 0.5102 GB, free: 91.34 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.4917, allocations: 0 / 0.5102 GB, free: 91.34 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002736/0.4945, allocations: 1.47 MB / 0.5116 GB, free: 91.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.504e-05/0.4946, allocations: 158.5 kB / 0.5118 GB, free: 90.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.76e-05/0.4947, allocations: 15.19 kB / 0.5118 GB, free: 90.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007397/0.4954, allocations: 146 kB / 0.5119 GB, free: 90.89 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001004/0.4955, allocations: 47.47 kB / 0.512 GB, free: 90.88 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.666e-05/0.4956, allocations: 21.09 kB / 0.512 GB, free: 90.87 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004073/0.496, allocations: 390.1 kB / 0.5124 GB, free: 90.7 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.496, allocations: 0 / 0.5124 GB, free: 90.7 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005188/0.4965, allocations: 183.2 kB / 0.5126 GB, free: 90.66 MB / 378.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 (VIN1.signalSource.count,VIN2.signalSource.count) * Number of clocked states: 0 () * 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.002944/0.4995, allocations: 2.048 MB / 0.5146 GB, free: 89.58 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002105/0.5016, allocations: 1.12 MB / 0.5156 GB, free: 89.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.5016, allocations: 0 / 0.5156 GB, free: 89.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009415/0.5026, allocations: 460.9 kB / 0.5161 GB, free: 89.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004001/0.503, allocations: 88.16 kB / 0.5162 GB, free: 89.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006905/0.5099, allocations: 8.692 MB / 0.5247 GB, free: 82.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002096/0.5101, allocations: 0.8922 MB / 0.5255 GB, free: 81.58 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004088/0.5105, allocations: 83.44 kB / 0.5256 GB, free: 81.52 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003076/0.5108, allocations: 238.4 kB / 0.5258 GB, free: 81.31 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5108, allocations: 0 / 0.5258 GB, free: 81.31 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02138/0.5322, allocations: 12.99 MB / 0.5385 GB, free: 70.17 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001257/0.5324, allocations: 171.9 kB / 0.5387 GB, free: 69.94 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.101/2.633, allocations: 0 / 0.5387 GB, free: 69.94 MB / 378.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)