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.0009874/0.0009871, allocations: 200 kB / 8.765 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.505/1.505, allocations: 225.6 MB / 234.8 MB, free: 3.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008714/0.0008715, allocations: 92.33 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.211e-05/2.213e-05, allocations: 4 kB / 343.8 MB, free: 8.203 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1235/0.1235, allocations: 51.47 MB / 395.3 MB, free: 4.688 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3677/0.4913, allocations: 82.59 MB / 477.8 MB, free: 10.05 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002255/0.4916, allocations: 70.83 kB / 477.9 MB, free: 10.02 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02747/0.5191, allocations: 11.33 MB / 489.3 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5191, allocations: 0 / 489.3 MB, free: 0.7969 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.733e-05/0.5192, allocations: 15.75 kB / 489.3 MB, free: 0.7852 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.002392/0.5216, allocations: 1.127 MB / 490.4 MB, free: 15.65 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.5216, allocations: 12.03 kB / 490.4 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000178/0.5218, allocations: 79.06 kB / 490.5 MB, free: 15.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007257/0.5225, allocations: 495.8 kB / 491 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/0.5226, allocations: 23.61 kB / 491 MB, free: 15.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.125e-05/0.5227, allocations: 40 kB / 491 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009934/0.5237, allocations: 0.58 MB / 491.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.5247, allocations: 0.6798 MB / 492.3 MB, free: 14.2 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.839e-05/0.5248, allocations: 4 kB / 492.3 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.528e-05/0.5248, allocations: 5.859 kB / 492.3 MB, free: 14.19 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.5249, allocations: 16 kB / 492.3 MB, free: 14.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00458/0.5294, allocations: 3.186 MB / 495.5 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009735/0.5304, allocations: 0.6701 MB / 496.2 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004646/0.5309, allocations: 292.9 kB / 496.5 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.357e-05/0.531, allocations: 8.438 kB / 496.5 MB, free: 10.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006074/0.5316, allocations: 321.2 kB / 496.8 MB, free: 10.61 MB / 362.7 MB Notification: Performance of pre-optimization done (n=50): time 3.747e-06/0.5316, allocations: 0 / 496.8 MB, free: 10.61 MB / 362.7 MB Notification: Performance of matching and sorting (n=50): time 0.0009235/0.5326, allocations: 493.4 kB / 497.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001711/0.5327, allocations: 368.3 kB / 497.6 MB, free: 9.824 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005022/0.5332, allocations: 433.3 kB / 498 MB, free: 9.5 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.024e-05/0.5333, allocations: 29.2 kB / 498.1 MB, free: 9.469 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002556/0.5336, allocations: 375.4 kB / 498.4 MB, free: 9.184 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001398/0.5337, allocations: 162.6 kB / 498.6 MB, free: 9.043 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.98e-05/0.5338, allocations: 0 / 498.6 MB, free: 9.043 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001403/0.5339, allocations: 369.6 kB / 499 MB, free: 8.699 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003509/0.5343, allocations: 239.2 kB / 499.2 MB, free: 8.574 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005263/0.5348, allocations: 0.5053 MB / 499.7 MB, free: 8.074 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004313/0.5353, allocations: 260.3 kB / 500 MB, free: 7.922 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.5353, allocations: 4 kB / 500 MB, free: 7.918 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001099/0.5364, allocations: 0.72 MB / 0.4889 GB, free: 7.391 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.701e-05/0.5365, allocations: 67.39 kB / 0.489 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.5365, allocations: 4 kB / 0.489 GB, free: 7.309 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.585e-05/0.5365, allocations: 15.94 kB / 0.489 GB, free: 7.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001062/0.5376, allocations: 251.2 kB / 0.4893 GB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.5376, allocations: 19.92 kB / 0.4893 GB, free: 7.039 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001026/0.5386, allocations: 195.2 kB / 0.4895 GB, free: 6.848 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.305e-05/0.5387, allocations: 35.5 kB / 0.4895 GB, free: 6.82 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.0001874/0.5389, allocations: 136.3 kB / 0.4896 GB, free: 6.684 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0007697/0.5397, allocations: 496.4 kB / 0.4901 GB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.492e-05/0.5398, allocations: 59.25 kB / 0.4902 GB, free: 6.281 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001732/0.54, allocations: 68.16 kB / 0.4902 GB, free: 6.246 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.54, allocations: 4 kB / 0.4902 GB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.54, allocations: 0 / 0.4902 GB, free: 6.242 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.767e-06/0.54, allocations: 3.984 kB / 0.4902 GB, free: 6.238 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00183/0.5418, allocations: 1.313 MB / 0.4915 GB, free: 5.293 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.5418, allocations: 0 / 0.4915 GB, free: 5.293 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008071/0.5427, allocations: 178.5 kB / 0.4917 GB, free: 5.125 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.385e-06/0.5427, allocations: 4 kB / 0.4917 GB, free: 5.121 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.142e-05/0.5427, allocations: 7.984 kB / 0.4917 GB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.5427, allocations: 0 / 0.4917 GB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.845e-06/0.5427, allocations: 0 / 0.4917 GB, free: 5.113 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001304/0.544, allocations: 0.8743 MB / 0.4926 GB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001364/0.5442, allocations: 139.8 kB / 0.4927 GB, free: 4.371 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.788e-05/0.5443, allocations: 4 kB / 0.4927 GB, free: 4.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008176/0.5451, allocations: 135.9 kB / 0.4928 GB, free: 4.234 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001318/0.5453, allocations: 52.05 kB / 0.4929 GB, free: 4.195 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.188e-05/0.5453, allocations: 15.73 kB / 0.4929 GB, free: 4.184 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003812/0.5457, allocations: 321.7 kB / 0.4932 GB, free: 3.898 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5457, allocations: 0 / 0.4932 GB, free: 3.898 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006364/0.5464, allocations: 163.5 kB / 0.4933 GB, free: 3.738 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 (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.00163/0.548, allocations: 1.43 MB / 0.4947 GB, free: 2.281 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00102/0.549, allocations: 0.6831 MB / 0.4954 GB, free: 1.578 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.549, allocations: 0.625 kB / 0.4954 GB, free: 1.578 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003829/0.5494, allocations: 265.6 kB / 0.4957 GB, free: 1.316 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004533/0.5499, allocations: 77.02 kB / 0.4957 GB, free: 1.246 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002011/0.5519, allocations: 0.9586 MB / 0.4967 GB, free: 260 kB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004905/0.5524, allocations: 0.8941 MB / 0.4975 GB, free: 15.33 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004677/0.5529, allocations: 80.66 kB / 0.4976 GB, free: 15.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003669/0.5533, allocations: 227.3 kB / 0.4978 GB, free: 15.03 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/0.5533, allocations: 4 kB / 0.4978 GB, free: 15.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03242/0.5857, allocations: 11.72 MB / 0.5093 GB, free: 3.449 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001945/0.586, allocations: 132.2 kB / 0.5094 GB, free: 3.258 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.265/2.851, allocations: 0 / 0.5094 GB, free: 3.258 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)