Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001578/0.001578, allocations: 179.3 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.368/1.368, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009296/0.0009298, allocations: 102.3 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002729/0.000273, allocations: 4 kB / 351.2 MB, free: 15.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2797/0.28, allocations: 50.41 MB / 401.6 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.127/0.4071, allocations: 104.1 MB / 0.4939 GB, free: 8.289 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002124/0.4073, allocations: 79.89 kB / 0.4939 GB, free: 8.211 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4986/0.9059, allocations: 138.5 MB / 0.6292 GB, free: 13.57 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.906, allocations: 0 / 0.6292 GB, free: 13.57 MB / 410.7 MB Notification: Performance of Transformations before backend: time 6.227e-05/0.906, allocations: 40 kB / 0.6292 GB, free: 13.53 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.006361/0.9124, allocations: 3.25 MB / 0.6324 GB, free: 10.21 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.9125, allocations: 8.031 kB / 0.6324 GB, free: 10.2 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001683/0.9126, allocations: 98.5 kB / 0.6325 GB, free: 10.1 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004323/0.9131, allocations: 379.4 kB / 0.6328 GB, free: 9.723 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003851/0.9169, allocations: 2.237 MB / 0.635 GB, free: 7.414 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.983e-05/0.917, allocations: 32.95 kB / 0.635 GB, free: 7.383 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001237/0.9171, allocations: 51.91 kB / 0.6351 GB, free: 7.332 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001441/0.9186, allocations: 0.8338 MB / 0.6359 GB, free: 6.465 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.9186, allocations: 0 / 0.6359 GB, free: 6.465 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001006/0.9187, allocations: 20 kB / 0.6359 GB, free: 6.445 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.036e-05/0.9188, allocations: 23.98 kB / 0.636 GB, free: 6.422 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001754/0.9205, allocations: 0.8202 MB / 0.6368 GB, free: 5.602 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005529/0.9261, allocations: 2.938 MB / 0.6396 GB, free: 2.594 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001215/0.9273, allocations: 0.7296 MB / 0.6403 GB, free: 1.836 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2953/1.223, allocations: 35.8 MB / 0.6753 GB, free: 90 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007945/1.223, allocations: 383.8 kB / 0.6757 GB, free: 89.95 MB / 442.7 MB Notification: Performance of pre-optimization done (n=49): time 2.935e-06/1.223, allocations: 3.391 kB / 0.6757 GB, free: 89.95 MB / 442.7 MB Notification: Performance of matching and sorting (n=49): time 0.003185/1.227, allocations: 1.458 MB / 0.6771 GB, free: 89.62 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.327e-05/1.227, allocations: 266.5 kB / 0.6773 GB, free: 89.31 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002923/1.23, allocations: 2.336 MB / 0.6796 GB, free: 89.04 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 5.875e-05/1.23, allocations: 39.02 kB / 0.6797 GB, free: 89.01 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001072/1.231, allocations: 1.386 MB / 0.681 GB, free: 88.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/1.231, allocations: 165.7 kB / 0.6812 GB, free: 88.72 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.627e-05/1.231, allocations: 17.31 kB / 0.6812 GB, free: 88.72 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001027/1.231, allocations: 338.5 kB / 0.6815 GB, free: 88.42 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005282/1.232, allocations: 252.4 kB / 0.6817 GB, free: 88.42 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006818/1.232, allocations: 0.6491 MB / 0.6824 GB, free: 87.92 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005806/1.233, allocations: 344.7 kB / 0.6827 GB, free: 87.92 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.386e-06/1.233, allocations: 2.094 kB / 0.6827 GB, free: 87.92 MB / 442.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002249/1.235, allocations: 1.32 MB / 0.684 GB, free: 87.7 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.53e-05/1.235, allocations: 13.28 kB / 0.684 GB, free: 87.7 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001289/1.235, allocations: 86.56 kB / 0.6841 GB, free: 87.7 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005533/1.236, allocations: 277.3 kB / 0.6844 GB, free: 87.69 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007213/1.237, allocations: 178.4 kB / 0.6845 GB, free: 87.69 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000863/1.238, allocations: 0.8802 MB / 0.6854 GB, free: 87.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001337/1.239, allocations: 131.5 kB / 0.6855 GB, free: 87.14 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.798e-05/1.239, allocations: 63.25 kB / 0.6856 GB, free: 87.14 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.001024/1.24, allocations: 429.9 kB / 0.686 GB, free: 87.02 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004005/1.241, allocations: 363.1 kB / 0.6863 GB, free: 86.84 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003156/1.244, allocations: 1.34 MB / 0.6876 GB, free: 86.74 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.143e-06/1.244, allocations: 2.656 kB / 0.6876 GB, free: 86.74 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.474e-06/1.244, allocations: 6.078 kB / 0.6876 GB, free: 86.74 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.895e-06/1.244, allocations: 7.016 kB / 0.6877 GB, free: 86.74 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004462/1.248, allocations: 2.263 MB / 0.6899 GB, free: 86.31 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.107e-05/1.248, allocations: 71.84 kB / 0.6899 GB, free: 86.31 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003142/1.249, allocations: 74.2 kB / 0.69 GB, free: 86.31 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004105/1.249, allocations: 257.6 kB / 0.6902 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.65e-05/1.249, allocations: 39.39 kB / 0.6903 GB, free: 86.3 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007309/1.25, allocations: 0.8523 MB / 0.6911 GB, free: 85.78 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/1.25, allocations: 7.188 kB / 0.6911 GB, free: 85.78 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002022/1.252, allocations: 1.27 MB / 0.6924 GB, free: 85.25 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00129/1.253, allocations: 474.9 kB / 0.6928 GB, free: 84.98 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007219/1.254, allocations: 22.42 kB / 0.6928 GB, free: 84.97 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001126/1.255, allocations: 42.41 kB / 0.6929 GB, free: 84.97 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000165/1.255, allocations: 74.08 kB / 0.693 GB, free: 84.96 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.038e-05/1.255, allocations: 40.56 kB / 0.693 GB, free: 84.96 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.003633/1.259, allocations: 1.785 MB / 0.6947 GB, free: 84.79 MB / 442.7 MB Notification: Performance of sort global known variables: time 4.2e-07/1.259, allocations: 0 / 0.6947 GB, free: 84.79 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002358/1.261, allocations: 0.6153 MB / 0.6953 GB, free: 84.78 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.004339/1.266, allocations: 2.797 MB / 0.6981 GB, free: 83.55 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001861/1.268, allocations: 0.8691 MB / 0.6989 GB, free: 83.43 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 1.023e-05/1.268, allocations: 7.016 kB / 0.6989 GB, free: 83.43 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008138/1.268, allocations: 0.5064 MB / 0.6994 GB, free: 83.3 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002803/1.271, allocations: 0.552 MB / 0.7 GB, free: 83.26 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03462/1.306, allocations: 24.92 MB / 0.7243 GB, free: 65.9 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001207/1.307, allocations: 1.66 MB / 0.7259 GB, free: 65.18 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.00139/1.309, allocations: 342.6 kB / 0.7262 GB, free: 65.15 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001188/1.31, allocations: 1.115 MB / 0.7273 GB, free: 65.14 MB / 442.7 MB Notification: Performance of SimCode: time 2.154e-06/1.31, allocations: 0 / 0.7273 GB, free: 65.14 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1184/1.428, allocations: 58.06 MB / 0.784 GB, free: 31.13 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001466/1.428, allocations: 189.7 kB / 0.7842 GB, free: 30.9 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.219/5.647, allocations: 0 / 0.7842 GB, free: 30.9 MB / 442.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat