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.001519/0.001518, allocations: 186.2 kB / 16.41 MB, free: 5.723 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.952/1.952, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001128/0.001128, allocations: 95.23 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003964/0.0003965, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.344/0.3444, allocations: 47.57 MB / 374.6 MB, free: 45.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1421/0.4866, allocations: 89.78 MB / 464.4 MB, free: 6.828 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002798/0.4869, allocations: 67.97 kB / 464.5 MB, free: 6.762 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1242/0.6111, allocations: 33.97 MB / 498.5 MB, free: 4.516 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.994e-06/0.6112, allocations: 4 kB / 498.5 MB, free: 4.512 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.108e-05/0.6112, allocations: 12 kB / 498.5 MB, free: 4.5 MB / 378.7 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.002718/0.6139, allocations: 1.221 MB / 499.7 MB, free: 3.227 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.861e-05/0.614, allocations: 8.031 kB / 499.7 MB, free: 3.219 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.231e-05/0.6141, allocations: 58.55 kB / 499.8 MB, free: 3.152 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001841/0.6143, allocations: 118.7 kB / 499.9 MB, free: 3.035 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001727/0.616, allocations: 0.7699 MB / 0.4889 GB, free: 2.211 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.1e-05/0.6161, allocations: 20.56 kB / 0.4889 GB, free: 2.191 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.409e-05/0.6162, allocations: 24 kB / 0.489 GB, free: 2.168 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008206/0.617, allocations: 307.7 kB / 0.4892 GB, free: 1.855 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.617, allocations: 0 / 0.4892 GB, free: 1.855 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.598e-05/0.6171, allocations: 16 kB / 0.4893 GB, free: 1.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.48e-05/0.6171, allocations: 4 kB / 0.4893 GB, free: 1.836 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006919/0.6178, allocations: 242.1 kB / 0.4895 GB, free: 1.598 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002709/0.6205, allocations: 1.203 MB / 0.4907 GB, free: 328 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005566/0.6211, allocations: 205 kB / 0.4909 GB, free: 116 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.287/0.9081, allocations: 10.7 MB / 0.5013 GB, free: 85.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.9082, allocations: 37.53 kB / 0.5014 GB, free: 84.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 4.068e-06/0.9082, allocations: 0 / 0.5014 GB, free: 84.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.003956/0.9122, allocations: 0.6343 MB / 0.502 GB, free: 84.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.221e-05/0.9123, allocations: 83.88 kB / 0.5021 GB, free: 84.71 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001977/0.9143, allocations: 0.6819 MB / 0.5027 GB, free: 84.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.09e-05/0.9144, allocations: 30.52 kB / 0.5027 GB, free: 84.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005022/0.9149, allocations: 415.7 kB / 0.5031 GB, free: 84.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001145/0.915, allocations: 81.25 kB / 0.5032 GB, free: 84.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.286e-05/0.9151, allocations: 7.594 kB / 0.5032 GB, free: 84.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.489e-05/0.9152, allocations: 321.9 kB / 0.5035 GB, free: 84.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003863/0.9156, allocations: 69.38 kB / 0.5036 GB, free: 84.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004372/0.9161, allocations: 143.5 kB / 0.5037 GB, free: 83.92 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004926/0.9166, allocations: 99.67 kB / 0.5038 GB, free: 83.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.9166, allocations: 1.281 kB / 0.5038 GB, free: 83.92 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001367/0.918, allocations: 313.7 kB / 0.5041 GB, free: 83.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.382e-05/0.918, allocations: 12.86 kB / 0.5041 GB, free: 83.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.932e-05/0.9181, allocations: 15.62 kB / 0.5042 GB, free: 83.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008367/0.919, allocations: 144.6 kB / 0.5043 GB, free: 83.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004843/0.9195, allocations: 35.7 kB / 0.5043 GB, free: 83.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001319/0.9208, allocations: 0.7111 MB / 0.505 GB, free: 83.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008071/0.9217, allocations: 28.38 kB / 0.5051 GB, free: 83.33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.289e-05/0.9218, allocations: 19.17 kB / 0.5051 GB, free: 83.33 MB / 378.7 MB 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 () * Number of clocked 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.0004147/0.9222, allocations: 196.6 kB / 0.5053 GB, free: 83.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001602/0.9223, allocations: 102.8 kB / 0.5054 GB, free: 83.16 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001433/0.9238, allocations: 433.2 kB / 0.5058 GB, free: 83.1 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.216e-06/0.9238, allocations: 2.062 kB / 0.5058 GB, free: 83.1 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.87e-06/0.9238, allocations: 0 / 0.5058 GB, free: 83.1 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.621e-06/0.9238, allocations: 4.484 kB / 0.5058 GB, free: 83.1 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008406/0.9247, allocations: 0.4997 MB / 0.5063 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.728e-05/0.9248, allocations: 15.09 kB / 0.5063 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002145/0.925, allocations: 19.58 kB / 0.5063 GB, free: 82.91 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004651/0.9255, allocations: 144.3 kB / 0.5064 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.9255, allocations: 13.59 kB / 0.5065 GB, free: 82.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007542/0.9263, allocations: 0.6976 MB / 0.5071 GB, free: 82.38 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.9263, allocations: 1.406 kB / 0.5071 GB, free: 82.38 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009548/0.9273, allocations: 469.8 kB / 0.5076 GB, free: 82.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002832/0.9276, allocations: 180.4 kB / 0.5078 GB, free: 82.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001353/0.9277, allocations: 7.938 kB / 0.5078 GB, free: 82.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004144/0.9281, allocations: 5.562 kB / 0.5078 GB, free: 82.04 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.768e-05/0.9282, allocations: 19.75 kB / 0.5078 GB, free: 82.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.374e-05/0.9283, allocations: 9.844 kB / 0.5078 GB, free: 82.04 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001059/0.9293, allocations: 0.5363 MB / 0.5083 GB, free: 81.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.9293, allocations: 0 / 0.5083 GB, free: 81.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009698/0.9303, allocations: 213.5 kB / 0.5085 GB, free: 81.92 MB / 378.7 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 () * Number of clocked 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.001827/0.9322, allocations: 1.224 MB / 0.5097 GB, free: 81.19 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008922/0.9331, allocations: 288.7 kB / 0.51 GB, free: 81.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.807e-06/0.9331, allocations: 0 / 0.51 GB, free: 81.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004167/0.9335, allocations: 184.8 kB / 0.5102 GB, free: 81.06 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008322/0.9344, allocations: 120.7 kB / 0.5103 GB, free: 81.05 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008779/0.9432, allocations: 5.635 MB / 0.5158 GB, free: 77.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004014/0.9436, allocations: 0.9581 MB / 0.5167 GB, free: 77.28 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004565/0.9441, allocations: 320.7 kB / 0.517 GB, free: 77.27 MB / 378.7 MB Notification: Performance of SimCode: time 1.122e-06/0.9441, allocations: 0 / 0.517 GB, free: 77.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.813/3.757, allocations: 17.38 MB / 0.534 GB, free: 73.67 MB / 378.7 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