Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_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.001082/0.001082, allocations: 178.4 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.44/1.44, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009191/0.0009191, allocations: 82.72 kB / 262.4 MB, free: 1.684 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.687e-05/1.688e-05, allocations: 4 kB / 315.6 MB, free: 22.62 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08477/0.0848, allocations: 47.58 MB / 363.2 MB, free: 6.984 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.307/0.3918, allocations: 89.28 MB / 452.5 MB, free: 6.195 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001974/0.3921, allocations: 76.67 kB / 452.5 MB, free: 6.156 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07231/0.4644, allocations: 32.67 MB / 485.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.453e-06/0.4644, allocations: 0 / 485.2 MB, free: 11.32 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.012e-05/0.4645, allocations: 12 kB / 485.2 MB, free: 11.31 MB / 362.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.001702/0.4662, allocations: 1.044 MB / 486.3 MB, free: 10.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.496e-05/0.4662, allocations: 12.03 kB / 486.3 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001313/0.4664, allocations: 118.5 kB / 486.4 MB, free: 10.09 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001014/0.4674, allocations: 0.7467 MB / 487.1 MB, free: 9.289 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.4674, allocations: 8 kB / 487.1 MB, free: 9.281 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.603e-05/0.4675, allocations: 16 kB / 487.1 MB, free: 9.266 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003445/0.4678, allocations: 205.1 kB / 487.3 MB, free: 9.066 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004293/0.4682, allocations: 262.6 kB / 487.6 MB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.03e-05/0.4683, allocations: 0 / 487.6 MB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.476e-05/0.4683, allocations: 0 / 487.6 MB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.335e-05/0.4683, allocations: 12 kB / 487.6 MB, free: 8.785 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001622/0.4699, allocations: 1.137 MB / 488.8 MB, free: 7.586 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003001/0.4703, allocations: 178.7 kB / 488.9 MB, free: 7.402 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002818/0.4706, allocations: 213.3 kB / 489.1 MB, free: 7.188 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01135/0.4819, allocations: 10.77 MB / 499.9 MB, free: 10.58 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.335e-05/0.482, allocations: 38.56 kB / 499.9 MB, free: 10.53 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 2.926e-06/0.482, allocations: 0 / 499.9 MB, free: 10.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006939/0.4827, allocations: 334 kB / 0.4885 GB, free: 10.2 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.26e-05/0.4828, allocations: 81.11 kB / 0.4886 GB, free: 10.1 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007488/0.4835, allocations: 0.605 MB / 0.4892 GB, free: 9.477 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.4836, allocations: 25.7 kB / 0.4892 GB, free: 9.445 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003128/0.4839, allocations: 432.3 kB / 0.4897 GB, free: 9.02 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.33e-05/0.484, allocations: 78.77 kB / 0.4897 GB, free: 8.941 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.263e-05/0.484, allocations: 0 / 0.4897 GB, free: 8.941 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000105/0.4841, allocations: 318 kB / 0.49 GB, free: 8.625 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.4842, allocations: 60.44 kB / 0.4901 GB, free: 8.566 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001469/0.4844, allocations: 130.6 kB / 0.4902 GB, free: 8.406 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001535/0.4845, allocations: 83.8 kB / 0.4903 GB, free: 8.324 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.4845, allocations: 4 kB / 0.4903 GB, free: 8.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005318/0.4851, allocations: 357 kB / 0.4906 GB, free: 7.961 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.4851, allocations: 8 kB / 0.4906 GB, free: 7.953 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.246e-05/0.4851, allocations: 19.92 kB / 0.4907 GB, free: 7.934 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003464/0.4855, allocations: 137.1 kB / 0.4908 GB, free: 7.797 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001681/0.4857, allocations: 35.91 kB / 0.4908 GB, free: 7.762 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006711/0.4864, allocations: 0.7123 MB / 0.4915 GB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003226/0.4867, allocations: 27.77 kB / 0.4916 GB, free: 6.996 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.902e-05/0.4867, allocations: 24 kB / 0.4916 GB, free: 6.973 MB / 378.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.0001502/0.4869, allocations: 105.3 kB / 0.4917 GB, free: 6.863 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0004914/0.4874, allocations: 329.2 kB / 0.492 GB, free: 6.527 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001047/0.4875, allocations: 106.8 kB / 0.4921 GB, free: 6.422 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008345/0.4884, allocations: 403.1 kB / 0.4925 GB, free: 6.02 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.353e-06/0.4884, allocations: 4 kB / 0.4925 GB, free: 6.016 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.4884, allocations: 3.953 kB / 0.4925 GB, free: 6.012 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.4884, allocations: 0 / 0.4925 GB, free: 6.012 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005654/0.489, allocations: 471 kB / 0.4929 GB, free: 5.516 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.341e-05/0.489, allocations: 15.98 kB / 0.4929 GB, free: 5.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/0.4891, allocations: 23.92 kB / 0.493 GB, free: 5.477 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002549/0.4894, allocations: 131.6 kB / 0.4931 GB, free: 5.348 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.037e-05/0.4894, allocations: 8 kB / 0.4931 GB, free: 5.34 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005749/0.49, allocations: 0.7289 MB / 0.4938 GB, free: 4.586 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.49, allocations: 4.062 kB / 0.4938 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004851/0.4905, allocations: 428 kB / 0.4942 GB, free: 4.145 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001805/0.4907, allocations: 175.8 kB / 0.4944 GB, free: 3.953 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.186e-05/0.4908, allocations: 3.984 kB / 0.4944 GB, free: 3.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002237/0.491, allocations: 8 kB / 0.4944 GB, free: 3.941 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.203e-05/0.4911, allocations: 19.94 kB / 0.4944 GB, free: 3.922 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.655e-05/0.4911, allocations: 8 kB / 0.4944 GB, free: 3.914 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004978/0.4916, allocations: 474.9 kB / 0.4949 GB, free: 3.441 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4916, allocations: 0 / 0.4949 GB, free: 3.441 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006551/0.4923, allocations: 195.7 kB / 0.4951 GB, free: 3.25 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 () * 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.001222/0.4935, allocations: 1.2 MB / 0.4962 GB, free: 2.02 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004687/0.494, allocations: 247.2 kB / 0.4965 GB, free: 1.766 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.494, allocations: 0.5625 kB / 0.4965 GB, free: 1.766 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002426/0.4943, allocations: 167.3 kB / 0.4966 GB, free: 1.59 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004661/0.4947, allocations: 120.2 kB / 0.4968 GB, free: 1.473 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001746/0.4965, allocations: 0.9647 MB / 0.4977 GB, free: 476 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004676/0.497, allocations: 0.9643 MB / 0.4986 GB, free: 15.47 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003443/0.4973, allocations: 97.92 kB / 0.4987 GB, free: 15.38 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003183/0.4977, allocations: 323.3 kB / 0.499 GB, free: 15.06 MB / 394.7 MB Notification: Performance of SimCode: time 1.864e-06/0.4977, allocations: 0 / 0.499 GB, free: 15.06 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05476/0.5524, allocations: 15.18 MB / 0.5139 GB, free: 15.86 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002419/0.5527, allocations: 150.8 kB / 0.514 GB, free: 15.66 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.479/3.032, allocations: 0 / 0.514 GB, free: 15.66 MB / 410.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat does not exist to compare? outputFormat=mat