Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.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.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",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.001005/0.001005, allocations: 177.1 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.365/1.365, allocations: 221.5 MB / 230.3 MB, free: 7.551 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.00084/0.0008396, allocations: 90.03 kB / 281.2 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.821e-05/1.824e-05, allocations: 4 kB / 337.1 MB, free: 9.898 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1044/0.1045, allocations: 50.42 MB / 387.6 MB, free: 7.441 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3581/0.4627, allocations: 90.75 MB / 478.3 MB, free: 3.906 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002717/0.463, allocations: 67.97 kB / 478.4 MB, free: 3.84 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08163/0.5447, allocations: 36.12 MB / 0.5024 GB, free: 15.46 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.5447, allocations: 0 / 0.5024 GB, free: 15.46 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.127e-05/0.5447, allocations: 12 kB / 0.5025 GB, free: 15.45 MB / 394.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.001606/0.5464, allocations: 1.036 MB / 0.5035 GB, free: 14.37 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.737e-05/0.5464, allocations: 12.03 kB / 0.5035 GB, free: 14.36 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001454/0.5466, allocations: 110.7 kB / 0.5036 GB, free: 14.25 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001033/0.5476, allocations: 0.7545 MB / 0.5043 GB, free: 13.44 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.5476, allocations: 11.95 kB / 0.5043 GB, free: 13.43 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.199e-05/0.5477, allocations: 12 kB / 0.5043 GB, free: 13.42 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003708/0.5481, allocations: 209.1 kB / 0.5045 GB, free: 13.21 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004098/0.5485, allocations: 254.6 kB / 0.5048 GB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.5485, allocations: 3.938 kB / 0.5048 GB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.487e-05/0.5485, allocations: 4 kB / 0.5048 GB, free: 12.95 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.6e-05/0.5486, allocations: 12 kB / 0.5048 GB, free: 12.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001701/0.5503, allocations: 1.125 MB / 0.5059 GB, free: 11.75 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003011/0.5506, allocations: 186.6 kB / 0.5061 GB, free: 11.55 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002577/0.5509, allocations: 217.2 kB / 0.5063 GB, free: 11.34 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01167/0.5625, allocations: 10.77 MB / 0.5168 GB, free: 14.73 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.397e-05/0.5626, allocations: 42.45 kB / 0.5168 GB, free: 14.68 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 2.455e-06/0.5626, allocations: 3.938 kB / 0.5169 GB, free: 14.67 MB / 410.7 MB Notification: Performance of matching and sorting (n=23): time 0.0007124/0.5633, allocations: 339.9 kB / 0.5172 GB, free: 14.33 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.829e-05/0.5634, allocations: 85.09 kB / 0.5173 GB, free: 14.23 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000788/0.5642, allocations: 0.5972 MB / 0.5178 GB, free: 13.62 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.759e-05/0.5642, allocations: 25.7 kB / 0.5179 GB, free: 13.59 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003308/0.5646, allocations: 436.2 kB / 0.5183 GB, free: 13.16 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.917e-05/0.5646, allocations: 66.92 kB / 0.5183 GB, free: 13.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.278e-05/0.5647, allocations: 0 / 0.5183 GB, free: 13.09 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.5648, allocations: 322 kB / 0.5187 GB, free: 12.77 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.542e-05/0.5649, allocations: 56.23 kB / 0.5187 GB, free: 12.71 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001451/0.565, allocations: 133.6 kB / 0.5188 GB, free: 12.55 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.5652, allocations: 75.95 kB / 0.5189 GB, free: 12.48 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.5652, allocations: 0 / 0.5189 GB, free: 12.48 MB / 410.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005151/0.5657, allocations: 366.1 kB / 0.5193 GB, free: 12.11 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.19e-05/0.5658, allocations: 13.39 kB / 0.5193 GB, free: 12.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.135e-05/0.5658, allocations: 16 kB / 0.5193 GB, free: 12.08 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003402/0.5661, allocations: 128.8 kB / 0.5194 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001763/0.5663, allocations: 36.09 kB / 0.5194 GB, free: 11.92 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006615/0.567, allocations: 0.7252 MB / 0.5201 GB, free: 11.17 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003104/0.5673, allocations: 27.64 kB / 0.5202 GB, free: 11.14 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.576e-05/0.5674, allocations: 16 kB / 0.5202 GB, free: 11.12 MB / 410.7 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.0001499/0.5675, allocations: 113 kB / 0.5203 GB, free: 11.01 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004777/0.568, allocations: 330.2 kB / 0.5206 GB, free: 10.68 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.5681, allocations: 102.8 kB / 0.5207 GB, free: 10.58 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008065/0.5689, allocations: 399 kB / 0.5211 GB, free: 10.18 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.145e-06/0.569, allocations: 4 kB / 0.5211 GB, free: 10.17 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.569, allocations: 7.938 kB / 0.5211 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.569, allocations: 3.938 kB / 0.5211 GB, free: 10.16 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006119/0.5696, allocations: 475 kB / 0.5216 GB, free: 9.66 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.548e-05/0.5696, allocations: 15.98 kB / 0.5216 GB, free: 9.645 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.5698, allocations: 19.98 kB / 0.5216 GB, free: 9.625 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002691/0.57, allocations: 130.4 kB / 0.5217 GB, free: 9.496 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.946e-05/0.5701, allocations: 4 kB / 0.5217 GB, free: 9.492 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005606/0.5706, allocations: 0.7162 MB / 0.5224 GB, free: 8.75 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.5707, allocations: 0 / 0.5224 GB, free: 8.75 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004878/0.5711, allocations: 436.1 kB / 0.5228 GB, free: 8.305 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001894/0.5714, allocations: 179.8 kB / 0.523 GB, free: 8.109 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.123e-05/0.5714, allocations: 0 / 0.523 GB, free: 8.109 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002232/0.5717, allocations: 4 kB / 0.523 GB, free: 8.105 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.851e-05/0.5717, allocations: 15.98 kB / 0.523 GB, free: 8.09 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.181e-05/0.5718, allocations: 11.98 kB / 0.523 GB, free: 8.078 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005303/0.5723, allocations: 478.9 kB / 0.5235 GB, free: 7.602 MB / 410.7 MB Notification: Performance of sort global known variables: time 4.71e-07/0.5723, allocations: 0 / 0.5235 GB, free: 7.602 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0007084/0.573, allocations: 199.7 kB / 0.5237 GB, free: 7.406 MB / 410.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 () * 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.001204/0.5742, allocations: 1.2 MB / 0.5249 GB, free: 6.18 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004824/0.5747, allocations: 247.2 kB / 0.5251 GB, free: 5.926 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.5747, allocations: 3.938 kB / 0.5251 GB, free: 5.922 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002503/0.575, allocations: 166.9 kB / 0.5253 GB, free: 5.75 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000677/0.5757, allocations: 141.9 kB / 0.5254 GB, free: 5.613 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001814/0.5775, allocations: 0.9725 MB / 0.5263 GB, free: 4.598 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005473/0.5781, allocations: 0.9604 MB / 0.5273 GB, free: 3.609 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003546/0.5784, allocations: 97.91 kB / 0.5274 GB, free: 3.512 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003404/0.5788, allocations: 323.3 kB / 0.5277 GB, free: 3.195 MB / 410.7 MB Notification: Performance of SimCode: time 2.51e-07/0.5788, allocations: 0 / 0.5277 GB, free: 3.195 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03851/0.6173, allocations: 15.21 MB / 0.5425 GB, free: 4.082 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001658/0.6175, allocations: 141.9 kB / 0.5427 GB, free: 3.887 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.408/3.025, allocations: 0 / 0.5427 GB, free: 3.887 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat does not exist to compare? outputFormat=mat