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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001484/0.001484, allocations: 172.6 kB / 8.47 MB, free: 1.855 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.051/1.051, allocations: 205.2 MB / 214.1 MB, free: 5.098 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.000846/0.000846, allocations: 82.81 kB / 262.1 MB, free: 5.141 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.15/0.1509, allocations: 52.98 MB / 315.1 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0598/0.2107, allocations: 47.57 MB / 362.6 MB, free: 9.848 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1978/0.4086, allocations: 88.95 MB / 451.6 MB, free: 9.094 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001642/0.4088, allocations: 71.06 kB / 451.7 MB, free: 9.086 MB / 314.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.06669/0.4755, allocations: 33.71 MB / 485.4 MB, free: 8.512 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.4755, allocations: 12 kB / 485.4 MB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.4756, allocations: 114.6 kB / 485.5 MB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001006/0.4767, allocations: 0.742 MB / 486.2 MB, free: 7.613 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.469e-05/0.4767, allocations: 8 kB / 486.2 MB, free: 7.605 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.597e-05/0.4767, allocations: 23.91 kB / 486.3 MB, free: 7.582 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003615/0.4771, allocations: 209.1 kB / 486.5 MB, free: 7.379 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003895/0.4775, allocations: 262.9 kB / 486.7 MB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.036e-05/0.4775, allocations: 3.062 kB / 486.7 MB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.425e-05/0.4776, allocations: 0 / 486.7 MB, free: 7.109 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.268e-05/0.4776, allocations: 11.97 kB / 486.7 MB, free: 7.098 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001641/0.4792, allocations: 1.138 MB / 487.9 MB, free: 5.91 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002234/0.4795, allocations: 141.7 kB / 488 MB, free: 5.766 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002595/0.4797, allocations: 213.3 kB / 488.2 MB, free: 5.551 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01022/0.49, allocations: 10.72 MB / 498.9 MB, free: 9.008 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.196e-05/0.49, allocations: 42.41 kB / 499 MB, free: 8.957 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.633e-06/0.49, allocations: 4 kB / 499 MB, free: 8.953 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.000619/0.4906, allocations: 333.3 kB / 499.3 MB, free: 8.621 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.942e-05/0.4907, allocations: 85.11 kB / 499.4 MB, free: 8.52 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006939/0.4914, allocations: 0.6011 MB / 500 MB, free: 7.902 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.422e-05/0.4914, allocations: 25.7 kB / 0.4883 GB, free: 7.871 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001527/0.4916, allocations: 244.2 kB / 0.4885 GB, free: 7.629 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.279e-05/0.4916, allocations: 74.84 kB / 0.4886 GB, free: 7.555 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.334e-05/0.4917, allocations: 4 kB / 0.4886 GB, free: 7.551 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9.346e-05/0.4918, allocations: 314 kB / 0.4889 GB, free: 7.238 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.983e-05/0.4919, allocations: 56.5 kB / 0.489 GB, free: 7.184 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001378/0.492, allocations: 137.6 kB / 0.4891 GB, free: 7.016 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001549/0.4922, allocations: 76 kB / 0.4892 GB, free: 6.941 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.4922, allocations: 0 / 0.4892 GB, free: 6.941 MB / 346.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005317/0.4927, allocations: 361 kB / 0.4895 GB, free: 6.578 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.4927, allocations: 8.281 kB / 0.4895 GB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.035e-05/0.4928, allocations: 16 kB / 0.4895 GB, free: 6.555 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003545/0.4931, allocations: 136.2 kB / 0.4897 GB, free: 6.422 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/0.4933, allocations: 35.91 kB / 0.4897 GB, free: 6.387 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006747/0.494, allocations: 0.7311 MB / 0.4904 GB, free: 5.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002843/0.4943, allocations: 23.83 kB / 0.4904 GB, free: 5.609 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.603e-05/0.4944, allocations: 16 kB / 0.4904 GB, free: 5.594 MB / 346.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.000131/0.4945, allocations: 121.2 kB / 0.4906 GB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001133/0.4946, allocations: 94.88 kB / 0.4907 GB, free: 5.375 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009947/0.4956, allocations: 435.4 kB / 0.4911 GB, free: 4.941 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.504e-06/0.4956, allocations: 0 / 0.4911 GB, free: 4.941 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.171e-06/0.4956, allocations: 11.92 kB / 0.4911 GB, free: 4.93 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.204e-06/0.4957, allocations: 7.891 kB / 0.4911 GB, free: 4.922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005445/0.4962, allocations: 481.7 kB / 0.4915 GB, free: 4.422 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.366e-05/0.4962, allocations: 12 kB / 0.4916 GB, free: 4.41 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001242/0.4964, allocations: 15.98 kB / 0.4916 GB, free: 4.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002715/0.4967, allocations: 136.8 kB / 0.4917 GB, free: 4.258 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.984e-05/0.4967, allocations: 4 kB / 0.4917 GB, free: 4.254 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006187/0.4973, allocations: 0.7242 MB / 0.4924 GB, free: 3.504 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.417e-06/0.4973, allocations: 7.906 kB / 0.4924 GB, free: 3.496 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005217/0.4979, allocations: 444.6 kB / 0.4928 GB, free: 3.047 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006447/0.4985, allocations: 0.8245 MB / 0.4937 GB, free: 2.199 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001855/0.4987, allocations: 171.9 kB / 0.4938 GB, free: 2.012 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001062/0.4988, allocations: 4 kB / 0.4938 GB, free: 2.008 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002663/0.4991, allocations: 11.98 kB / 0.4938 GB, free: 1.996 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.663e-05/0.4992, allocations: 15.92 kB / 0.4938 GB, free: 1.98 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.119e-05/0.4992, allocations: 8 kB / 0.4939 GB, free: 1.973 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0005025/0.4997, allocations: 470.9 kB / 0.4943 GB, free: 1.504 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001206/0.5009, allocations: 211.6 kB / 0.4945 GB, free: 1.297 MB / 346.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.000521/0.5014, allocations: 339.8 kB / 0.4948 GB, free: 0.9766 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0004405/0.5019, allocations: 251.1 kB / 0.4951 GB, free: 0.7188 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.5019, allocations: 0 / 0.4951 GB, free: 0.7188 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002432/0.5021, allocations: 159.3 kB / 0.4952 GB, free: 0.5508 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004331/0.5026, allocations: 120.7 kB / 0.4953 GB, free: 444 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001535/0.5041, allocations: 0.8267 MB / 0.4961 GB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005382/0.5047, allocations: 0.999 MB / 0.4971 GB, free: 14.54 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.5047, allocations: 0 / 0.4971 GB, free: 14.54 MB / 362.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)