Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="Modelica_3.2.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.005565/0.005565, allocations: 97.78 kB / 15.73 MB, free: 5.961 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.001365/0.001365, allocations: 195 kB / 16.67 MB, free: 5.883 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.36/1.36, allocations: 205.1 MB / 222.5 MB, free: 4.488 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.001188/0.001188, allocations: 53.97 kB / 326.5 MB, free: 14.41 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08997/0.09117, allocations: 46.63 MB / 373.2 MB, free: 1.316 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005851/0.09707, allocations: 5.129 MB / 378.3 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.1072, allocations: 8.672 MB / 387 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006534/0.1079, allocations: 35.69 kB / 387 MB, free: 3.414 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009957/0.109, allocations: 389.5 kB / 387.4 MB, free: 3.031 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002457/0.1114, allocations: 0.8066 MB / 388.2 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001604/0.1131, allocations: 0.583 MB / 388.8 MB, free: 1.633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002372/0.1154, allocations: 1.65 MB / 390.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000279/0.1157, allocations: 170.9 kB / 390.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003329/0.1161, allocations: 274.7 kB / 390.9 MB, free: 15.53 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003833/0.1165, allocations: 318 kB / 391.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.9e-05/0.1165, allocations: 32 kB / 391.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001255/0.1178, allocations: 0.5582 MB / 391.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.86e-05/0.1179, allocations: 103.3 kB / 391.9 MB, free: 14.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003175/0.1182, allocations: 405.5 kB / 392.3 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001489/0.1197, allocations: 1.202 MB / 393.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.1198, allocations: 7.938 kB / 393.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.1198, allocations: 0 / 393.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.263e-05/0.1198, allocations: 0 / 393.5 MB, free: 12.91 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.001757/0.1216, allocations: 1.313 MB / 394.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.1216, allocations: 8.031 kB / 394.8 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001294/0.1218, allocations: 120.2 kB / 394.9 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001071/0.1228, allocations: 0.8603 MB / 395.8 MB, free: 10.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.543e-05/0.1229, allocations: 16.56 kB / 395.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.086e-05/0.1229, allocations: 31.92 kB / 395.8 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004931/0.1234, allocations: 311.6 kB / 396.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.177e-05/0.1234, allocations: 0 / 396.1 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.869e-05/0.1235, allocations: 12 kB / 396.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.248e-05/0.1235, allocations: 8 kB / 396.1 MB, free: 10.12 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004061/0.1239, allocations: 238.1 kB / 396.4 MB, free: 9.887 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.1256, allocations: 1.194 MB / 397.6 MB, free: 8.621 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003612/0.1259, allocations: 198.5 kB / 397.8 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003142/0.1263, allocations: 225.2 kB / 398 MB, free: 8.191 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00806/0.1343, allocations: 8.561 MB / 406.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.1344, allocations: 30.56 kB / 406.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 3.587e-06/0.1344, allocations: 0 / 406.6 MB, free: 14.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.00159/0.136, allocations: 0.6625 MB / 407.2 MB, free: 13.51 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.798e-05/0.1361, allocations: 85.05 kB / 407.3 MB, free: 13.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009431/0.137, allocations: 0.7987 MB / 408.1 MB, free: 12.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.068e-05/0.1371, allocations: 29.7 kB / 408.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003217/0.1374, allocations: 452.9 kB / 408.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.683e-05/0.1375, allocations: 83.31 kB / 408.7 MB, free: 12.03 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.185e-05/0.1376, allocations: 53.94 kB / 408.7 MB, free: 11.97 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.723e-05/0.1377, allocations: 321.9 kB / 409 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001361/0.1378, allocations: 64.2 kB / 409.1 MB, free: 11.59 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.138, allocations: 149.9 kB / 409.2 MB, free: 11.41 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003309/0.1383, allocations: 224.5 kB / 409.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1384, allocations: 0 / 409.5 MB, free: 11.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000576/0.1389, allocations: 418 kB / 409.9 MB, free: 10.74 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.641e-05/0.139, allocations: 5.094 kB / 409.9 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.995e-05/0.139, allocations: 19.98 kB / 409.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003724/0.1394, allocations: 137.1 kB / 410 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.1396, allocations: 31.97 kB / 410.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006311/0.1402, allocations: 0.7199 MB / 410.8 MB, free: 9.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002529/0.1405, allocations: 31.8 kB / 410.8 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.485e-05/0.1405, allocations: 20 kB / 410.8 MB, free: 9.75 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.0002333/0.1408, allocations: 201.8 kB / 411 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.1409, allocations: 107.3 kB / 411.1 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007542/0.1416, allocations: 407.3 kB / 411.5 MB, free: 9.031 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.1416, allocations: 8 kB / 411.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.617e-06/0.1417, allocations: 0 / 411.5 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.1417, allocations: 3.938 kB / 411.5 MB, free: 9.02 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006504/0.1423, allocations: 0.5073 MB / 412 MB, free: 8.465 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.517e-05/0.1424, allocations: 15.98 kB / 412.1 MB, free: 8.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001221/0.1425, allocations: 19.92 kB / 412.1 MB, free: 8.43 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002955/0.1428, allocations: 136.8 kB / 412.2 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.631e-05/0.1428, allocations: 15.98 kB / 412.2 MB, free: 8.277 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000674/0.1435, allocations: 0.6929 MB / 412.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.1435, allocations: 0 / 412.9 MB, free: 7.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006493/0.1442, allocations: 468.2 kB / 413.4 MB, free: 7.082 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/0.1444, allocations: 172.4 kB / 413.5 MB, free: 6.895 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.896e-05/0.1445, allocations: 15.92 kB / 413.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.1448, allocations: 0 / 413.6 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.012e-05/0.1448, allocations: 23.92 kB / 413.6 MB, free: 6.855 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.52e-05/0.1449, allocations: 8 kB / 413.6 MB, free: 6.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0007212/0.1456, allocations: 0.5383 MB / 414.1 MB, free: 6.301 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1456, allocations: 4 kB / 414.1 MB, free: 6.297 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006853/0.1463, allocations: 199.6 kB / 414.3 MB, free: 6.102 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.0005641/0.1469, allocations: 291.1 kB / 414.6 MB, free: 5.805 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005788/0.1475, allocations: 280.4 kB / 414.9 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1475, allocations: 0.5625 kB / 414.9 MB, free: 5.52 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002812/0.1478, allocations: 191.6 kB / 415.1 MB, free: 5.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005899/0.1484, allocations: 136.3 kB / 415.2 MB, free: 5.184 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00185/0.1502, allocations: 1.242 MB / 416.5 MB, free: 3.906 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000473/0.1507, allocations: 0.9374 MB / 417.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002823/0.151, allocations: 110.6 kB / 417.5 MB, free: 2.828 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.246e-05/0.1511, allocations: 55.44 kB / 417.6 MB, free: 2.773 MB / 350.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1511, allocations: 0 / 417.6 MB, free: 2.773 MB / 350.1 MB Notification: Performance of Templates: time 0.01748/0.1686, allocations: 9.089 MB / 426.6 MB, free: 9.664 MB / 366.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1)