Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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 3.2.3+maint.om/package.mo", uses=false) 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 115 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001536/0.001536, allocations: 186 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.321/1.321, allocations: 205.1 MB / 223.4 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001199/0.001199, allocations: 43.94 kB / 279.5 MB, free: 3.488 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08372/0.08493, allocations: 46.62 MB / 326.1 MB, free: 4.801 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006838/0.09183, allocations: 5.159 MB / 331.3 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009756/0.1016, allocations: 8.608 MB / 339.9 MB, free: 6.969 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006839/0.1023, allocations: 15.88 kB / 339.9 MB, free: 6.953 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.1035, allocations: 334.2 kB / 340.2 MB, free: 6.625 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002383/0.1059, allocations: 0.6989 MB / 340.9 MB, free: 5.922 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00167/0.1076, allocations: 0.5018 MB / 341.4 MB, free: 5.418 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002323/0.1099, allocations: 1.654 MB / 343.1 MB, free: 3.758 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002676/0.1102, allocations: 171 kB / 343.3 MB, free: 3.578 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003021/0.1105, allocations: 282.5 kB / 343.5 MB, free: 3.301 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003001/0.1108, allocations: 306.1 kB / 343.8 MB, free: 3 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.174e-05/0.1109, allocations: 28 kB / 343.9 MB, free: 2.973 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001293/0.1122, allocations: 0.5699 MB / 344.4 MB, free: 2.402 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001202/0.1123, allocations: 103.3 kB / 344.5 MB, free: 2.301 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004948/0.1128, allocations: 401.5 kB / 344.9 MB, free: 1.906 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001309/0.1141, allocations: 1.191 MB / 346.1 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.1142, allocations: 4 kB / 346.1 MB, free: 0.707 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.1142, allocations: 0 / 346.1 MB, free: 0.707 MB / 286.1 MB Notification: Performance of Transformations before backend: time 9.858e-06/0.1142, allocations: 0 / 346.1 MB, free: 0.707 MB / 286.1 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.001616/0.1158, allocations: 1.283 MB / 347.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.014e-05/0.1159, allocations: 8.031 kB / 347.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001342/0.116, allocations: 111.6 kB / 347.5 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001103/0.1171, allocations: 0.8554 MB / 348.4 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.829e-05/0.1171, allocations: 16.56 kB / 348.4 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.248e-05/0.1172, allocations: 24 kB / 348.4 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000504/0.1177, allocations: 303.7 kB / 348.7 MB, free: 14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.266e-05/0.1177, allocations: 3.938 kB / 348.7 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.055e-05/0.1178, allocations: 12 kB / 348.7 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.1178, allocations: 15.98 kB / 348.7 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003951/0.1182, allocations: 238.1 kB / 349 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001626/0.1198, allocations: 1.183 MB / 350.2 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003442/0.1202, allocations: 202.5 kB / 350.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000316/0.1205, allocations: 221.2 kB / 350.6 MB, free: 12.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008098/0.1286, allocations: 8.569 MB / 359.1 MB, free: 2.086 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.086e-05/0.1287, allocations: 38.48 kB / 359.2 MB, free: 2.039 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.984e-06/0.1287, allocations: 0 / 359.2 MB, free: 2.039 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001705/0.1304, allocations: 0.6543 MB / 359.8 MB, free: 1.355 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.496e-05/0.1305, allocations: 81.11 kB / 359.9 MB, free: 1.258 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000869/0.1313, allocations: 0.8026 MB / 360.7 MB, free: 448 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.257e-05/0.1314, allocations: 25.7 kB / 360.7 MB, free: 416 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003235/0.1317, allocations: 444.6 kB / 361.2 MB, free: 15.97 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.993e-05/0.1318, allocations: 82.84 kB / 361.3 MB, free: 15.89 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.643e-05/0.1319, allocations: 57.88 kB / 361.3 MB, free: 15.82 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.132, allocations: 321.9 kB / 361.6 MB, free: 15.5 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.1321, allocations: 64.2 kB / 361.7 MB, free: 15.44 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001838/0.1323, allocations: 138.4 kB / 361.8 MB, free: 15.27 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003371/0.1327, allocations: 229.1 kB / 362 MB, free: 15.02 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.1327, allocations: 0 / 362 MB, free: 15.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005878/0.1333, allocations: 420.7 kB / 362.5 MB, free: 14.6 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.717e-05/0.1333, allocations: 7.938 kB / 362.5 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.629e-05/0.1333, allocations: 12 kB / 362.5 MB, free: 14.58 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003362/0.1337, allocations: 148.3 kB / 362.6 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.1339, allocations: 27.98 kB / 362.6 MB, free: 14.41 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005809/0.1344, allocations: 0.7122 MB / 363.4 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002343/0.1347, allocations: 31.67 kB / 363.4 MB, free: 13.64 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.464e-05/0.1347, allocations: 20.06 kB / 363.4 MB, free: 13.62 MB / 318.1 MB 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002228/0.135, allocations: 197.8 kB / 363.6 MB, free: 13.41 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001058/0.1351, allocations: 102.8 kB / 363.7 MB, free: 13.31 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007724/0.1359, allocations: 399.4 kB / 364.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.1359, allocations: 4 kB / 364.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.157e-06/0.1359, allocations: 0 / 364.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1359, allocations: 0 / 364.1 MB, free: 12.9 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005926/0.1365, allocations: 0.5073 MB / 364.6 MB, free: 12.34 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.99e-05/0.1365, allocations: 12 kB / 364.6 MB, free: 12.33 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001883/0.1367, allocations: 27.86 kB / 364.6 MB, free: 12.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002697/0.137, allocations: 132.8 kB / 364.8 MB, free: 12.17 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.734e-05/0.1371, allocations: 16 kB / 364.8 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006001/0.1377, allocations: 0.6967 MB / 365.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.1377, allocations: 0 / 365.5 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005294/0.1382, allocations: 459.8 kB / 365.9 MB, free: 10.96 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001742/0.1384, allocations: 171.8 kB / 366.1 MB, free: 10.78 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.362e-05/0.1385, allocations: 8 kB / 366.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002038/0.1387, allocations: 0 / 366.1 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.354e-05/0.1388, allocations: 27.84 kB / 366.1 MB, free: 10.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.1388, allocations: 8 kB / 366.1 MB, free: 10.73 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006841/0.1395, allocations: 0.55 MB / 366.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1395, allocations: 0 / 366.7 MB, free: 10.18 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005951/0.1401, allocations: 195.8 kB / 366.9 MB, free: 9.984 MB / 318.1 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0005596/0.1407, allocations: 295.6 kB / 367.2 MB, free: 9.688 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006324/0.1413, allocations: 284.3 kB / 367.5 MB, free: 9.398 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1413, allocations: 4 kB / 367.5 MB, free: 9.395 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002947/0.1416, allocations: 183.6 kB / 367.6 MB, free: 9.203 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005852/0.1422, allocations: 132.3 kB / 367.8 MB, free: 9.074 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001912/0.1441, allocations: 1.451 MB / 369.2 MB, free: 7.594 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004985/0.1446, allocations: 0.945 MB / 370.2 MB, free: 6.621 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004081/0.1451, allocations: 114.6 kB / 370.3 MB, free: 6.504 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.006e-05/0.1451, allocations: 47.44 kB / 370.3 MB, free: 6.457 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.1451, allocations: 0 / 370.3 MB, free: 6.457 MB / 318.1 MB Notification: Performance of Templates: time 0.1538/0.2989, allocations: 8.998 MB / 379.3 MB, free: 55.37 MB / 318.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1)