Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.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.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001513/0.001514, allocations: 198.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.401/1.401, allocations: 227.2 MB / 245 MB, free: 5.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009011/0.0009007, allocations: 103.7 kB / 297.3 MB, free: 5.961 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002307/0.0002308, allocations: 4 kB / 358 MB, free: 9.227 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2114/0.2117, allocations: 51.49 MB / 409.5 MB, free: 26.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1179/0.3297, allocations: 104.9 MB / 0.5024 GB, free: 1.59 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.33, allocations: 71.97 kB / 0.5024 GB, free: 1.52 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4356/0.7656, allocations: 138.9 MB / 0.6381 GB, free: 2.625 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.7656, allocations: 4 kB / 0.6381 GB, free: 2.621 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.923e-05/0.7657, allocations: 40 kB / 0.6381 GB, free: 2.582 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.006376/0.7721, allocations: 3.258 MB / 0.6413 GB, free: 15.25 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.138e-05/0.7721, allocations: 8.031 kB / 0.6413 GB, free: 15.25 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002089/0.7723, allocations: 94.52 kB / 0.6414 GB, free: 15.14 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005212/0.7729, allocations: 375.5 kB / 0.6418 GB, free: 14.77 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004228/0.7771, allocations: 2.243 MB / 0.644 GB, free: 12.46 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.561e-05/0.7772, allocations: 29 kB / 0.644 GB, free: 12.43 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001326/0.7773, allocations: 51.98 kB / 0.644 GB, free: 12.38 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00144/0.7788, allocations: 0.83 MB / 0.6449 GB, free: 11.51 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.7788, allocations: 3.938 kB / 0.6449 GB, free: 11.5 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.081e-05/0.7789, allocations: 20 kB / 0.6449 GB, free: 11.48 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.902e-05/0.7789, allocations: 23.98 kB / 0.6449 GB, free: 11.46 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001485/0.7804, allocations: 0.8202 MB / 0.6457 GB, free: 10.64 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005501/0.7859, allocations: 2.936 MB / 0.6486 GB, free: 7.641 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001262/0.7872, allocations: 0.7322 MB / 0.6493 GB, free: 6.883 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2634/1.051, allocations: 36.45 MB / 0.6849 GB, free: 76.32 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006548/1.051, allocations: 376.2 kB / 0.6852 GB, free: 76.27 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.655e-06/1.051, allocations: 3.469 kB / 0.6852 GB, free: 76.27 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.002763/1.054, allocations: 1.452 MB / 0.6867 GB, free: 75.96 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.047e-05/1.054, allocations: 267.7 kB / 0.6869 GB, free: 75.65 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002657/1.057, allocations: 2.335 MB / 0.6892 GB, free: 75.38 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.648e-05/1.057, allocations: 36.77 kB / 0.6892 GB, free: 75.35 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000955/1.058, allocations: 1.389 MB / 0.6906 GB, free: 75.14 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/1.058, allocations: 166.8 kB / 0.6907 GB, free: 75.06 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-05/1.058, allocations: 15.06 kB / 0.6908 GB, free: 75.06 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 7.648e-05/1.058, allocations: 342.5 kB / 0.6911 GB, free: 74.75 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004935/1.059, allocations: 252.1 kB / 0.6913 GB, free: 74.75 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006554/1.059, allocations: 0.6518 MB / 0.692 GB, free: 74.25 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006304/1.06, allocations: 349.3 kB / 0.6923 GB, free: 74.25 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.011e-05/1.06, allocations: 3.312 kB / 0.6923 GB, free: 74.25 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002053/1.062, allocations: 1.313 MB / 0.6936 GB, free: 74.03 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/1.062, allocations: 18.27 kB / 0.6936 GB, free: 74.03 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.7e-05/1.062, allocations: 78.72 kB / 0.6937 GB, free: 74.03 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005004/1.063, allocations: 270.5 kB / 0.6939 GB, free: 74.02 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005268/1.063, allocations: 181.6 kB / 0.6941 GB, free: 74.02 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007349/1.064, allocations: 0.8862 MB / 0.695 GB, free: 73.49 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001103/1.065, allocations: 128.3 kB / 0.6951 GB, free: 73.46 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.419e-05/1.065, allocations: 69.02 kB / 0.6952 GB, free: 73.46 MB / 442.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.0007691/1.066, allocations: 426.2 kB / 0.6956 GB, free: 73.35 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000261/1.066, allocations: 363.2 kB / 0.6959 GB, free: 73.16 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002804/1.069, allocations: 1.346 MB / 0.6972 GB, free: 73.06 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.565e-06/1.069, allocations: 10.09 kB / 0.6972 GB, free: 73.06 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/1.069, allocations: 0 / 0.6972 GB, free: 73.06 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/1.069, allocations: 3.969 kB / 0.6972 GB, free: 73.06 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003097/1.072, allocations: 2.252 MB / 0.6994 GB, free: 72.64 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.387e-05/1.072, allocations: 72.41 kB / 0.6995 GB, free: 72.64 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002942/1.073, allocations: 74.8 kB / 0.6996 GB, free: 72.64 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003688/1.073, allocations: 260.1 kB / 0.6998 GB, free: 72.64 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.98e-05/1.073, allocations: 39.86 kB / 0.6999 GB, free: 72.64 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006377/1.074, allocations: 0.8569 MB / 0.7007 GB, free: 72.11 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/1.074, allocations: 3.344 kB / 0.7007 GB, free: 72.11 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/1.075, allocations: 1.275 MB / 0.7019 GB, free: 71.58 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007409/1.076, allocations: 475.1 kB / 0.7024 GB, free: 71.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002578/1.076, allocations: 14.56 kB / 0.7024 GB, free: 71.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006823/1.077, allocations: 43.45 kB / 0.7025 GB, free: 71.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/1.077, allocations: 68.42 kB / 0.7025 GB, free: 71.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.626e-05/1.077, allocations: 43.75 kB / 0.7026 GB, free: 71.29 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001832/1.079, allocations: 1.784 MB / 0.7043 GB, free: 71.11 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.1e-07/1.079, allocations: 0 / 0.7043 GB, free: 71.11 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001287/1.08, allocations: 0.623 MB / 0.7049 GB, free: 71.11 MB / 442.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.002692/1.083, allocations: 2.805 MB / 0.7076 GB, free: 69.88 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001499/1.084, allocations: 0.8765 MB / 0.7085 GB, free: 69.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/1.084, allocations: 2.906 kB / 0.7085 GB, free: 69.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007284/1.085, allocations: 0.5003 MB / 0.709 GB, free: 69.62 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002021/1.087, allocations: 0.5529 MB / 0.7095 GB, free: 69.59 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02608/1.113, allocations: 24.94 MB / 0.7339 GB, free: 52.22 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008115/1.114, allocations: 1.657 MB / 0.7355 GB, free: 51.5 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001234/1.115, allocations: 346 kB / 0.7358 GB, free: 51.47 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008883/1.116, allocations: 1.12 MB / 0.7369 GB, free: 51.46 MB / 442.7 MB Notification: Performance of SimCode: time 1.122e-06/1.116, allocations: 0 / 0.7369 GB, free: 51.46 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08391/1.2, allocations: 58.07 MB / 0.7936 GB, free: 14.96 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001412/1.2, allocations: 197.5 kB / 0.7938 GB, free: 14.72 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.862/5.062, allocations: 0 / 0.7938 GB, free: 14.72 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat