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.001177/0.001177, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.741/1.741, allocations: 225.4 MB / 240.1 MB, free: 15.08 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009638/0.0009639, allocations: 90.23 kB / 292.1 MB, free: 5.969 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.785e-05/3.802e-05, allocations: 4 kB / 350.6 MB, free: 2.453 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1096/0.1096, allocations: 51.48 MB / 402.1 MB, free: 14.92 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.377/0.4867, allocations: 104.9 MB / 0.4951 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002145/0.4869, allocations: 66.53 kB / 0.4952 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5634/1.05, allocations: 138.9 MB / 0.6308 GB, free: 81.58 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.392e-06/1.05, allocations: 0 / 0.6308 GB, free: 81.58 MB / 442.7 MB Notification: Performance of Transformations before backend: time 9.747e-05/1.051, allocations: 39.44 kB / 0.6308 GB, free: 81.58 MB / 442.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.006667/1.057, allocations: 2.585 MB / 0.6334 GB, free: 80 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/1.057, allocations: 8.781 kB / 0.6334 GB, free: 80 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003229/1.058, allocations: 96.31 kB / 0.6335 GB, free: 79.93 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007694/1.058, allocations: 372.9 kB / 0.6338 GB, free: 79.74 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005265/1.064, allocations: 2.219 MB / 0.636 GB, free: 78.71 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.913e-05/1.064, allocations: 28.75 kB / 0.636 GB, free: 78.7 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002473/1.064, allocations: 53.5 kB / 0.6361 GB, free: 78.68 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/1.065, allocations: 0.7586 MB / 0.6368 GB, free: 78.32 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.813e-05/1.065, allocations: 0 / 0.6368 GB, free: 78.32 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.319e-05/1.066, allocations: 15.84 kB / 0.6368 GB, free: 78.31 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.487e-05/1.066, allocations: 27.23 kB / 0.6368 GB, free: 78.3 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001257/1.067, allocations: 0.6836 MB / 0.6375 GB, free: 78.1 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007074/1.074, allocations: 2.928 MB / 0.6404 GB, free: 76.7 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007764/1.075, allocations: 0.5948 MB / 0.6409 GB, free: 76.34 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007246/1.076, allocations: 0.5982 MB / 0.6415 GB, free: 76.05 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03034/1.106, allocations: 36.63 MB / 0.6773 GB, free: 46.42 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004586/1.106, allocations: 301.5 kB / 0.6776 GB, free: 46.31 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.815e-06/1.106, allocations: 0 / 0.6776 GB, free: 46.31 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.001568/1.108, allocations: 0.8953 MB / 0.6785 GB, free: 45.93 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.173e-05/1.108, allocations: 268.9 kB / 0.6787 GB, free: 45.61 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002878/1.111, allocations: 2.3 MB / 0.681 GB, free: 44.74 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 6.005e-05/1.111, allocations: 35.8 kB / 0.681 GB, free: 44.71 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009231/1.112, allocations: 1.385 MB / 0.6824 GB, free: 43.59 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001117/1.112, allocations: 165 kB / 0.6825 GB, free: 43.46 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.905e-05/1.112, allocations: 15.62 kB / 0.6825 GB, free: 43.45 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 6.389e-05/1.112, allocations: 344.6 kB / 0.6829 GB, free: 43.13 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002792/1.112, allocations: 182.6 kB / 0.683 GB, free: 43.07 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004358/1.113, allocations: 0.5835 MB / 0.6836 GB, free: 42.46 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003654/1.113, allocations: 279.4 kB / 0.6839 GB, free: 42.36 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.601e-06/1.113, allocations: 1.688 kB / 0.6839 GB, free: 42.36 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001622/1.115, allocations: 1.172 MB / 0.685 GB, free: 41.88 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.457e-05/1.115, allocations: 7.25 kB / 0.685 GB, free: 41.88 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.23e-05/1.115, allocations: 85.39 kB / 0.6851 GB, free: 41.88 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005232/1.116, allocations: 282.9 kB / 0.6854 GB, free: 41.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005513/1.116, allocations: 181 kB / 0.6855 GB, free: 41.79 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008141/1.117, allocations: 0.8824 MB / 0.6864 GB, free: 41.14 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001271/1.118, allocations: 122.4 kB / 0.6865 GB, free: 41.07 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.373e-05/1.118, allocations: 68.25 kB / 0.6866 GB, free: 41.06 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 () * 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.0001972/1.119, allocations: 155.6 kB / 0.6867 GB, free: 40.92 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003334/1.119, allocations: 364.5 kB / 0.6871 GB, free: 40.73 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002819/1.122, allocations: 1.217 MB / 0.6883 GB, free: 40.12 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/1.122, allocations: 6.844 kB / 0.6883 GB, free: 40.12 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/1.122, allocations: 4 kB / 0.6883 GB, free: 40.11 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/1.122, allocations: 3.984 kB / 0.6883 GB, free: 40.11 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003148/1.125, allocations: 2.115 MB / 0.6904 GB, free: 38.75 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.192e-05/1.125, allocations: 66.59 kB / 0.6904 GB, free: 38.75 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/1.125, allocations: 74.84 kB / 0.6905 GB, free: 38.73 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003988/1.126, allocations: 257.9 kB / 0.6907 GB, free: 38.66 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.147e-05/1.126, allocations: 35.84 kB / 0.6908 GB, free: 38.65 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006896/1.127, allocations: 0.8542 MB / 0.6916 GB, free: 38.02 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/1.127, allocations: 3.938 kB / 0.6916 GB, free: 38.01 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001432/1.128, allocations: 1.146 MB / 0.6927 GB, free: 37.29 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009386/1.129, allocations: 473.6 kB / 0.6932 GB, free: 36.92 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002668/1.129, allocations: 17.67 kB / 0.6932 GB, free: 36.91 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006817/1.13, allocations: 43.28 kB / 0.6932 GB, free: 36.89 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001484/1.13, allocations: 69.05 kB / 0.6933 GB, free: 36.86 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.323e-05/1.13, allocations: 38.59 kB / 0.6933 GB, free: 36.86 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.002358/1.132, allocations: 1.752 MB / 0.695 GB, free: 36.02 MB / 442.7 MB Notification: Performance of sort global known variables: time 3.41e-07/1.132, allocations: 0 / 0.695 GB, free: 36.02 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001671/1.134, allocations: 0.6245 MB / 0.6957 GB, free: 35.45 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) * 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.002613/1.137, allocations: 2.655 MB / 0.6982 GB, free: 32.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001212/1.138, allocations: 0.7501 MB / 0.699 GB, free: 32.13 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/1.138, allocations: 0 / 0.699 GB, free: 32.13 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005548/1.139, allocations: 448.5 kB / 0.6994 GB, free: 31.67 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002499/1.141, allocations: 0.5549 MB / 0.7 GB, free: 31.13 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005555/1.147, allocations: 3.222 MB / 0.7031 GB, free: 27.84 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00082/1.148, allocations: 1.666 MB / 0.7047 GB, free: 26.14 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001218/1.149, allocations: 340.1 kB / 0.705 GB, free: 25.8 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008794/1.15, allocations: 1.12 MB / 0.7061 GB, free: 24.68 MB / 442.7 MB Notification: Performance of SimCode: time 7.41e-07/1.15, allocations: 0 / 0.7061 GB, free: 24.68 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3647/1.514, allocations: 57.91 MB / 0.7627 GB, free: 88.12 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001336/1.515, allocations: 172.4 kB / 0.7629 GB, free: 87.89 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.406/5.921, allocations: 3.438 kB / 0.7629 GB, free: 87.89 MB / 458.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