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.001087/0.001086, allocations: 176.4 kB / 8.346 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 221.5 MB / 230.3 MB, free: 7.547 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001064/0.001064, allocations: 96.45 kB / 281.2 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.205e-05/2.207e-05, allocations: 0 / 337.1 MB, free: 9.918 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1337/0.1337, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4031/0.5369, allocations: 103.4 MB / 491 MB, free: 7.328 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002052/0.5371, allocations: 67.97 kB / 491 MB, free: 7.262 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5304/1.067, allocations: 133.2 MB / 0.6096 GB, free: 93.51 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.773e-06/1.068, allocations: 0 / 0.6096 GB, free: 93.51 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.471e-05/1.068, allocations: 41.75 kB / 0.6096 GB, free: 93.51 MB / 426.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.003917/1.072, allocations: 2.582 MB / 0.6121 GB, free: 91.66 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.644e-05/1.072, allocations: 7.5 kB / 0.6121 GB, free: 91.66 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003939/1.072, allocations: 373.9 kB / 0.6125 GB, free: 91.47 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002989/1.075, allocations: 2.229 MB / 0.6147 GB, free: 89.91 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.815e-05/1.075, allocations: 12.69 kB / 0.6147 GB, free: 89.91 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000102/1.075, allocations: 32.39 kB / 0.6147 GB, free: 89.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009051/1.076, allocations: 0.6643 MB / 0.6154 GB, free: 89.68 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008899/1.077, allocations: 0.6924 MB / 0.616 GB, free: 89.24 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.74e-05/1.077, allocations: 3.656 kB / 0.616 GB, free: 89.24 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.157e-05/1.077, allocations: 0 / 0.616 GB, free: 89.24 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.888e-05/1.077, allocations: 20.11 kB / 0.6161 GB, free: 89.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004534/1.082, allocations: 2.803 MB / 0.6188 GB, free: 87.38 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006101/1.082, allocations: 0.5706 MB / 0.6194 GB, free: 87.02 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005273/1.083, allocations: 0.5758 MB / 0.6199 GB, free: 86.44 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02698/1.11, allocations: 35.96 MB / 0.655 GB, free: 45.4 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000414/1.11, allocations: 297.6 kB / 0.6553 GB, free: 45.09 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 3.827e-06/1.11, allocations: 3.938 kB / 0.6553 GB, free: 45.09 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001486/1.112, allocations: 0.8716 MB / 0.6562 GB, free: 44.21 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.204e-05/1.112, allocations: 265 kB / 0.6564 GB, free: 43.89 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002491/1.114, allocations: 2.091 MB / 0.6585 GB, free: 41.78 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.018e-05/1.114, allocations: 29.7 kB / 0.6585 GB, free: 41.75 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008796/1.115, allocations: 1.395 MB / 0.6599 GB, free: 40.34 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/1.115, allocations: 157.8 kB / 0.66 GB, free: 40.19 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.025e-05/1.115, allocations: 0 / 0.66 GB, free: 40.19 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 7.847e-05/1.116, allocations: 342 kB / 0.6603 GB, free: 39.85 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000227/1.116, allocations: 170.6 kB / 0.6605 GB, free: 39.68 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003635/1.116, allocations: 0.5612 MB / 0.661 GB, free: 38.93 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003677/1.117, allocations: 252.1 kB / 0.6613 GB, free: 38.68 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/1.117, allocations: 4 kB / 0.6613 GB, free: 38.68 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001364/1.118, allocations: 1.079 MB / 0.6623 GB, free: 37.59 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/1.118, allocations: 12.06 kB / 0.6624 GB, free: 37.58 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.842e-05/1.118, allocations: 79.98 kB / 0.6624 GB, free: 37.5 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004437/1.119, allocations: 274.2 kB / 0.6627 GB, free: 37.23 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005675/1.119, allocations: 183.7 kB / 0.6629 GB, free: 37.05 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007693/1.12, allocations: 0.9231 MB / 0.6638 GB, free: 36.11 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/1.121, allocations: 99.03 kB / 0.6639 GB, free: 36.01 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.901e-05/1.121, allocations: 64 kB / 0.6639 GB, free: 35.95 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 () * 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.0001668/1.121, allocations: 148.7 kB / 0.6641 GB, free: 35.79 MB / 426.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001032/1.122, allocations: 0.8603 MB / 0.6649 GB, free: 34.93 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002633/1.123, allocations: 367.6 kB / 0.6653 GB, free: 34.56 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002493/1.125, allocations: 1.165 MB / 0.6664 GB, free: 33.38 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.704e-06/1.125, allocations: 12 kB / 0.6664 GB, free: 33.37 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.05e-06/1.125, allocations: 0 / 0.6664 GB, free: 33.37 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/1.125, allocations: 7.922 kB / 0.6664 GB, free: 33.36 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002708/1.128, allocations: 2.005 MB / 0.6684 GB, free: 31.3 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.325e-05/1.128, allocations: 67.98 kB / 0.6684 GB, free: 31.24 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003153/1.128, allocations: 76.08 kB / 0.6685 GB, free: 31.16 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003586/1.129, allocations: 259.1 kB / 0.6688 GB, free: 30.91 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.774e-05/1.129, allocations: 24 kB / 0.6688 GB, free: 30.89 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007007/1.129, allocations: 0.894 MB / 0.6697 GB, free: 29.97 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.537e-06/1.129, allocations: 3.953 kB / 0.6697 GB, free: 29.96 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/1.131, allocations: 1.12 MB / 0.6708 GB, free: 28.77 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006578/1.131, allocations: 468.4 kB / 0.6712 GB, free: 28.29 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002883/1.132, allocations: 11.98 kB / 0.6712 GB, free: 28.27 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006764/1.132, allocations: 35.92 kB / 0.6712 GB, free: 28.24 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001255/1.132, allocations: 67.86 kB / 0.6713 GB, free: 28.17 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.953e-05/1.132, allocations: 40 kB / 0.6713 GB, free: 28.13 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001698/1.134, allocations: 1.55 MB / 0.6729 GB, free: 26.58 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.8e-07/1.134, allocations: 0 / 0.6729 GB, free: 26.58 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001322/1.135, allocations: 0.5738 MB / 0.6734 GB, free: 26 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) * 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.002343/1.138, allocations: 2.724 MB / 0.6761 GB, free: 23.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.001081/1.139, allocations: 0.6973 MB / 0.6768 GB, free: 22.59 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/1.139, allocations: 0 / 0.6768 GB, free: 22.59 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000514/1.139, allocations: 428 kB / 0.6772 GB, free: 22.14 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002118/1.142, allocations: 0.5515 MB / 0.6777 GB, free: 21.59 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004863/1.146, allocations: 3.182 MB / 0.6808 GB, free: 18.34 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007942/1.147, allocations: 1.666 MB / 0.6824 GB, free: 16.64 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001156/1.148, allocations: 340 kB / 0.6828 GB, free: 16.31 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008666/1.149, allocations: 1.116 MB / 0.6839 GB, free: 15.19 MB / 426.7 MB Notification: Performance of SimCode: time 7.42e-07/1.149, allocations: 0 / 0.6839 GB, free: 15.19 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3706/1.52, allocations: 52.39 MB / 0.735 GB, free: 105.6 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001558/1.52, allocations: 121.6 kB / 0.7351 GB, free: 105.4 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.284/5.804, allocations: 3.938 kB / 0.7351 GB, free: 105.4 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