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.001648/0.001648, allocations: 196.5 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 225.4 MB / 240.1 MB, free: 15.09 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008188/0.0008189, allocations: 89.69 kB / 292.1 MB, free: 5.953 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.474e-05/3.515e-05, allocations: 4 kB / 350.6 MB, free: 2.465 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1065, allocations: 51.48 MB / 402.1 MB, free: 14.93 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3409/0.4474, allocations: 83.25 MB / 485.4 MB, free: 6.277 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002034/0.4477, allocations: 73.33 kB / 485.4 MB, free: 6.242 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03024/0.4779, allocations: 11.44 MB / 496.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.478, allocations: 3.938 kB / 496.9 MB, free: 12.45 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.584e-05/0.478, allocations: 16 kB / 496.9 MB, free: 12.43 MB / 362.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.003399/0.4814, allocations: 1.128 MB / 498 MB, free: 11.25 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/0.4815, allocations: 12.03 kB / 498 MB, free: 11.24 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003116/0.4818, allocations: 94.52 kB / 498.1 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002981/0.4821, allocations: 83.06 kB / 498.2 MB, free: 11.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009426/0.4831, allocations: 494.7 kB / 498.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.8e-05/0.4832, allocations: 44.92 kB / 498.7 MB, free: 10.49 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001551/0.4833, allocations: 60 kB / 498.8 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001439/0.4848, allocations: 0.7655 MB / 499.6 MB, free: 9.605 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.851e-05/0.4848, allocations: 4.5 kB / 499.6 MB, free: 9.602 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.151e-05/0.4849, allocations: 32 kB / 499.6 MB, free: 9.57 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.4849, allocations: 16 kB / 499.6 MB, free: 9.555 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00116/0.4861, allocations: 0.6209 MB / 0.4885 GB, free: 8.938 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00519/0.4913, allocations: 3.295 MB / 0.4917 GB, free: 5.512 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001278/0.4926, allocations: 0.6829 MB / 0.4924 GB, free: 4.781 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005782/0.4932, allocations: 299.4 kB / 0.4927 GB, free: 4.488 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.67e-05/0.4933, allocations: 28.55 kB / 0.4927 GB, free: 4.461 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006052/0.4939, allocations: 325.3 kB / 0.493 GB, free: 4.129 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.775e-06/0.4939, allocations: 0 / 0.493 GB, free: 4.129 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.001011/0.4949, allocations: 0.5148 MB / 0.4935 GB, free: 3.605 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002202/0.4951, allocations: 372.3 kB / 0.4939 GB, free: 3.156 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006731/0.4958, allocations: 492.9 kB / 0.4943 GB, free: 2.664 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.417e-05/0.4959, allocations: 45.69 kB / 0.4944 GB, free: 2.613 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000296/0.4962, allocations: 368.3 kB / 0.4947 GB, free: 2.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001646/0.4964, allocations: 173.5 kB / 0.4949 GB, free: 2.078 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.706e-05/0.4964, allocations: 12 kB / 0.4949 GB, free: 2.066 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001743/0.4966, allocations: 374.7 kB / 0.4953 GB, free: 1.691 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004721/0.4971, allocations: 257.5 kB / 0.4955 GB, free: 1.438 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006584/0.4978, allocations: 0.5153 MB / 0.496 GB, free: 0.7969 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005261/0.4983, allocations: 344.9 kB / 0.4964 GB, free: 464 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.723e-06/0.4983, allocations: 1.875 kB / 0.4964 GB, free: 464 kB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001448/0.4998, allocations: 0.8335 MB / 0.4972 GB, free: 15.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.428e-05/0.4999, allocations: 68.73 kB / 0.4972 GB, free: 15.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.482e-05/0.4999, allocations: 11.94 kB / 0.4972 GB, free: 15.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.811e-05/0.4999, allocations: 12 kB / 0.4973 GB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001073/0.501, allocations: 252.3 kB / 0.4975 GB, free: 15.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.005e-05/0.501, allocations: 11.94 kB / 0.4975 GB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00112/0.5021, allocations: 227 kB / 0.4977 GB, free: 15.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.365e-05/0.5022, allocations: 39.98 kB / 0.4978 GB, free: 14.97 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 () * 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.000191/0.5024, allocations: 156.5 kB / 0.4979 GB, free: 14.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001128/0.5026, allocations: 67.25 kB / 0.498 GB, free: 14.75 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001746/0.5027, allocations: 70.19 kB / 0.498 GB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.5028, allocations: 4 kB / 0.498 GB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.398e-05/0.5028, allocations: 4 kB / 0.4981 GB, free: 14.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.5028, allocations: 3.984 kB / 0.4981 GB, free: 14.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002131/0.5049, allocations: 1.425 MB / 0.4994 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.899e-06/0.5049, allocations: 4 kB / 0.4995 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008385/0.5058, allocations: 171.8 kB / 0.4996 GB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.05e-05/0.5058, allocations: 4 kB / 0.4996 GB, free: 13.01 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.985e-05/0.5059, allocations: 8 kB / 0.4996 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.558e-06/0.5059, allocations: 5.953 kB / 0.4996 GB, free: 13 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.5059, allocations: 7.953 kB / 0.4996 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001391/0.5073, allocations: 0.9042 MB / 0.5005 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001528/0.5074, allocations: 148.2 kB / 0.5007 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001024/0.5076, allocations: 12 kB / 0.5007 GB, free: 11.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008312/0.5084, allocations: 147.9 kB / 0.5008 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.5085, allocations: 44.38 kB / 0.5009 GB, free: 11.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.13e-05/0.5086, allocations: 23.94 kB / 0.5009 GB, free: 11.68 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004371/0.509, allocations: 377.6 kB / 0.5012 GB, free: 11.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.509, allocations: 0 / 0.5012 GB, free: 11.32 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005949/0.5097, allocations: 187.8 kB / 0.5014 GB, free: 11.13 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) * 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.001767/0.5114, allocations: 1.469 MB / 0.5029 GB, free: 9.637 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001155/0.5126, allocations: 0.7161 MB / 0.5036 GB, free: 8.895 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.5126, allocations: 4 kB / 0.5036 GB, free: 8.891 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004498/0.5131, allocations: 270.4 kB / 0.5038 GB, free: 8.625 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004901/0.5136, allocations: 99.5 kB / 0.5039 GB, free: 8.535 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002304/0.5159, allocations: 1.014 MB / 0.5049 GB, free: 7.484 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004904/0.5164, allocations: 0.8903 MB / 0.5058 GB, free: 6.566 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004813/0.5169, allocations: 84.84 kB / 0.5059 GB, free: 6.484 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004098/0.5173, allocations: 231.4 kB / 0.5061 GB, free: 6.262 MB / 378.7 MB Notification: Performance of SimCode: time 4.11e-07/0.5173, allocations: 0 / 0.5061 GB, free: 6.262 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03105/0.5484, allocations: 13.05 MB / 0.5188 GB, free: 9.48 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002408/0.5487, allocations: 156.3 kB / 0.519 GB, free: 9.25 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.291/2.839, allocations: 0 / 0.519 GB, free: 9.25 MB / 394.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)