Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001175/0.001175, allocations: 198.8 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.438/1.438, allocations: 225.6 MB / 234.8 MB, free: 3.285 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009873/0.0009873, allocations: 96.62 kB / 286.7 MB, free: 5.242 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.385e-05/2.392e-05, allocations: 7.984 kB / 343.8 MB, free: 8.188 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1119/0.112, allocations: 51.48 MB / 395.3 MB, free: 4.668 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3607/0.4727, allocations: 91.57 MB / 486.8 MB, free: 1.492 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.473, allocations: 72.03 kB / 486.9 MB, free: 1.457 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07996/0.553, allocations: 36.37 MB / 0.511 GB, free: 2.152 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.423e-06/0.553, allocations: 4 kB / 0.511 GB, free: 2.148 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.03e-05/0.553, allocations: 12 kB / 0.511 GB, free: 2.137 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.001621/0.5547, allocations: 1.035 MB / 0.512 GB, free: 1.059 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.395e-05/0.5547, allocations: 8.031 kB / 0.512 GB, free: 1.051 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002708/0.555, allocations: 131.4 kB / 0.5122 GB, free: 0.9219 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001019/0.556, allocations: 0.7464 MB / 0.5129 GB, free: 128 kB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.585e-05/0.5561, allocations: 8 kB / 0.5129 GB, free: 120 kB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.444e-05/0.5561, allocations: 19.97 kB / 0.5129 GB, free: 100 kB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003671/0.5565, allocations: 209.2 kB / 0.5131 GB, free: 15.89 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003965/0.5569, allocations: 258.5 kB / 0.5134 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.5569, allocations: 5.781 kB / 0.5134 GB, free: 15.62 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.567e-05/0.557, allocations: 3.938 kB / 0.5134 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.557, allocations: 4 kB / 0.5134 GB, free: 15.61 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001612/0.5586, allocations: 1.143 MB / 0.5145 GB, free: 14.41 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002933/0.5589, allocations: 194.9 kB / 0.5147 GB, free: 14.22 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002563/0.5592, allocations: 209.3 kB / 0.5149 GB, free: 14.01 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01161/0.5708, allocations: 11.1 MB / 0.5257 GB, free: 1.008 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.997e-05/0.5709, allocations: 30.56 kB / 0.5257 GB, free: 0.9688 MB / 394.7 MB Notification: Performance of pre-optimization done (n=23): time 2.335e-06/0.5709, allocations: 0 / 0.5257 GB, free: 0.9688 MB / 394.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006533/0.5715, allocations: 345.4 kB / 0.5261 GB, free: 0.625 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.941e-05/0.5716, allocations: 77.11 kB / 0.5262 GB, free: 0.5312 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007586/0.5724, allocations: 0.5972 MB / 0.5267 GB, free: 15.92 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.389e-05/0.5724, allocations: 29.7 kB / 0.5268 GB, free: 15.88 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003224/0.5727, allocations: 432.2 kB / 0.5272 GB, free: 15.46 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.914e-05/0.5728, allocations: 78.75 kB / 0.5273 GB, free: 15.38 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.24e-05/0.5728, allocations: 0 / 0.5273 GB, free: 15.38 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.5729, allocations: 318 kB / 0.5276 GB, free: 15.06 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.52e-05/0.573, allocations: 56.23 kB / 0.5276 GB, free: 15.01 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.5732, allocations: 134.1 kB / 0.5277 GB, free: 14.84 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001605/0.5734, allocations: 81.17 kB / 0.5278 GB, free: 14.77 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.5734, allocations: 0 / 0.5278 GB, free: 14.77 MB / 410.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005377/0.5739, allocations: 361.4 kB / 0.5282 GB, free: 14.4 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.654e-05/0.574, allocations: 9.906 kB / 0.5282 GB, free: 14.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.094e-05/0.574, allocations: 12 kB / 0.5282 GB, free: 14.38 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003779/0.5744, allocations: 134.2 kB / 0.5283 GB, free: 14.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001783/0.5746, allocations: 39.91 kB / 0.5283 GB, free: 14.21 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006831/0.5753, allocations: 0.724 MB / 0.5291 GB, free: 13.46 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003062/0.5756, allocations: 19.75 kB / 0.5291 GB, free: 13.44 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.044e-05/0.5756, allocations: 22.02 kB / 0.5291 GB, free: 13.42 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.0001629/0.5758, allocations: 118 kB / 0.5292 GB, free: 13.3 MB / 410.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004974/0.5763, allocations: 329 kB / 0.5295 GB, free: 12.97 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001113/0.5764, allocations: 102.8 kB / 0.5296 GB, free: 12.87 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008061/0.5772, allocations: 399 kB / 0.53 GB, free: 12.47 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.285e-06/0.5773, allocations: 4 kB / 0.53 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.5773, allocations: 3.953 kB / 0.53 GB, free: 12.46 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.031e-06/0.5773, allocations: 7.984 kB / 0.53 GB, free: 12.45 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00061/0.5779, allocations: 467.1 kB / 0.5305 GB, free: 11.96 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.042e-05/0.5779, allocations: 12 kB / 0.5305 GB, free: 11.95 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001222/0.5781, allocations: 23.98 kB / 0.5305 GB, free: 11.93 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002633/0.5783, allocations: 134.2 kB / 0.5306 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.796e-05/0.5784, allocations: 7.938 kB / 0.5306 GB, free: 11.79 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005622/0.5789, allocations: 0.7141 MB / 0.5313 GB, free: 11.05 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.579, allocations: 6.891 kB / 0.5313 GB, free: 11.04 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004902/0.5795, allocations: 428.1 kB / 0.5317 GB, free: 10.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001911/0.5797, allocations: 175.8 kB / 0.5319 GB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.899e-05/0.5797, allocations: 0 / 0.5319 GB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002273/0.58, allocations: 7.984 kB / 0.5319 GB, free: 10.41 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.766e-05/0.58, allocations: 15.94 kB / 0.5319 GB, free: 10.39 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.016e-05/0.5801, allocations: 12 kB / 0.5319 GB, free: 10.38 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0005157/0.5806, allocations: 478.9 kB / 0.5324 GB, free: 9.902 MB / 410.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5806, allocations: 0 / 0.5324 GB, free: 9.902 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0006515/0.5813, allocations: 203.7 kB / 0.5326 GB, free: 9.703 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.001183/0.5824, allocations: 1.219 MB / 0.5338 GB, free: 8.453 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0004545/0.5829, allocations: 245.9 kB / 0.534 GB, free: 8.203 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.5829, allocations: 0 / 0.534 GB, free: 8.203 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002308/0.5832, allocations: 159.4 kB / 0.5342 GB, free: 8.035 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006211/0.5838, allocations: 154.9 kB / 0.5343 GB, free: 7.887 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001729/0.5855, allocations: 0.97 MB / 0.5353 GB, free: 6.875 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005077/0.5861, allocations: 0.9565 MB / 0.5362 GB, free: 5.891 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0003403/0.5864, allocations: 97.91 kB / 0.5363 GB, free: 5.793 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003143/0.5867, allocations: 322.5 kB / 0.5366 GB, free: 5.48 MB / 410.7 MB Notification: Performance of SimCode: time 3.41e-07/0.5867, allocations: 0 / 0.5366 GB, free: 5.48 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03805/0.6248, allocations: 15.24 MB / 0.5515 GB, free: 6.324 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002589/0.6251, allocations: 137.6 kB / 0.5516 GB, free: 6.133 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.498/3.123, allocations: 0 / 0.5516 GB, free: 6.133 MB / 426.7 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat does not exist to compare? outputFormat=mat