Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.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.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand",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.001441/0.001441, allocations: 180.5 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.256/1.256, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008135/0.0008134, allocations: 96.62 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002598/0.0002598, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2147/0.2149, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1086/0.3236, allocations: 102.2 MB / 478.1 MB, free: 10.45 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002231/0.3239, allocations: 75.97 kB / 478.1 MB, free: 10.37 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3519/0.6758, allocations: 123.3 MB / 0.5874 GB, free: 27.27 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.6758, allocations: 4 kB / 0.5874 GB, free: 27.27 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.095e-05/0.6759, allocations: 44 kB / 0.5874 GB, free: 27.22 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.005502/0.6814, allocations: 3.258 MB / 0.5906 GB, free: 23.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.6814, allocations: 12.03 kB / 0.5906 GB, free: 23.88 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002098/0.6816, allocations: 98.5 kB / 0.5907 GB, free: 23.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00049/0.6821, allocations: 375.5 kB / 0.5911 GB, free: 23.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003252/0.6854, allocations: 2.267 MB / 0.5933 GB, free: 21.07 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.671e-05/0.6854, allocations: 33 kB / 0.5933 GB, free: 21.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001222/0.6856, allocations: 51.91 kB / 0.5934 GB, free: 20.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001263/0.6868, allocations: 0.8378 MB / 0.5942 GB, free: 20.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.6869, allocations: 0 / 0.5942 GB, free: 20.11 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.723e-05/0.6869, allocations: 16 kB / 0.5942 GB, free: 20.1 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.993e-05/0.687, allocations: 19.98 kB / 0.5942 GB, free: 20.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001309/0.6883, allocations: 0.828 MB / 0.595 GB, free: 19.25 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004607/0.6929, allocations: 2.938 MB / 0.5979 GB, free: 16.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001037/0.694, allocations: 0.7348 MB / 0.5986 GB, free: 15.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03352/0.7275, allocations: 35.91 MB / 0.6337 GB, free: 6.434 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007616/0.7283, allocations: 381.4 kB / 0.634 GB, free: 6.051 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.675e-06/0.7283, allocations: 3.938 kB / 0.6341 GB, free: 6.047 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.003201/0.7315, allocations: 1.455 MB / 0.6355 GB, free: 4.559 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001356/0.7317, allocations: 269 kB / 0.6357 GB, free: 4.234 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004048/0.7358, allocations: 2.351 MB / 0.638 GB, free: 1.871 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.078e-05/0.7358, allocations: 37.7 kB / 0.6381 GB, free: 1.828 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001355/0.7372, allocations: 1.399 MB / 0.6394 GB, free: 432 kB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001709/0.7374, allocations: 161.7 kB / 0.6396 GB, free: 268 kB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.612e-05/0.7374, allocations: 16 kB / 0.6396 GB, free: 252 kB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.7376, allocations: 334 kB / 0.6399 GB, free: 15.91 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000593/0.7382, allocations: 261.8 kB / 0.6402 GB, free: 15.66 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008346/0.739, allocations: 0.6582 MB / 0.6408 GB, free: 14.81 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006696/0.7397, allocations: 332.1 kB / 0.6411 GB, free: 14.48 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.265e-06/0.7397, allocations: 3.953 kB / 0.6411 GB, free: 14.48 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002397/0.7421, allocations: 1.318 MB / 0.6424 GB, free: 13.15 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.51e-05/0.7422, allocations: 8.969 kB / 0.6424 GB, free: 13.14 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001176/0.7423, allocations: 83.98 kB / 0.6425 GB, free: 13.06 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005412/0.7428, allocations: 280.2 kB / 0.6428 GB, free: 12.79 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005874/0.7434, allocations: 187.6 kB / 0.6429 GB, free: 12.6 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009604/0.7444, allocations: 0.8788 MB / 0.6438 GB, free: 11.7 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001227/0.7457, allocations: 130.9 kB / 0.6439 GB, free: 11.57 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001024/0.7458, allocations: 67.95 kB / 0.644 GB, free: 11.5 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.000989/0.7468, allocations: 426.1 kB / 0.6444 GB, free: 11.08 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005393/0.7473, allocations: 371.6 kB / 0.6448 GB, free: 10.71 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003569/0.7509, allocations: 1.361 MB / 0.6461 GB, free: 9.336 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.7509, allocations: 4 kB / 0.6461 GB, free: 9.332 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.7509, allocations: 0 / 0.6461 GB, free: 9.332 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-06/0.7509, allocations: 7.984 kB / 0.6461 GB, free: 9.324 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004418/0.7554, allocations: 2.252 MB / 0.6483 GB, free: 6.988 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.926e-05/0.7555, allocations: 71.98 kB / 0.6484 GB, free: 6.918 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003236/0.7558, allocations: 80 kB / 0.6484 GB, free: 6.84 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004545/0.7563, allocations: 272.7 kB / 0.6487 GB, free: 6.57 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-05/0.7563, allocations: 28 kB / 0.6487 GB, free: 6.543 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000896/0.7572, allocations: 0.8607 MB / 0.6496 GB, free: 5.656 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.7573, allocations: 4 kB / 0.6496 GB, free: 5.652 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.7592, allocations: 1.285 MB / 0.6508 GB, free: 4.289 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001011/0.7602, allocations: 476.4 kB / 0.6513 GB, free: 3.801 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000467/0.7607, allocations: 8 kB / 0.6513 GB, free: 3.793 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000836/0.7615, allocations: 51.95 kB / 0.6513 GB, free: 3.742 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001556/0.7617, allocations: 55.94 kB / 0.6514 GB, free: 3.688 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.018e-05/0.7618, allocations: 43.98 kB / 0.6514 GB, free: 3.645 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0031/0.7649, allocations: 1.797 MB / 0.6532 GB, free: 1.844 MB / 426.7 MB Notification: Performance of sort global known variables: time 3.01e-07/0.7649, allocations: 0 / 0.6532 GB, free: 1.844 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002/0.7669, allocations: 0.6284 MB / 0.6538 GB, free: 1.215 MB / 426.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.1868/0.9538, allocations: 2.809 MB / 0.6565 GB, free: 100.4 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001711/0.9555, allocations: 0.8799 MB / 0.6574 GB, free: 100.3 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.952e-06/0.9556, allocations: 0 / 0.6574 GB, free: 100.3 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008275/0.9564, allocations: 0.5119 MB / 0.6579 GB, free: 100.1 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001934/0.9584, allocations: 475.2 kB / 0.6584 GB, free: 100.1 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03257/0.9909, allocations: 25.06 MB / 0.6828 GB, free: 82.73 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001202/0.9922, allocations: 1.67 MB / 0.6845 GB, free: 82.01 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001387/0.9936, allocations: 340.6 kB / 0.6848 GB, free: 81.98 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00119/0.9948, allocations: 1.127 MB / 0.6859 GB, free: 81.98 MB / 426.7 MB Notification: Performance of SimCode: time 1.142e-06/0.9948, allocations: 0 / 0.6859 GB, free: 81.98 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08908/1.084, allocations: 58.31 MB / 0.7428 GB, free: 54 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001485/1.084, allocations: 197.6 kB / 0.743 GB, free: 53.76 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.96/5.044, allocations: 1.859 kB / 0.743 GB, free: 53.76 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat