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.001044/0.001044, allocations: 180.5 kB / 8.699 MB, free: 384 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.489/1.489, allocations: 205.3 MB / 214.4 MB, free: 1.738 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.000873/0.0008731, allocations: 86.22 kB / 262.4 MB, free: 1.691 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 2.1e-05/2.101e-05, allocations: 4 kB / 315.6 MB, free: 22.64 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1008, allocations: 47.58 MB / 363.2 MB, free: 6.988 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3947/0.4956, allocations: 101.7 MB / 464.8 MB, free: 9.992 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002902/0.4959, allocations: 71.59 kB / 464.9 MB, free: 9.957 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.458/0.954, allocations: 118 MB / 0.5693 GB, free: 94.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.954, allocations: 0 / 0.5693 GB, free: 94.71 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.557e-05/0.9541, allocations: 39.31 kB / 0.5693 GB, free: 94.71 MB / 410.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.005196/0.9593, allocations: 2.6 MB / 0.5719 GB, free: 93.29 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.9594, allocations: 7.344 kB / 0.5719 GB, free: 93.29 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006535/0.96, allocations: 383.5 kB / 0.5722 GB, free: 93.09 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00369/0.9637, allocations: 2.229 MB / 0.5744 GB, free: 92.46 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.864e-05/0.9638, allocations: 20.3 kB / 0.5744 GB, free: 92.46 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001159/0.9639, allocations: 33.47 kB / 0.5745 GB, free: 92.46 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009668/0.9649, allocations: 0.6612 MB / 0.5751 GB, free: 92.46 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009157/0.9658, allocations: 0.6939 MB / 0.5758 GB, free: 92.33 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.9658, allocations: 3.938 kB / 0.5758 GB, free: 92.32 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.594e-05/0.9659, allocations: 3.812 kB / 0.5758 GB, free: 92.32 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.026e-05/0.9659, allocations: 22.08 kB / 0.5758 GB, free: 92.32 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004851/0.9708, allocations: 2.804 MB / 0.5785 GB, free: 91.62 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005673/0.9714, allocations: 0.5754 MB / 0.5791 GB, free: 91.26 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005381/0.9719, allocations: 0.5767 MB / 0.5797 GB, free: 90.97 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02733/0.9993, allocations: 36.06 MB / 0.6149 GB, free: 62.08 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004125/0.9997, allocations: 307.8 kB / 0.6152 GB, free: 61.96 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.545e-06/0.9998, allocations: 0 / 0.6152 GB, free: 61.96 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001451/1.001, allocations: 0.8545 MB / 0.616 GB, free: 61.61 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.981e-05/1.001, allocations: 277.4 kB / 0.6163 GB, free: 61.29 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002432/1.004, allocations: 2.101 MB / 0.6183 GB, free: 59.69 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.909e-05/1.004, allocations: 29.7 kB / 0.6184 GB, free: 59.66 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008709/1.005, allocations: 1.392 MB / 0.6197 GB, free: 58.28 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/1.005, allocations: 161.8 kB / 0.6199 GB, free: 58.12 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.22e-05/1.005, allocations: 0 / 0.6199 GB, free: 58.12 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 6.359e-05/1.005, allocations: 345.9 kB / 0.6202 GB, free: 57.78 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002324/1.005, allocations: 166.6 kB / 0.6204 GB, free: 57.61 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003886/1.006, allocations: 0.5612 MB / 0.6209 GB, free: 56.86 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003989/1.006, allocations: 263.2 kB / 0.6212 GB, free: 56.6 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/1.006, allocations: 4 kB / 0.6212 GB, free: 56.6 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001406/1.007, allocations: 1.079 MB / 0.6222 GB, free: 55.51 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.134e-05/1.007, allocations: 8 kB / 0.6222 GB, free: 55.5 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.298e-05/1.008, allocations: 83.94 kB / 0.6223 GB, free: 55.42 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000441/1.008, allocations: 282.2 kB / 0.6226 GB, free: 55.15 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005412/1.009, allocations: 175.7 kB / 0.6227 GB, free: 54.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007911/1.009, allocations: 0.9199 MB / 0.6236 GB, free: 54.03 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001199/1.011, allocations: 111 kB / 0.6237 GB, free: 53.92 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.08e-05/1.011, allocations: 63.98 kB / 0.6238 GB, free: 53.86 MB / 410.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 () * 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.0001652/1.011, allocations: 144.6 kB / 0.6239 GB, free: 53.71 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001015/1.012, allocations: 0.8648 MB / 0.6248 GB, free: 52.83 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002352/1.012, allocations: 363.6 kB / 0.6251 GB, free: 52.47 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002595/1.015, allocations: 1.173 MB / 0.6263 GB, free: 51.3 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/1.015, allocations: 8 kB / 0.6263 GB, free: 51.29 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.217e-06/1.015, allocations: 0 / 0.6263 GB, free: 51.29 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/1.015, allocations: 4 kB / 0.6263 GB, free: 51.29 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002911/1.018, allocations: 2.014 MB / 0.6283 GB, free: 49.21 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-05/1.018, allocations: 75.98 kB / 0.6283 GB, free: 49.14 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003166/1.018, allocations: 76 kB / 0.6284 GB, free: 49.07 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003541/1.018, allocations: 251.5 kB / 0.6286 GB, free: 48.82 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.764e-05/1.018, allocations: 31.98 kB / 0.6287 GB, free: 48.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006779/1.019, allocations: 0.8996 MB / 0.6295 GB, free: 47.86 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.019, allocations: 3.984 kB / 0.6296 GB, free: 47.86 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001119/1.02, allocations: 1.117 MB / 0.6306 GB, free: 46.67 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007525/1.021, allocations: 480.3 kB / 0.6311 GB, free: 46.18 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000303/1.021, allocations: 7.953 kB / 0.6311 GB, free: 46.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006802/1.022, allocations: 39.89 kB / 0.6311 GB, free: 46.13 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001268/1.022, allocations: 63.94 kB / 0.6312 GB, free: 46.07 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.111e-05/1.022, allocations: 43.98 kB / 0.6312 GB, free: 46.02 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001826/1.024, allocations: 1.563 MB / 0.6328 GB, free: 44.46 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/1.024, allocations: 0 / 0.6328 GB, free: 44.46 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001388/1.026, allocations: 0.5776 MB / 0.6333 GB, free: 43.88 MB / 410.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) * 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.002452/1.028, allocations: 2.748 MB / 0.636 GB, free: 41.16 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00111/1.029, allocations: 0.6933 MB / 0.6367 GB, free: 40.45 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/1.029, allocations: 0 / 0.6367 GB, free: 40.45 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005024/1.03, allocations: 432.3 kB / 0.6371 GB, free: 40 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001805/1.031, allocations: 465.6 kB / 0.6376 GB, free: 39.54 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006065/1.038, allocations: 3.202 MB / 0.6407 GB, free: 36.27 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008341/1.038, allocations: 1.658 MB / 0.6423 GB, free: 34.58 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001165/1.04, allocations: 343.5 kB / 0.6426 GB, free: 34.25 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008457/1.04, allocations: 1.12 MB / 0.6437 GB, free: 33.14 MB / 410.7 MB Notification: Performance of SimCode: time 9.32e-07/1.04, allocations: 4 kB / 0.6437 GB, free: 33.13 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3597/1.4, allocations: 52.61 MB / 0.6951 GB, free: 99.57 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002391/1.401, allocations: 127.7 kB / 0.6952 GB, free: 99.38 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.181/5.581, allocations: 0 / 0.6952 GB, free: 99.38 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