Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_3_cpp_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.002479/0.002478, allocations: 181.1 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.039/2.039, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001096/0.001095, allocations: 90.64 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.688e-05/3.704e-05, allocations: 4 kB / 321.6 MB, free: 17.76 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09667/0.09675, allocations: 47.58 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4393/0.5361, allocations: 102.1 MB / 471.3 MB, free: 7.039 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002705/0.5364, allocations: 75.95 kB / 471.3 MB, free: 7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6824/1.219, allocations: 123.2 MB / 0.5806 GB, free: 90.71 MB / 410.7 MB Notification: Performance of FrontEnd: time 2.224e-06/1.219, allocations: 7.938 kB / 0.5806 GB, free: 90.7 MB / 410.7 MB Notification: Performance of Transformations before backend: time 7.203e-05/1.219, allocations: 43.53 kB / 0.5807 GB, free: 90.7 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.006863/1.226, allocations: 2.585 MB / 0.5832 GB, free: 89.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.979e-05/1.226, allocations: 11.72 kB / 0.5832 GB, free: 89.11 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002849/1.226, allocations: 95.69 kB / 0.5833 GB, free: 89.04 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007527/1.227, allocations: 380.1 kB / 0.5837 GB, free: 88.85 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005909/1.233, allocations: 2.231 MB / 0.5858 GB, free: 87.81 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.4e-05/1.233, allocations: 35.88 kB / 0.5859 GB, free: 87.8 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001896/1.233, allocations: 55.56 kB / 0.5859 GB, free: 87.78 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001642/1.235, allocations: 0.7574 MB / 0.5867 GB, free: 87.42 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.043e-05/1.235, allocations: 0 / 0.5867 GB, free: 87.42 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001081/1.235, allocations: 18.53 kB / 0.5867 GB, free: 87.41 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.895e-05/1.235, allocations: 21.16 kB / 0.5867 GB, free: 87.41 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001519/1.237, allocations: 0.6806 MB / 0.5874 GB, free: 87.21 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00784/1.244, allocations: 2.937 MB / 0.5902 GB, free: 85.8 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/1.246, allocations: 0.6135 MB / 0.5908 GB, free: 85.43 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001083/1.247, allocations: 0.5998 MB / 0.5914 GB, free: 85.12 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04762/1.295, allocations: 36.06 MB / 0.6266 GB, free: 48.5 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007106/1.295, allocations: 309.6 kB / 0.6269 GB, free: 48.19 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 4.568e-06/1.295, allocations: 0 / 0.6269 GB, free: 48.19 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.002477/1.298, allocations: 0.8857 MB / 0.6278 GB, free: 47.29 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.776e-05/1.298, allocations: 277 kB / 0.6281 GB, free: 46.95 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00516/1.303, allocations: 2.31 MB / 0.6303 GB, free: 44.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000178/1.303, allocations: 37.7 kB / 0.6304 GB, free: 44.58 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001293/1.305, allocations: 1.153 MB / 0.6315 GB, free: 43.43 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002914/1.305, allocations: 165 kB / 0.6316 GB, free: 43.27 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.827e-05/1.305, allocations: 16 kB / 0.6316 GB, free: 43.25 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 8.672e-05/1.305, allocations: 346.8 kB / 0.632 GB, free: 42.91 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005172/1.306, allocations: 182 kB / 0.6322 GB, free: 42.73 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007003/1.306, allocations: 0.5919 MB / 0.6327 GB, free: 41.95 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006246/1.307, allocations: 276.2 kB / 0.633 GB, free: 41.68 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.348e-06/1.307, allocations: 7.938 kB / 0.633 GB, free: 41.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002103/1.309, allocations: 0.8796 MB / 0.6339 GB, free: 40.79 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.25e-05/1.309, allocations: 8 kB / 0.6339 GB, free: 40.78 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001559/1.309, allocations: 79.98 kB / 0.6339 GB, free: 40.7 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008303/1.31, allocations: 281.1 kB / 0.6342 GB, free: 40.43 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001163/1.311, allocations: 175.7 kB / 0.6344 GB, free: 40.25 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001395/1.313, allocations: 0.8725 MB / 0.6352 GB, free: 39.36 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002448/1.315, allocations: 130.9 kB / 0.6354 GB, free: 39.23 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000271/1.316, allocations: 67.92 kB / 0.6354 GB, free: 39.16 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.0002771/1.316, allocations: 170 kB / 0.6356 GB, free: 38.99 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000763/1.317, allocations: 363.6 kB / 0.6359 GB, free: 38.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004899/1.322, allocations: 1.216 MB / 0.6371 GB, free: 37.41 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-05/1.322, allocations: 8 kB / 0.6371 GB, free: 37.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.286e-06/1.322, allocations: 0 / 0.6371 GB, free: 37.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.717e-06/1.322, allocations: 3.984 kB / 0.6371 GB, free: 37.39 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005678/1.328, allocations: 2.118 MB / 0.6392 GB, free: 35.2 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.000144/1.328, allocations: 79.92 kB / 0.6393 GB, free: 35.12 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006183/1.328, allocations: 68.08 kB / 0.6393 GB, free: 35.05 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007283/1.329, allocations: 267.9 kB / 0.6396 GB, free: 34.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/1.329, allocations: 39.98 kB / 0.6396 GB, free: 34.75 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001195/1.33, allocations: 0.8568 MB / 0.6405 GB, free: 33.87 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.878e-06/1.33, allocations: 0 / 0.6405 GB, free: 33.87 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00233/1.333, allocations: 1.149 MB / 0.6416 GB, free: 32.65 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001577/1.334, allocations: 476.4 kB / 0.642 GB, free: 32.16 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005618/1.335, allocations: 8 kB / 0.6421 GB, free: 32.16 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00155/1.337, allocations: 47.95 kB / 0.6421 GB, free: 32.11 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002282/1.337, allocations: 59.94 kB / 0.6422 GB, free: 32.05 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/1.337, allocations: 47.92 kB / 0.6422 GB, free: 32 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.003664/1.341, allocations: 1.764 MB / 0.6439 GB, free: 30.23 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.152e-06/1.341, allocations: 0 / 0.6439 GB, free: 30.23 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002461/1.343, allocations: 0.6244 MB / 0.6445 GB, free: 29.61 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.003943/1.347, allocations: 2.669 MB / 0.6471 GB, free: 27.04 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.001994/1.349, allocations: 0.7431 MB / 0.6479 GB, free: 26.28 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.773e-06/1.349, allocations: 0 / 0.6479 GB, free: 26.28 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009791/1.35, allocations: 455.4 kB / 0.6483 GB, free: 25.81 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002906/1.353, allocations: 468.2 kB / 0.6487 GB, free: 25.35 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009479/1.363, allocations: 3.315 MB / 0.652 GB, free: 21.96 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00154/1.364, allocations: 1.667 MB / 0.6536 GB, free: 20.27 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002566/1.367, allocations: 1.124 MB / 0.6547 GB, free: 19.14 MB / 410.7 MB Notification: Performance of SimCode: time 2.605e-06/1.367, allocations: 4 kB / 0.6547 GB, free: 19.14 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.861/5.228, allocations: 55.47 MB / 0.7089 GB, free: 103.9 MB / 426.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Nand_fmu --startTime=0 --stopTime=2e-07 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Nand.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat