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.00112/0.00112, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 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.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009075/0.0009075, allocations: 86.64 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.76e-05/2.761e-05, allocations: 4 kB / 322.5 MB, free: 17.27 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09493/0.09497, allocations: 47.57 MB / 370.1 MB, free: 1.633 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3611/0.4561, allocations: 102.1 MB / 472.2 MB, free: 7.457 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002149/0.4564, allocations: 72.44 kB / 472.3 MB, free: 7.422 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4574/0.9138, allocations: 123.2 MB / 0.5815 GB, free: 91.06 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.9138, allocations: 4 kB / 0.5815 GB, free: 91.05 MB / 410.7 MB Notification: Performance of Transformations before backend: time 4.594e-05/0.9139, allocations: 43.12 kB / 0.5816 GB, free: 91.05 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.003711/0.9176, allocations: 2.585 MB / 0.5841 GB, free: 89.47 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.9177, allocations: 14.06 kB / 0.5841 GB, free: 89.46 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001019/0.9178, allocations: 98.77 kB / 0.5842 GB, free: 89.39 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003135/0.9181, allocations: 377.6 kB / 0.5846 GB, free: 89.2 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003011/0.9211, allocations: 2.244 MB / 0.5868 GB, free: 88.15 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.9212, allocations: 34.06 kB / 0.5868 GB, free: 88.14 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001127/0.9213, allocations: 48.09 kB / 0.5868 GB, free: 88.12 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009435/0.9222, allocations: 0.7581 MB / 0.5876 GB, free: 87.77 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.291e-05/0.9223, allocations: 0 / 0.5876 GB, free: 87.77 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.391e-05/0.9223, allocations: 17.28 kB / 0.5876 GB, free: 87.75 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.867e-05/0.9223, allocations: 25.61 kB / 0.5876 GB, free: 87.75 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008159/0.9232, allocations: 0.6776 MB / 0.5883 GB, free: 87.55 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004272/0.9275, allocations: 2.931 MB / 0.5911 GB, free: 86.14 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006239/0.9281, allocations: 0.6066 MB / 0.5917 GB, free: 85.78 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006129/0.9287, allocations: 0.6011 MB / 0.5923 GB, free: 85.48 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02749/0.9562, allocations: 36.07 MB / 0.6275 GB, free: 48.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004272/0.9567, allocations: 317.6 kB / 0.6278 GB, free: 48.19 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 2.364e-06/0.9567, allocations: 0 / 0.6278 GB, free: 48.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.001509/0.9582, allocations: 0.882 MB / 0.6287 GB, free: 47.3 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.296e-05/0.9583, allocations: 277 kB / 0.629 GB, free: 46.96 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002669/0.961, allocations: 2.31 MB / 0.6312 GB, free: 44.64 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 6.107e-05/0.9611, allocations: 37.7 kB / 0.6313 GB, free: 44.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008263/0.9619, allocations: 1.396 MB / 0.6326 GB, free: 43.2 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001085/0.962, allocations: 162.9 kB / 0.6328 GB, free: 43.04 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.9621, allocations: 16 kB / 0.6328 GB, free: 43.02 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.96e-05/0.9622, allocations: 341.9 kB / 0.6331 GB, free: 42.68 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.9624, allocations: 182 kB / 0.6333 GB, free: 42.51 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004029/0.9628, allocations: 0.5919 MB / 0.6339 GB, free: 41.72 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003507/0.9632, allocations: 275.8 kB / 0.6341 GB, free: 41.46 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.642e-06/0.9632, allocations: 4 kB / 0.6341 GB, free: 41.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.001464/0.9647, allocations: 1.178 MB / 0.6353 GB, free: 40.26 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.262e-05/0.9647, allocations: 12 kB / 0.6353 GB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.461e-05/0.9648, allocations: 79.98 kB / 0.6354 GB, free: 40.17 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005105/0.9653, allocations: 281.7 kB / 0.6357 GB, free: 39.89 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005308/0.9659, allocations: 175.7 kB / 0.6358 GB, free: 39.72 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007164/0.9666, allocations: 0.8827 MB / 0.6367 GB, free: 38.82 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001197/0.9678, allocations: 127 kB / 0.6368 GB, free: 38.69 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.453e-05/0.9679, allocations: 68.06 kB / 0.6369 GB, free: 38.62 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.0001559/0.9681, allocations: 158 kB / 0.637 GB, free: 38.46 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002426/0.9683, allocations: 371.5 kB / 0.6374 GB, free: 38.1 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002704/0.971, allocations: 1.22 MB / 0.6386 GB, free: 36.88 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.971, allocations: 8 kB / 0.6386 GB, free: 36.87 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.939e-06/0.9711, allocations: 0 / 0.6386 GB, free: 36.87 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.071e-06/0.9711, allocations: 3.984 kB / 0.6386 GB, free: 36.86 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003011/0.9741, allocations: 2.117 MB / 0.6406 GB, free: 34.67 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.077e-05/0.9742, allocations: 67.98 kB / 0.6407 GB, free: 34.6 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003092/0.9745, allocations: 76.06 kB / 0.6408 GB, free: 34.53 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003884/0.9749, allocations: 269.2 kB / 0.641 GB, free: 34.27 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.974e-05/0.9749, allocations: 35.98 kB / 0.6411 GB, free: 34.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006541/0.9756, allocations: 0.8491 MB / 0.6419 GB, free: 33.36 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.594e-06/0.9756, allocations: 7.938 kB / 0.6419 GB, free: 33.35 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001052/0.9767, allocations: 1.144 MB / 0.643 GB, free: 32.13 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008243/0.9775, allocations: 484.3 kB / 0.6435 GB, free: 31.64 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002479/0.9778, allocations: 8 kB / 0.6435 GB, free: 31.63 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006624/0.9784, allocations: 47.95 kB / 0.6435 GB, free: 31.58 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001364/0.9786, allocations: 63.88 kB / 0.6436 GB, free: 31.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.146e-05/0.9787, allocations: 39.98 kB / 0.6436 GB, free: 31.48 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001815/0.9805, allocations: 1.764 MB / 0.6454 GB, free: 29.71 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.9805, allocations: 0 / 0.6454 GB, free: 29.71 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001339/0.9818, allocations: 0.6283 MB / 0.646 GB, free: 29.08 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.002192/0.984, allocations: 2.669 MB / 0.6486 GB, free: 26.52 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001095/0.9851, allocations: 0.7504 MB / 0.6493 GB, free: 25.75 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.9851, allocations: 1.5 kB / 0.6493 GB, free: 25.75 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000513/0.9857, allocations: 444.3 kB / 0.6497 GB, free: 25.29 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001317/0.987, allocations: 466.9 kB / 0.6502 GB, free: 24.83 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005152/0.9922, allocations: 3.251 MB / 0.6534 GB, free: 21.51 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007395/0.9929, allocations: 1.667 MB / 0.655 GB, free: 19.81 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.001058/0.994, allocations: 344.4 kB / 0.6553 GB, free: 19.47 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000834/0.9948, allocations: 1.12 MB / 0.6564 GB, free: 18.35 MB / 410.7 MB Notification: Performance of SimCode: time 1.002e-06/0.9948, allocations: 0 / 0.6564 GB, free: 18.35 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3298/1.325, allocations: 58.15 MB / 0.7132 GB, free: 104.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001493/1.325, allocations: 168.6 kB / 0.7134 GB, free: 103.9 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.196/5.521, allocations: 0 / 0.7134 GB, free: 103.9 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