Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.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.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit",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.002071/0.002071, allocations: 179.4 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.007/2.007, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.00111/0.00111, allocations: 93.17 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.554e-05/2.567e-05, allocations: 4 kB / 314.9 MB, free: 9.07 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3328/0.3328, allocations: 47.56 MB / 362.4 MB, free: 45.71 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.141/0.4739, allocations: 89.04 MB / 451.5 MB, free: 13.16 MB / 347.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002723/0.4742, allocations: 71.97 kB / 451.5 MB, free: 13.09 MB / 347.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.1237/0.5979, allocations: 32.67 MB / 484.2 MB, free: 12.25 MB / 379.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.598, allocations: 0.9375 kB / 484.2 MB, free: 12.25 MB / 379.1 MB Notification: Performance of Transformations before backend: time 2.643e-05/0.598, allocations: 12 kB / 484.2 MB, free: 12.24 MB / 379.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.002214/0.6002, allocations: 1.046 MB / 485.3 MB, free: 11.15 MB / 379.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.524e-05/0.6003, allocations: 8.031 kB / 485.3 MB, free: 11.14 MB / 379.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002371/0.6006, allocations: 114.6 kB / 485.4 MB, free: 11.03 MB / 379.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001759/0.6023, allocations: 0.7584 MB / 486.1 MB, free: 10.22 MB / 379.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.6024, allocations: 4 kB / 486.1 MB, free: 10.21 MB / 379.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.785e-05/0.6025, allocations: 16 kB / 486.2 MB, free: 10.2 MB / 379.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005841/0.6031, allocations: 205.1 kB / 486.4 MB, free: 10 MB / 379.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006269/0.6037, allocations: 262.6 kB / 486.6 MB, free: 9.73 MB / 379.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.593e-05/0.6037, allocations: 2.625 kB / 486.6 MB, free: 9.73 MB / 379.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.858e-05/0.6038, allocations: 0 / 486.6 MB, free: 9.73 MB / 379.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.589e-05/0.6038, allocations: 8 kB / 486.6 MB, free: 9.723 MB / 379.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002806/0.6066, allocations: 1.137 MB / 487.8 MB, free: 8.523 MB / 379.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004786/0.6072, allocations: 185.1 kB / 487.9 MB, free: 8.336 MB / 379.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000449/0.6076, allocations: 205.3 kB / 488.1 MB, free: 8.129 MB / 379.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01772/0.6254, allocations: 10.78 MB / 498.9 MB, free: 11.52 MB / 395.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.855e-05/0.6254, allocations: 38.55 kB / 499 MB, free: 11.47 MB / 395.1 MB Notification: Performance of pre-optimization done (n=23): time 2.585e-06/0.6255, allocations: 0 / 499 MB, free: 11.47 MB / 395.1 MB Notification: Performance of matching and sorting (n=23): time 0.001013/0.6265, allocations: 341.2 kB / 499.3 MB, free: 11.13 MB / 395.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.092e-05/0.6266, allocations: 77.11 kB / 499.4 MB, free: 11.04 MB / 395.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00117/0.6277, allocations: 0.6011 MB / 500 MB, free: 10.42 MB / 395.1 MB Notification: Performance of collectPreVariables (initialization): time 4.512e-05/0.6278, allocations: 29.7 kB / 500 MB, free: 10.38 MB / 395.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004283/0.6283, allocations: 406.4 kB / 0.4887 GB, free: 9.984 MB / 395.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001498/0.6284, allocations: 86.75 kB / 0.4888 GB, free: 9.898 MB / 395.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.869e-05/0.6285, allocations: 4 kB / 0.4888 GB, free: 9.895 MB / 395.1 MB Notification: Performance of setup shared object (initialization): time 0.0001482/0.6286, allocations: 318.8 kB / 0.4891 GB, free: 9.574 MB / 395.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/0.6288, allocations: 56.5 kB / 0.4891 GB, free: 9.52 MB / 395.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002438/0.6291, allocations: 130.6 kB / 0.4892 GB, free: 9.359 MB / 395.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002716/0.6293, allocations: 81.52 kB / 0.4893 GB, free: 9.281 MB / 395.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.699e-06/0.6294, allocations: 0 / 0.4893 GB, free: 9.281 MB / 395.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000767/0.6301, allocations: 278.1 kB / 0.4896 GB, free: 9 MB / 395.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.391e-05/0.6302, allocations: 4 kB / 0.4896 GB, free: 8.996 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.94e-05/0.6302, allocations: 15.94 kB / 0.4896 GB, free: 8.98 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005563/0.6308, allocations: 143.7 kB / 0.4897 GB, free: 8.84 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003082/0.6311, allocations: 35.98 kB / 0.4898 GB, free: 8.805 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001052/0.6322, allocations: 0.7201 MB / 0.4905 GB, free: 8.059 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005661/0.6328, allocations: 23.73 kB / 0.4905 GB, free: 8.035 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.971e-05/0.6329, allocations: 18.12 kB / 0.4905 GB, free: 8.02 MB / 395.1 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: J1.Dinternal:VARIABLE(unit = "V" ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * 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 11} Notification: Performance of prepare postOptimizeDAE: time 0.0001983/0.6331, allocations: 108.9 kB / 0.4906 GB, free: 7.906 MB / 395.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000871/0.6339, allocations: 334.4 kB / 0.4909 GB, free: 7.57 MB / 395.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001765/0.6341, allocations: 106.7 kB / 0.491 GB, free: 7.465 MB / 395.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001379/0.6355, allocations: 391 kB / 0.4914 GB, free: 7.074 MB / 395.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.109e-05/0.6356, allocations: 4 kB / 0.4914 GB, free: 7.07 MB / 395.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.6356, allocations: 3.953 kB / 0.4914 GB, free: 7.066 MB / 395.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.6356, allocations: 3.984 kB / 0.4914 GB, free: 7.062 MB / 395.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009449/0.6366, allocations: 475.1 kB / 0.4919 GB, free: 6.562 MB / 395.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.768e-05/0.6366, allocations: 8 kB / 0.4919 GB, free: 6.555 MB / 395.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002233/0.6368, allocations: 23.97 kB / 0.4919 GB, free: 6.531 MB / 395.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004785/0.6373, allocations: 136.7 kB / 0.492 GB, free: 6.395 MB / 395.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.656e-05/0.6374, allocations: 4 kB / 0.492 GB, free: 6.391 MB / 395.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009561/0.6383, allocations: 0.715 MB / 0.4927 GB, free: 5.652 MB / 395.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/0.6384, allocations: 4.062 kB / 0.4927 GB, free: 5.648 MB / 395.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009388/0.6393, allocations: 432 kB / 0.4932 GB, free: 5.207 MB / 395.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003374/0.6397, allocations: 183.7 kB / 0.4933 GB, free: 5.008 MB / 395.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000129/0.6398, allocations: 0 / 0.4933 GB, free: 5.008 MB / 395.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004318/0.6403, allocations: 11.92 kB / 0.4933 GB, free: 4.996 MB / 395.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.579e-05/0.6404, allocations: 19.94 kB / 0.4934 GB, free: 4.977 MB / 395.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.44e-05/0.6404, allocations: 12 kB / 0.4934 GB, free: 4.965 MB / 395.1 MB Notification: Performance of sorting global known variables: time 0.0009002/0.6413, allocations: 474.9 kB / 0.4938 GB, free: 4.492 MB / 395.1 MB Notification: Performance of sort global known variables: time 5.01e-07/0.6414, allocations: 1.594 kB / 0.4938 GB, free: 4.492 MB / 395.1 MB Notification: Performance of remove unused functions: time 0.0009561/0.6423, allocations: 195.7 kB / 0.494 GB, free: 4.301 MB / 395.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * 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 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.001936/0.6443, allocations: 1.188 MB / 0.4952 GB, free: 3.086 MB / 395.1 MB Notification: Performance of simCode: created initialization part: time 0.0007598/0.6451, allocations: 249.5 kB / 0.4954 GB, free: 2.832 MB / 395.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.6451, allocations: 4.5 kB / 0.4954 GB, free: 2.828 MB / 395.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004058/0.6455, allocations: 167.4 kB / 0.4956 GB, free: 2.652 MB / 395.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008483/0.6464, allocations: 123.6 kB / 0.4957 GB, free: 2.535 MB / 395.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003077/0.6495, allocations: 1.006 MB / 0.4967 GB, free: 1.48 MB / 395.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000663/0.6502, allocations: 0.9572 MB / 0.4976 GB, free: 0.4961 MB / 395.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005399/0.6507, allocations: 323.3 kB / 0.4979 GB, free: 184 kB / 395.1 MB Notification: Performance of SimCode: time 3.156e-06/0.6507, allocations: 0 / 0.4979 GB, free: 184 kB / 395.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.604/4.255, allocations: 17.05 MB / 0.5146 GB, free: 107.8 MB / 395.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat does not exist to compare? outputFormat=mat