Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.NandGate,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001306/0.001306, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 221.3 MB / 235.5 MB, free: 2.969 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008638/0.0008637, allocations: 101.8 kB / 286.5 MB, free: 232 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.399e-05/2.401e-05, allocations: 3.984 kB / 343.9 MB, free: 4.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09897/0.09901, allocations: 50.41 MB / 394.3 MB, free: 1.777 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2999/0.399, allocations: 82.46 MB / 476.8 MB, free: 5.039 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/0.3992, allocations: 71.97 kB / 476.9 MB, free: 4.969 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02982/0.4291, allocations: 11.41 MB / 488.3 MB, free: 9.523 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.4291, allocations: 0 / 488.3 MB, free: 9.523 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.688e-05/0.4291, allocations: 16 kB / 488.3 MB, free: 9.508 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.002412/0.4316, allocations: 1.129 MB / 489.4 MB, free: 8.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.557e-05/0.4316, allocations: 8.031 kB / 489.4 MB, free: 8.312 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001435/0.4318, allocations: 102.5 kB / 489.5 MB, free: 8.203 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001496/0.4319, allocations: 79.06 kB / 489.6 MB, free: 8.125 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007397/0.4327, allocations: 489.9 kB / 490.1 MB, free: 7.605 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.542e-05/0.4327, allocations: 45.31 kB / 490.1 MB, free: 7.559 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001149/0.4329, allocations: 56 kB / 490.2 MB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001251/0.4341, allocations: 0.7693 MB / 491 MB, free: 6.672 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.08e-05/0.4341, allocations: 7.938 kB / 491 MB, free: 6.664 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.614e-05/0.4342, allocations: 27.98 kB / 491 MB, free: 6.637 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.588e-05/0.4342, allocations: 16 kB / 491 MB, free: 6.621 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00104/0.4353, allocations: 0.617 MB / 491.6 MB, free: 6.008 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004553/0.4399, allocations: 3.302 MB / 494.9 MB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001069/0.4409, allocations: 0.6859 MB / 495.6 MB, free: 1.84 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005165/0.4415, allocations: 306.4 kB / 495.9 MB, free: 1.539 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.844e-05/0.4415, allocations: 20.58 kB / 495.9 MB, free: 1.52 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005315/0.4421, allocations: 325.3 kB / 496.2 MB, free: 1.191 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 2.484e-06/0.4421, allocations: 0 / 496.2 MB, free: 1.191 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.0009225/0.443, allocations: 0.5187 MB / 496.8 MB, free: 0.6641 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001704/0.4432, allocations: 368.3 kB / 497.1 MB, free: 224 kB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005642/0.4438, allocations: 0.493 MB / 497.6 MB, free: 15.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.793e-05/0.4438, allocations: 41.7 kB / 497.7 MB, free: 15.67 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002353/0.4441, allocations: 363.6 kB / 498 MB, free: 15.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.4442, allocations: 169.6 kB / 498.2 MB, free: 15.14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.121e-05/0.4443, allocations: 16 kB / 498.2 MB, free: 15.13 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001383/0.4444, allocations: 370.8 kB / 498.6 MB, free: 14.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004294/0.4448, allocations: 253.5 kB / 498.8 MB, free: 14.51 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000595/0.4454, allocations: 0.5192 MB / 499.3 MB, free: 13.86 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004641/0.4459, allocations: 338.5 kB / 499.7 MB, free: 13.52 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.127e-06/0.4459, allocations: 4 kB / 499.7 MB, free: 13.52 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001245/0.4472, allocations: 0.837 MB / 0.4888 GB, free: 12.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.077e-05/0.4472, allocations: 68.28 kB / 0.4888 GB, free: 12.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.037e-05/0.4473, allocations: 11.94 kB / 0.4888 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.07e-05/0.4473, allocations: 8.75 kB / 0.4888 GB, free: 12.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001015/0.4483, allocations: 255.6 kB / 0.4891 GB, free: 12.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.714e-05/0.4483, allocations: 15.92 kB / 0.4891 GB, free: 12.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001018/0.4494, allocations: 227 kB / 0.4893 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.333e-05/0.4494, allocations: 28 kB / 0.4894 GB, free: 12.04 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.0001638/0.4496, allocations: 160.7 kB / 0.4895 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.742e-05/0.4497, allocations: 67.25 kB / 0.4896 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001577/0.4499, allocations: 78.14 kB / 0.4896 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.029e-06/0.4499, allocations: 4 kB / 0.4896 GB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.483e-06/0.4499, allocations: 3.984 kB / 0.4897 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.4499, allocations: 0 / 0.4897 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001857/0.4518, allocations: 1.42 MB / 0.491 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.4518, allocations: 0 / 0.491 GB, free: 10.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007969/0.4526, allocations: 175.8 kB / 0.4912 GB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.542e-06/0.4526, allocations: 4 kB / 0.4912 GB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.254e-05/0.4526, allocations: 7.984 kB / 0.4912 GB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.374e-06/0.4527, allocations: 4 kB / 0.4912 GB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.4527, allocations: 4 kB / 0.4912 GB, free: 10.05 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001301/0.454, allocations: 0.9043 MB / 0.4921 GB, free: 9.133 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001214/0.4541, allocations: 152.2 kB / 0.4923 GB, free: 8.965 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.944e-05/0.4542, allocations: 12 kB / 0.4923 GB, free: 8.953 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007835/0.455, allocations: 147.9 kB / 0.4924 GB, free: 8.809 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001259/0.4551, allocations: 52.36 kB / 0.4925 GB, free: 8.758 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.87e-05/0.4552, allocations: 15.94 kB / 0.4925 GB, free: 8.742 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003886/0.4556, allocations: 381.6 kB / 0.4928 GB, free: 8.371 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4556, allocations: 0 / 0.4928 GB, free: 8.371 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005028/0.4561, allocations: 179.7 kB / 0.493 GB, free: 8.195 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.001605/0.4577, allocations: 1.476 MB / 0.4944 GB, free: 6.688 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001002/0.4587, allocations: 0.7165 MB / 0.4951 GB, free: 5.949 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.4587, allocations: 4 kB / 0.4952 GB, free: 5.945 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004275/0.4592, allocations: 278.4 kB / 0.4954 GB, free: 5.672 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004284/0.4596, allocations: 90.34 kB / 0.4955 GB, free: 5.59 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001879/0.4615, allocations: 1.014 MB / 0.4965 GB, free: 4.539 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003668/0.4619, allocations: 0.8981 MB / 0.4974 GB, free: 3.613 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004135/0.4623, allocations: 84.86 kB / 0.4975 GB, free: 3.531 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003672/0.4627, allocations: 227.4 kB / 0.4977 GB, free: 3.309 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.4627, allocations: 3.938 kB / 0.4977 GB, free: 3.305 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02513/0.4878, allocations: 13.09 MB / 0.5105 GB, free: 6.395 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001371/0.488, allocations: 150.6 kB / 0.5106 GB, free: 6.168 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.176/2.664, allocations: 0 / 0.5106 GB, free: 6.168 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate_fmu --startTime=0 --stopTime=1e-07 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Analog_Examples_NandGate.fmu > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.NandGate.pipe 2>&1)