Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00121/0.001209, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.589/1.589, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008493/0.0008495, allocations: 82.72 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.133e-05/2.124e-05, allocations: 4 kB / 315.6 MB, free: 22.63 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09898/0.09902, allocations: 47.58 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.345/0.444, allocations: 79.18 MB / 442.3 MB, free: 204 kB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002264/0.4443, allocations: 71.09 kB / 442.4 MB, free: 168 kB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0273/0.4716, allocations: 10.18 MB / 452.6 MB, free: 7.605 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.4717, allocations: 0 / 452.6 MB, free: 7.605 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.884e-05/0.4717, allocations: 16 kB / 452.6 MB, free: 7.59 MB / 330.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.002413/0.4741, allocations: 1.066 MB / 453.7 MB, free: 6.504 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.387e-05/0.4742, allocations: 12.03 kB / 453.7 MB, free: 6.492 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001546/0.4744, allocations: 75.16 kB / 453.8 MB, free: 6.418 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005925/0.475, allocations: 424.8 kB / 454.2 MB, free: 6.051 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.908e-05/0.475, allocations: 20 kB / 454.2 MB, free: 6.031 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.631e-05/0.4751, allocations: 35.98 kB / 454.2 MB, free: 5.996 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009664/0.4761, allocations: 0.5617 MB / 454.8 MB, free: 5.676 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001065/0.4772, allocations: 0.6482 MB / 455.4 MB, free: 5.148 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.4772, allocations: 3.938 kB / 455.4 MB, free: 5.145 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.304e-05/0.4773, allocations: 3.984 kB / 455.4 MB, free: 5.141 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.633e-05/0.4773, allocations: 20 kB / 455.5 MB, free: 5.121 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004397/0.4817, allocations: 3.075 MB / 458.5 MB, free: 2.559 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000973/0.4827, allocations: 0.6709 MB / 459.2 MB, free: 2.051 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004536/0.4832, allocations: 292.5 kB / 459.5 MB, free: 1.875 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.368e-05/0.4832, allocations: 12.58 kB / 459.5 MB, free: 1.859 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004887/0.4837, allocations: 310.2 kB / 459.8 MB, free: 1.641 MB / 330.7 MB Notification: Performance of pre-optimization done (n=50): time 2.024e-06/0.4837, allocations: 0 / 459.8 MB, free: 1.641 MB / 330.7 MB Notification: Performance of matching and sorting (n=50): time 0.000821/0.4846, allocations: 483.6 kB / 460.3 MB, free: 1.312 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001385/0.4847, allocations: 273.5 kB / 460.6 MB, free: 0.9805 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004288/0.4851, allocations: 409.8 kB / 461 MB, free: 0.6719 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.783e-05/0.4852, allocations: 29.7 kB / 461 MB, free: 0.6367 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002046/0.4854, allocations: 331.5 kB / 461.3 MB, free: 392 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001311/0.4856, allocations: 173.9 kB / 461.5 MB, free: 240 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.927e-05/0.4856, allocations: 0 / 461.5 MB, free: 240 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001794/0.4858, allocations: 363.5 kB / 461.8 MB, free: 15.89 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003482/0.4861, allocations: 232.8 kB / 462.1 MB, free: 15.77 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005235/0.4867, allocations: 488.8 kB / 462.5 MB, free: 15.31 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000389/0.4871, allocations: 255 kB / 462.8 MB, free: 15.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.442e-06/0.4871, allocations: 4 kB / 462.8 MB, free: 15.16 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001116/0.4882, allocations: 0.7117 MB / 463.5 MB, free: 14.64 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.836e-05/0.4883, allocations: 63.22 kB / 463.6 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.4883, allocations: 8 kB / 463.6 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.306e-05/0.4883, allocations: 12 kB / 463.6 MB, free: 14.55 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00105/0.4894, allocations: 247.3 kB / 463.8 MB, free: 14.31 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.4894, allocations: 12 kB / 463.8 MB, free: 14.3 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009876/0.4904, allocations: 202.5 kB / 464 MB, free: 14.1 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.311e-05/0.4905, allocations: 31.75 kB / 464.1 MB, free: 14.07 MB / 346.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.0001712/0.4907, allocations: 140.6 kB / 464.2 MB, free: 13.93 MB / 346.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000723/0.4914, allocations: 479.5 kB / 464.7 MB, free: 13.6 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.029e-05/0.4915, allocations: 62.47 kB / 464.7 MB, free: 13.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001356/0.4916, allocations: 61.66 kB / 464.8 MB, free: 13.51 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.4916, allocations: 11.98 kB / 464.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/0.4917, allocations: 0 / 464.8 MB, free: 13.5 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.596e-06/0.4917, allocations: 7.953 kB / 464.8 MB, free: 13.49 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001691/0.4934, allocations: 1.276 MB / 466.1 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.4934, allocations: 0 / 466.1 MB, free: 12.57 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000815/0.4942, allocations: 182.6 kB / 466.3 MB, free: 12.4 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.923e-06/0.4942, allocations: 7.938 kB / 466.3 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.881e-05/0.4943, allocations: 7.375 kB / 466.3 MB, free: 12.39 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.929e-06/0.4943, allocations: 4 kB / 466.3 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.485e-06/0.4943, allocations: 0 / 466.3 MB, free: 12.38 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001177/0.4955, allocations: 0.8589 MB / 467.1 MB, free: 11.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001027/0.4956, allocations: 132.3 kB / 467.3 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.302e-05/0.4957, allocations: 11.83 kB / 467.3 MB, free: 11.65 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007739/0.4965, allocations: 131.9 kB / 467.4 MB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001371/0.4966, allocations: 55.61 kB / 467.5 MB, free: 11.48 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.961e-05/0.4967, allocations: 15.61 kB / 467.5 MB, free: 11.47 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003045/0.497, allocations: 295.5 kB / 467.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.497, allocations: 0 / 467.8 MB, free: 11.26 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0005829/0.4976, allocations: 155.7 kB / 467.9 MB, free: 11.11 MB / 346.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.001553/0.4991, allocations: 1.413 MB / 469.3 MB, free: 9.961 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009254/0.5001, allocations: 0.6811 MB / 470 MB, free: 9.473 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.5001, allocations: 5.75 kB / 470 MB, free: 9.469 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003549/0.5004, allocations: 263.1 kB / 470.3 MB, free: 9.312 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003951/0.5008, allocations: 63.27 kB / 470.3 MB, free: 9.266 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.5027, allocations: 0.9059 MB / 471.2 MB, free: 8.445 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.5031, allocations: 0.8706 MB / 472.1 MB, free: 7.547 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0003998/0.5035, allocations: 76.53 kB / 472.2 MB, free: 7.469 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003286/0.5039, allocations: 202.1 kB / 472.4 MB, free: 7.406 MB / 346.7 MB Notification: Performance of SimCode: time 2.31e-07/0.5039, allocations: 0 / 472.4 MB, free: 7.406 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03159/0.5355, allocations: 11.03 MB / 483.4 MB, free: 12.37 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001904/0.5357, allocations: 131.5 kB / 483.5 MB, free: 12.18 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.195/2.731, allocations: 4 kB / 483.6 MB, free: 12.17 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)