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"}) [: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 4.0.0+maint.om/package.mo): time 0.0009501/0.0009501, allocations: 184 kB / 8.138 MB, free: 2.223 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.091/1.091, allocations: 221.4 MB / 229.9 MB, free: 3.066 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.0009468/0.0009469, allocations: 97.95 kB / 280.8 MB, free: 1.328 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08977/0.09074, allocations: 55.83 MB / 336.6 MB, free: 9.484 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1716/0.2624, allocations: 50.38 MB / 387 MB, free: 37.96 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08992/0.3523, allocations: 90.69 MB / 477.7 MB, free: 12.07 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002083/0.3526, allocations: 76.73 kB / 477.8 MB, free: 11.99 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.1964/0.549, allocations: 37.14 MB / 0.5028 GB, free: 91.26 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.217e-05/0.5491, allocations: 12.23 kB / 0.5028 GB, free: 91.26 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.837e-05/0.5492, allocations: 111.4 kB / 0.503 GB, free: 91.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007811/0.55, allocations: 0.7509 MB / 0.5037 GB, free: 90.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.215e-05/0.55, allocations: 7.594 kB / 0.5037 GB, free: 90.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.154e-05/0.55, allocations: 24.42 kB / 0.5037 GB, free: 90.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002962/0.5503, allocations: 207.1 kB / 0.5039 GB, free: 90.88 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.5507, allocations: 260.8 kB / 0.5042 GB, free: 90.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.069e-05/0.5507, allocations: 1.031 kB / 0.5042 GB, free: 90.82 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.424e-05/0.5507, allocations: 3.906 kB / 0.5042 GB, free: 90.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.598e-06/0.5507, allocations: 11.34 kB / 0.5042 GB, free: 90.82 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001316/0.552, allocations: 1.139 MB / 0.5053 GB, free: 90.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001997/0.5523, allocations: 149.4 kB / 0.5054 GB, free: 90.41 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000211/0.5525, allocations: 197 kB / 0.5056 GB, free: 90.39 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007559/0.56, allocations: 10.72 MB / 0.5161 GB, free: 80.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.459e-05/0.5601, allocations: 37.88 kB / 0.5161 GB, free: 80.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 2.304e-06/0.5601, allocations: 0 / 0.5161 GB, free: 80.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005334/0.5606, allocations: 332.8 kB / 0.5164 GB, free: 80.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.5607, allocations: 81.06 kB / 0.5165 GB, free: 80.61 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005477/0.5612, allocations: 0.6093 MB / 0.5171 GB, free: 80.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.816e-05/0.5613, allocations: 25.7 kB / 0.5171 GB, free: 80.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.272e-05/0.5614, allocations: 238 kB / 0.5174 GB, free: 80.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.594e-05/0.5614, allocations: 80.72 kB / 0.5174 GB, free: 80.25 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.184e-05/0.5614, allocations: 0 / 0.5174 GB, free: 80.25 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.627e-05/0.5615, allocations: 314.7 kB / 0.5177 GB, free: 79.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.367e-05/0.5615, allocations: 61.28 kB / 0.5178 GB, free: 79.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.5616, allocations: 136.9 kB / 0.5179 GB, free: 79.85 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000137/0.5618, allocations: 76.38 kB / 0.518 GB, free: 79.84 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.5618, allocations: 0 / 0.518 GB, free: 79.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0004298/0.5622, allocations: 370.8 kB / 0.5184 GB, free: 79.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.046e-05/0.5623, allocations: 8.812 kB / 0.5184 GB, free: 79.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.481e-05/0.5623, allocations: 12.06 kB / 0.5184 GB, free: 79.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002931/0.5626, allocations: 135.8 kB / 0.5185 GB, free: 79.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001588/0.5628, allocations: 38.73 kB / 0.5186 GB, free: 79.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004927/0.5633, allocations: 0.7224 MB / 0.5193 GB, free: 79.2 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002679/0.5635, allocations: 32.36 kB / 0.5193 GB, free: 79.18 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.033e-05/0.5636, allocations: 14.34 kB / 0.5193 GB, free: 79.18 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.0001028/0.5637, allocations: 116.6 kB / 0.5194 GB, free: 79.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.506e-05/0.5638, allocations: 103.6 kB / 0.5195 GB, free: 79.02 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009063/0.5647, allocations: 441.6 kB / 0.5199 GB, free: 78.92 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.5647, allocations: 3.938 kB / 0.5199 GB, free: 78.92 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.479e-06/0.5647, allocations: 2.75 kB / 0.5199 GB, free: 78.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.849e-06/0.5647, allocations: 0 / 0.5199 GB, free: 78.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004233/0.5651, allocations: 480.3 kB / 0.5204 GB, free: 78.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.995e-05/0.5652, allocations: 10.38 kB / 0.5204 GB, free: 78.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001177/0.5653, allocations: 27.52 kB / 0.5204 GB, free: 78.74 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002345/0.5655, allocations: 133.2 kB / 0.5206 GB, free: 78.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.75e-05/0.5656, allocations: 2.281 kB / 0.5206 GB, free: 78.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000452/0.566, allocations: 0.7252 MB / 0.5213 GB, free: 78.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.566, allocations: 0 / 0.5213 GB, free: 78.2 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000418/0.5665, allocations: 443.4 kB / 0.5217 GB, free: 78 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004717/0.5669, allocations: 0.8208 MB / 0.5225 GB, free: 77.43 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001384/0.5671, allocations: 173.9 kB / 0.5227 GB, free: 77.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.8e-05/0.5672, allocations: 3.844 kB / 0.5227 GB, free: 77.28 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002431/0.5674, allocations: 7.844 kB / 0.5227 GB, free: 77.28 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.327e-05/0.5675, allocations: 21.33 kB / 0.5227 GB, free: 77.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.914e-05/0.5675, allocations: 10.19 kB / 0.5227 GB, free: 77.27 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003987/0.5679, allocations: 474.4 kB / 0.5232 GB, free: 77.1 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00111/0.569, allocations: 202.4 kB / 0.5233 GB, free: 77.06 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.0004057/0.5695, allocations: 337.4 kB / 0.5237 GB, free: 76.92 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0003902/0.5699, allocations: 251.2 kB / 0.5239 GB, free: 76.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.5699, allocations: 0 / 0.5239 GB, free: 76.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002077/0.5701, allocations: 164 kB / 0.5241 GB, free: 76.7 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005455/0.5706, allocations: 144.2 kB / 0.5242 GB, free: 76.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001425/0.5721, allocations: 0.8268 MB / 0.525 GB, free: 76.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004871/0.5726, allocations: 1.008 MB / 0.526 GB, free: 75.54 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.5726, allocations: 0 / 0.526 GB, free: 75.54 MB / 378.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)