Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.1_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.005751/0.005751, allocations: 98.14 kB / 15.73 MB, free: 6.059 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.00124/0.00124, allocations: 199.8 kB / 16.68 MB, free: 5.977 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.433/1.433, allocations: 205.1 MB / 222.5 MB, free: 4.504 MB / 174.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.001187/0.001187, allocations: 50.12 kB / 326.5 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08504/0.08624, allocations: 46.62 MB / 373.2 MB, free: 1.328 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00603/0.09231, allocations: 5.133 MB / 378.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009755/0.1021, allocations: 8.672 MB / 387 MB, free: 3.457 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008692/0.103, allocations: 39.69 kB / 387 MB, free: 3.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009666/0.104, allocations: 385.5 kB / 387.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002355/0.1064, allocations: 0.8301 MB / 388.2 MB, free: 2.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001533/0.1079, allocations: 0.5791 MB / 388.8 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002451/0.1104, allocations: 1.65 MB / 390.4 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003191/0.1107, allocations: 167 kB / 390.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004095/0.1111, allocations: 286.5 kB / 390.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003302/0.1115, allocations: 318 kB / 391.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.341e-05/0.1116, allocations: 28 kB / 391.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001382/0.1129, allocations: 0.5621 MB / 391.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.137e-05/0.113, allocations: 107.3 kB / 391.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004091/0.1135, allocations: 401.5 kB / 392.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001539/0.115, allocations: 1.199 MB / 393.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.115, allocations: 0 / 393.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.115, allocations: 0 / 393.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.658e-05/0.1151, allocations: 0 / 393.5 MB, free: 12.9 MB / 334.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.002018/0.1171, allocations: 1.275 MB / 394.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.1172, allocations: 12.03 kB / 394.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001449/0.1173, allocations: 119.6 kB / 394.9 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001087/0.1184, allocations: 0.8593 MB / 395.7 MB, free: 10.53 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.327e-05/0.1184, allocations: 12.56 kB / 395.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.068e-05/0.1185, allocations: 24 kB / 395.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005254/0.119, allocations: 311.6 kB / 396.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.126e-05/0.119, allocations: 0 / 396.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.209e-05/0.1191, allocations: 12 kB / 396.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.596e-05/0.1191, allocations: 11.98 kB / 396.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004022/0.1195, allocations: 230.2 kB / 396.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001665/0.1212, allocations: 1.186 MB / 397.5 MB, free: 8.672 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003442/0.1215, allocations: 210.5 kB / 397.7 MB, free: 8.457 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003056/0.1219, allocations: 225.2 kB / 397.9 MB, free: 8.23 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007907/0.1298, allocations: 8.554 MB / 406.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.729e-05/0.1298, allocations: 38.5 kB / 406.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.734e-06/0.1298, allocations: 0 / 406.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001518/0.1314, allocations: 0.6658 MB / 407.2 MB, free: 13.54 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.1314, allocations: 85.11 kB / 407.3 MB, free: 13.44 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000834/0.1323, allocations: 0.7948 MB / 408.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.1323, allocations: 25.7 kB / 408.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003236/0.1326, allocations: 444.6 kB / 408.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.35e-05/0.1327, allocations: 74.92 kB / 408.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.512e-05/0.1328, allocations: 61.83 kB / 408.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001046/0.1329, allocations: 321.9 kB / 409 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001404/0.133, allocations: 68.2 kB / 409.1 MB, free: 11.63 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001877/0.1332, allocations: 141.9 kB / 409.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003329/0.1336, allocations: 228.5 kB / 409.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.1336, allocations: 4 kB / 409.4 MB, free: 11.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005948/0.1342, allocations: 405.6 kB / 409.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.1342, allocations: 9.375 kB / 409.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.704e-05/0.1343, allocations: 12 kB / 409.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003403/0.1346, allocations: 144.6 kB / 410 MB, free: 10.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000176/0.1348, allocations: 35.91 kB / 410 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005951/0.1354, allocations: 0.7046 MB / 410.7 MB, free: 9.867 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002372/0.1356, allocations: 27.69 kB / 410.7 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.593e-05/0.1357, allocations: 16 kB / 410.8 MB, free: 9.824 MB / 350.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.0002306/0.1359, allocations: 193.8 kB / 410.9 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001052/0.136, allocations: 102.8 kB / 411 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007465/0.1368, allocations: 419.2 kB / 411.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.1368, allocations: 4 kB / 411.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.1368, allocations: 0 / 411.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.048e-06/0.1368, allocations: 0 / 411.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005522/0.1374, allocations: 0.5151 MB / 412 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.952e-05/0.1374, allocations: 23.94 kB / 412 MB, free: 8.516 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/0.1375, allocations: 19.92 kB / 412 MB, free: 8.496 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002548/0.1378, allocations: 140.7 kB / 412.2 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.968e-05/0.1378, allocations: 8 kB / 412.2 MB, free: 8.348 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006331/0.1385, allocations: 0.6968 MB / 412.9 MB, free: 7.625 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.1385, allocations: 3.938 kB / 412.9 MB, free: 7.621 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005407/0.139, allocations: 451.7 kB / 413.3 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001708/0.1392, allocations: 171.9 kB / 413.5 MB, free: 6.973 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.46e-05/0.1393, allocations: 12.06 kB / 413.5 MB, free: 6.961 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002127/0.1395, allocations: 4 kB / 413.5 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.723e-05/0.1396, allocations: 15.92 kB / 413.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.715e-05/0.1396, allocations: 8 kB / 413.5 MB, free: 6.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005989/0.1402, allocations: 0.5461 MB / 414.1 MB, free: 6.379 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.1402, allocations: 0 / 414.1 MB, free: 6.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005216/0.1408, allocations: 191.8 kB / 414.2 MB, free: 6.191 MB / 350.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.0004722/0.1412, allocations: 307.2 kB / 414.5 MB, free: 5.879 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005567/0.1418, allocations: 275.9 kB / 414.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.1418, allocations: 0 / 414.8 MB, free: 5.598 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002941/0.1421, allocations: 183.6 kB / 415 MB, free: 5.406 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005919/0.1427, allocations: 136.9 kB / 415.1 MB, free: 5.27 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001911/0.1446, allocations: 1.213 MB / 416.3 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005373/0.1452, allocations: 0.9413 MB / 417.3 MB, free: 3.055 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002941/0.1455, allocations: 110.7 kB / 417.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.131e-05/0.1456, allocations: 51.44 kB / 417.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.1456, allocations: 0 / 417.4 MB, free: 2.891 MB / 350.1 MB Notification: Performance of Templates: time 0.01695/0.1625, allocations: 9.085 MB / 426.5 MB, free: 9.785 MB / 366.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1)