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.006917/0.006918, allocations: 100.9 kB / 15.73 MB, free: 6.039 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.001437/0.001437, allocations: 190.9 kB / 16.67 MB, free: 5.969 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.343/1.343, allocations: 205.1 MB / 222.5 MB, free: 4.52 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.001123/0.001123, allocations: 58.67 kB / 326.5 MB, free: 14.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09813/0.09926, allocations: 46.62 MB / 373.2 MB, free: 1.324 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005303/0.1046, allocations: 5.129 MB / 378.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009651/0.1143, allocations: 8.672 MB / 387 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004718/0.1148, allocations: 39.69 kB / 387 MB, free: 3.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008543/0.1157, allocations: 377.5 kB / 387.4 MB, free: 3.039 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001775/0.1175, allocations: 0.8145 MB / 388.2 MB, free: 2.219 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001192/0.1187, allocations: 0.5791 MB / 388.8 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002034/0.1207, allocations: 1.658 MB / 390.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002717/0.121, allocations: 167 kB / 390.6 MB, free: 15.8 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002956/0.1213, allocations: 278.7 kB / 390.9 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003499/0.1217, allocations: 322 kB / 391.2 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.273e-05/0.1217, allocations: 32 kB / 391.2 MB, free: 15.18 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00107/0.1228, allocations: 0.5582 MB / 391.8 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.1229, allocations: 107.3 kB / 391.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003304/0.1233, allocations: 409.5 kB / 392.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00127/0.1246, allocations: 1.183 MB / 393.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.1246, allocations: 3.938 kB / 393.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1246, allocations: 0 / 393.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.1246, allocations: 0 / 393.5 MB, free: 12.92 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.002005/0.1266, allocations: 1.283 MB / 394.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.57e-05/0.1267, allocations: 8.031 kB / 394.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001356/0.1268, allocations: 111.6 kB / 394.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/0.128, allocations: 0.8554 MB / 395.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.194e-05/0.1281, allocations: 16.56 kB / 395.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.902e-05/0.1281, allocations: 27.94 kB / 395.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005385/0.1287, allocations: 311.7 kB / 396.1 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.51e-05/0.1287, allocations: 7.984 kB / 396.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.1287, allocations: 8 kB / 396.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.1288, allocations: 8 kB / 396.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004224/0.1292, allocations: 230.1 kB / 396.3 MB, free: 9.945 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.131, allocations: 1.19 MB / 397.5 MB, free: 8.684 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003738/0.1314, allocations: 206.5 kB / 397.7 MB, free: 8.473 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003286/0.1317, allocations: 225.2 kB / 397.9 MB, free: 8.246 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008376/0.1401, allocations: 8.546 MB / 406.5 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.878e-05/0.1402, allocations: 42.56 kB / 406.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 3.126e-06/0.1402, allocations: 0 / 406.5 MB, free: 14.26 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001581/0.1418, allocations: 0.6697 MB / 407.2 MB, free: 13.56 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.743e-05/0.1418, allocations: 77.11 kB / 407.3 MB, free: 13.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008138/0.1426, allocations: 0.7948 MB / 408 MB, free: 12.65 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.414e-05/0.1427, allocations: 29.7 kB / 408.1 MB, free: 12.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003271/0.143, allocations: 448.6 kB / 408.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.824e-05/0.1431, allocations: 70.91 kB / 408.6 MB, free: 12.11 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.828e-05/0.1432, allocations: 57.84 kB / 408.6 MB, free: 12.04 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001109/0.1433, allocations: 325.9 kB / 409 MB, free: 11.72 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001355/0.1434, allocations: 68.2 kB / 409 MB, free: 11.65 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001916/0.1436, allocations: 149.8 kB / 409.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000349/0.144, allocations: 228.5 kB / 409.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.144, allocations: 0 / 409.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005821/0.1446, allocations: 397.6 kB / 409.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1446, allocations: 4.281 kB / 409.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.96e-05/0.1447, allocations: 23.98 kB / 409.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003634/0.145, allocations: 140.6 kB / 410 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001688/0.1452, allocations: 39.91 kB / 410 MB, free: 10.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006171/0.1458, allocations: 0.7045 MB / 410.7 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.1461, allocations: 35.7 kB / 410.7 MB, free: 9.848 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.301e-05/0.1461, allocations: 12 kB / 410.7 MB, free: 9.836 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.0002409/0.1464, allocations: 189.8 kB / 410.9 MB, free: 9.641 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001246/0.1465, allocations: 102.8 kB / 411 MB, free: 9.539 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007881/0.1473, allocations: 427.3 kB / 411.4 MB, free: 9.113 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.1473, allocations: 3.984 kB / 411.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.1473, allocations: 0 / 411.4 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.1473, allocations: 3.938 kB / 411.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005606/0.1479, allocations: 0.5112 MB / 412 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.86e-05/0.1479, allocations: 8 kB / 412 MB, free: 8.539 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001229/0.1481, allocations: 27.91 kB / 412 MB, free: 8.512 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000268/0.1483, allocations: 136.7 kB / 412.1 MB, free: 8.375 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.048e-05/0.1484, allocations: 8 kB / 412.1 MB, free: 8.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005886/0.149, allocations: 0.7045 MB / 412.8 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.149, allocations: 0 / 412.8 MB, free: 7.637 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005712/0.1495, allocations: 455.7 kB / 413.3 MB, free: 7.172 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002069/0.1498, allocations: 167.9 kB / 413.5 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.304e-05/0.1498, allocations: 3.984 kB / 413.5 MB, free: 6.984 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.1501, allocations: 16 kB / 413.5 MB, free: 6.969 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.303e-05/0.1501, allocations: 15.92 kB / 413.5 MB, free: 6.953 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.233e-05/0.1502, allocations: 12 kB / 413.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006019/0.1508, allocations: 0.5344 MB / 414 MB, free: 6.398 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1508, allocations: 4 kB / 414 MB, free: 6.395 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005857/0.1514, allocations: 191.8 kB / 414.2 MB, free: 6.207 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.0006014/0.152, allocations: 303.2 kB / 414.5 MB, free: 5.898 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006165/0.1526, allocations: 283.8 kB / 414.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.1526, allocations: 0 / 414.8 MB, free: 5.609 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002903/0.1529, allocations: 175.3 kB / 415 MB, free: 5.426 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006093/0.1535, allocations: 144.9 kB / 415.1 MB, free: 5.281 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001791/0.1553, allocations: 1.213 MB / 416.3 MB, free: 4.035 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000426/0.1558, allocations: 0.9413 MB / 417.3 MB, free: 3.066 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002454/0.156, allocations: 106.7 kB / 417.4 MB, free: 2.957 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.203e-05/0.1561, allocations: 51.44 kB / 417.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1561, allocations: 0 / 417.4 MB, free: 2.906 MB / 350.1 MB Notification: Performance of Templates: time 0.01755/0.1737, allocations: 9.299 MB / 426.7 MB, free: 9.586 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)