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.001275/0.001275, allocations: 174.9 kB / 13.63 MB, free: 1.684 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.338/1.338, allocations: 221.3 MB / 235.5 MB, free: 2.902 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.0008746/0.0008747, allocations: 97.83 kB / 286.5 MB, free: 180 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.244e-05/3.246e-05, allocations: 4 kB / 343.9 MB, free: 4.219 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1083/0.1084, allocations: 50.41 MB / 394.3 MB, free: 1.766 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3601/0.4685, allocations: 104.1 MB / 498.4 MB, free: 15.38 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002554/0.4689, allocations: 67.97 kB / 498.5 MB, free: 15.31 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5091/0.9779, allocations: 138.4 MB / 0.622 GB, free: 82.28 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.764e-06/0.978, allocations: 0 / 0.622 GB, free: 82.28 MB / 426.7 MB Notification: Performance of Transformations before backend: time 4.363e-05/0.978, allocations: 40 kB / 0.622 GB, free: 82.24 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.003706/0.9817, allocations: 2.58 MB / 0.6245 GB, free: 79.61 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.271e-05/0.9818, allocations: 12.03 kB / 0.6245 GB, free: 79.6 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001085/0.9819, allocations: 94.5 kB / 0.6246 GB, free: 79.5 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000305/0.9822, allocations: 371.5 kB / 0.625 GB, free: 79.13 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002853/0.9851, allocations: 2.217 MB / 0.6272 GB, free: 76.84 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.988e-05/0.9851, allocations: 40.98 kB / 0.6272 GB, free: 76.8 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001155/0.9853, allocations: 51.95 kB / 0.6272 GB, free: 76.75 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009821/0.9862, allocations: 0.7559 MB / 0.628 GB, free: 75.96 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.604e-05/0.9863, allocations: 0 / 0.628 GB, free: 75.96 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.908e-05/0.9864, allocations: 24 kB / 0.628 GB, free: 75.94 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.995e-05/0.9864, allocations: 23.92 kB / 0.628 GB, free: 75.91 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008296/0.9872, allocations: 0.676 MB / 0.6287 GB, free: 75.23 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003902/0.9911, allocations: 2.934 MB / 0.6316 GB, free: 72.23 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005981/0.9917, allocations: 0.5883 MB / 0.6321 GB, free: 71.61 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005998/0.9923, allocations: 0.6019 MB / 0.6327 GB, free: 71 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02716/1.02, allocations: 35.97 MB / 0.6678 GB, free: 29.9 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004372/1.02, allocations: 321.5 kB / 0.6682 GB, free: 29.57 MB / 426.7 MB Notification: Performance of pre-optimization done (n=49): time 2.625e-06/1.02, allocations: 0 / 0.6682 GB, free: 29.57 MB / 426.7 MB Notification: Performance of matching and sorting (n=49): time 0.001246/1.021, allocations: 0.8806 MB / 0.669 GB, free: 28.68 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.357e-05/1.021, allocations: 265 kB / 0.6693 GB, free: 28.36 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00243/1.024, allocations: 2.305 MB / 0.6715 GB, free: 26.04 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 4.832e-05/1.024, allocations: 37.7 kB / 0.6715 GB, free: 25.99 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009411/1.025, allocations: 1.391 MB / 0.6729 GB, free: 24.59 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001223/1.025, allocations: 169.7 kB / 0.6731 GB, free: 24.43 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.129e-05/1.025, allocations: 20 kB / 0.6731 GB, free: 24.41 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 9.79e-05/1.025, allocations: 337.9 kB / 0.6734 GB, free: 24.07 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002706/1.025, allocations: 178 kB / 0.6736 GB, free: 23.9 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004967/1.026, allocations: 0.5842 MB / 0.6742 GB, free: 23.12 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003813/1.026, allocations: 269 kB / 0.6744 GB, free: 22.86 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/1.026, allocations: 4 kB / 0.6744 GB, free: 22.86 MB / 426.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.00144/1.028, allocations: 1.18 MB / 0.6756 GB, free: 21.67 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.8e-05/1.028, allocations: 13.78 kB / 0.6756 GB, free: 21.66 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.636e-05/1.028, allocations: 83.98 kB / 0.6757 GB, free: 21.57 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005032/1.028, allocations: 272.8 kB / 0.6759 GB, free: 21.3 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005413/1.029, allocations: 179.7 kB / 0.6761 GB, free: 21.13 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007358/1.03, allocations: 0.8783 MB / 0.6769 GB, free: 20.23 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001107/1.031, allocations: 131 kB / 0.6771 GB, free: 20.1 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001019/1.031, allocations: 64 kB / 0.6771 GB, free: 20.04 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.0001827/1.031, allocations: 172.6 kB / 0.6773 GB, free: 19.86 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002822/1.031, allocations: 363.6 kB / 0.6776 GB, free: 19.5 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002587/1.034, allocations: 1.212 MB / 0.6788 GB, free: 18.27 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.314e-06/1.034, allocations: 4 kB / 0.6788 GB, free: 18.27 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/1.034, allocations: 3.938 kB / 0.6788 GB, free: 18.27 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.009e-06/1.034, allocations: 7.984 kB / 0.6788 GB, free: 18.26 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002619/1.037, allocations: 2.115 MB / 0.6809 GB, free: 16.06 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.948e-05/1.037, allocations: 67.98 kB / 0.681 GB, free: 16 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002998/1.037, allocations: 80 kB / 0.681 GB, free: 15.92 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003792/1.037, allocations: 264.7 kB / 0.6813 GB, free: 15.66 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.003e-05/1.037, allocations: 31.98 kB / 0.6813 GB, free: 15.62 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000641/1.038, allocations: 0.8452 MB / 0.6822 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/1.038, allocations: 3.938 kB / 0.6822 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/1.039, allocations: 1.137 MB / 0.6833 GB, free: 13.53 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000689/1.04, allocations: 468.5 kB / 0.6837 GB, free: 13.05 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002492/1.04, allocations: 19.94 kB / 0.6837 GB, free: 13.03 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006698/1.041, allocations: 43.97 kB / 0.6838 GB, free: 12.99 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001303/1.041, allocations: 63.92 kB / 0.6838 GB, free: 12.93 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.513e-05/1.041, allocations: 36 kB / 0.6839 GB, free: 12.89 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.001736/1.043, allocations: 1.755 MB / 0.6856 GB, free: 11.12 MB / 426.7 MB Notification: Performance of sort global known variables: time 1.71e-07/1.043, allocations: 0 / 0.6856 GB, free: 11.12 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.001256/1.044, allocations: 0.6205 MB / 0.6862 GB, free: 10.5 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.002239/1.046, allocations: 2.671 MB / 0.6888 GB, free: 7.77 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.00108/1.047, allocations: 0.7255 MB / 0.6895 GB, free: 7.023 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/1.047, allocations: 0 / 0.6895 GB, free: 7.023 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005314/1.048, allocations: 464.7 kB / 0.69 GB, free: 6.543 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00184/1.05, allocations: 0.5482 MB / 0.6905 GB, free: 5.992 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004266/1.054, allocations: 3.222 MB / 0.6936 GB, free: 2.699 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000774/1.055, allocations: 1.662 MB / 0.6953 GB, free: 1.008 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.001037/1.056, allocations: 344.1 kB / 0.6956 GB, free: 0.668 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009688/1.057, allocations: 1.116 MB / 0.6967 GB, free: 15.55 MB / 442.7 MB Notification: Performance of SimCode: time 8.92e-07/1.057, allocations: 0 / 0.6967 GB, free: 15.55 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3588/1.416, allocations: 57.88 MB / 0.7532 GB, free: 97.45 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001695/1.416, allocations: 176.5 kB / 0.7534 GB, free: 97.22 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 4.115/5.531, allocations: 1.938 kB / 0.7534 GB, free: 97.22 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