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.0009426/0.0009431, allocations: 89.59 kB / 16.65 MB, free: 6.586 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.001135/0.001135, allocations: 182 kB / 17.56 MB, free: 6.203 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.367/1.367, allocations: 205.4 MB / 223.7 MB, free: 12.99 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.0004441/0.0004441, allocations: 12 kB / 280.7 MB, free: 3.398 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09128/0.09174, allocations: 47.58 MB / 328.3 MB, free: 3.746 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004478/0.09625, allocations: 4.75 MB / 333.1 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009286/0.1056, allocations: 8.672 MB / 341.7 MB, free: 6.266 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003607/0.1059, allocations: 19.81 kB / 341.8 MB, free: 6.246 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007456/0.1067, allocations: 330.2 kB / 342.1 MB, free: 5.922 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001668/0.1084, allocations: 0.6871 MB / 342.8 MB, free: 5.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001/0.1094, allocations: 454 kB / 343.2 MB, free: 4.785 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002028/0.1114, allocations: 1.615 MB / 344.8 MB, free: 3.164 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002507/0.1117, allocations: 155.6 kB / 345 MB, free: 3 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002993/0.112, allocations: 266.6 kB / 345.2 MB, free: 2.738 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003353/0.1123, allocations: 306 kB / 345.5 MB, free: 2.438 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.395e-05/0.1124, allocations: 19.94 kB / 345.6 MB, free: 2.418 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001043/0.1134, allocations: 0.5425 MB / 346.1 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.559e-05/0.1135, allocations: 87.33 kB / 346.2 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003687/0.1139, allocations: 411.2 kB / 346.6 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001131/0.115, allocations: 1.164 MB / 347.7 MB, free: 216 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1151, allocations: 0 / 347.7 MB, free: 216 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1151, allocations: 0 / 347.7 MB, free: 216 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.09e-05/0.1151, allocations: 0 / 347.7 MB, free: 216 kB / 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.001632/0.1167, allocations: 1.147 MB / 348.9 MB, free: 15.01 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.621e-05/0.1168, allocations: 8.031 kB / 348.9 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001347/0.1169, allocations: 111.6 kB / 349 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.118, allocations: 0.8554 MB / 349.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.454e-05/0.1181, allocations: 20.56 kB / 349.9 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.465e-05/0.1181, allocations: 27.91 kB / 349.9 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005049/0.1186, allocations: 311.7 kB / 350.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.1187, allocations: 0 / 350.2 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.056e-05/0.1187, allocations: 11.94 kB / 350.2 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.048e-05/0.1187, allocations: 8 kB / 350.2 MB, free: 13.6 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000409/0.1192, allocations: 238.1 kB / 350.5 MB, free: 13.37 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001652/0.1208, allocations: 1.186 MB / 351.7 MB, free: 12.11 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003484/0.1212, allocations: 206.6 kB / 351.9 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003146/0.1215, allocations: 233.2 kB / 352.1 MB, free: 11.66 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007823/0.1293, allocations: 8.573 MB / 360.7 MB, free: 1.695 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.1294, allocations: 30.56 kB / 360.7 MB, free: 1.656 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 1.874e-06/0.1294, allocations: 0 / 360.7 MB, free: 1.656 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.00157/0.131, allocations: 0.6777 MB / 361.4 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.338e-05/0.131, allocations: 81.09 kB / 361.4 MB, free: 0.8516 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008292/0.1319, allocations: 0.8026 MB / 362.2 MB, free: 32 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.1319, allocations: 33.64 kB / 362.3 MB, free: 15.99 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003164/0.1322, allocations: 436.7 kB / 362.7 MB, free: 15.56 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.629e-05/0.1323, allocations: 74.86 kB / 362.8 MB, free: 15.49 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.377e-05/0.1323, allocations: 29.7 kB / 362.8 MB, free: 15.45 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.253e-05/0.1324, allocations: 321.9 kB / 363.1 MB, free: 15.13 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001379/0.1326, allocations: 68.2 kB / 363.2 MB, free: 15.07 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001733/0.1328, allocations: 142.4 kB / 363.3 MB, free: 14.89 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003347/0.1331, allocations: 248.9 kB / 363.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1331, allocations: 0 / 363.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005662/0.1337, allocations: 409.1 kB / 364 MB, free: 14.21 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.435e-05/0.1337, allocations: 4 kB / 364 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.533e-05/0.1338, allocations: 12 kB / 364 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003524/0.1341, allocations: 144.8 kB / 364.1 MB, free: 14.05 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.1343, allocations: 35.91 kB / 364.2 MB, free: 14.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005755/0.1349, allocations: 0.7195 MB / 364.9 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002255/0.1351, allocations: 27.69 kB / 364.9 MB, free: 13.25 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.376e-05/0.1352, allocations: 23.92 kB / 364.9 MB, free: 13.22 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.0002176/0.1354, allocations: 193.9 kB / 365.1 MB, free: 13.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.1355, allocations: 102.8 kB / 365.2 MB, free: 12.92 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007767/0.1363, allocations: 403.3 kB / 365.6 MB, free: 12.51 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.1363, allocations: 8 kB / 365.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.917e-06/0.1363, allocations: 0 / 365.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.1363, allocations: 3.984 kB / 365.6 MB, free: 12.5 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005344/0.1369, allocations: 0.5034 MB / 366.1 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.088e-05/0.1369, allocations: 15.94 kB / 366.1 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001203/0.137, allocations: 23.91 kB / 366.2 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002657/0.1373, allocations: 136.8 kB / 366.3 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.066e-05/0.1373, allocations: 12 kB / 366.3 MB, free: 11.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005459/0.1379, allocations: 0.7005 MB / 367 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1379, allocations: 0 / 367 MB, free: 11.04 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005382/0.1384, allocations: 464.3 kB / 367.5 MB, free: 10.56 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001584/0.1386, allocations: 167.8 kB / 367.6 MB, free: 10.38 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.123e-05/0.1387, allocations: 8 kB / 367.6 MB, free: 10.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.1389, allocations: 7.984 kB / 367.7 MB, free: 10.36 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.02e-05/0.139, allocations: 19.92 kB / 367.7 MB, free: 10.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.052e-05/0.139, allocations: 12 kB / 367.7 MB, free: 10.33 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0005624/0.1396, allocations: 0.5462 MB / 368.2 MB, free: 9.777 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1396, allocations: 3.938 kB / 368.2 MB, free: 9.773 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005075/0.1401, allocations: 195.8 kB / 368.4 MB, free: 9.582 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.0004527/0.1405, allocations: 287.7 kB / 368.7 MB, free: 9.293 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005347/0.1411, allocations: 291.8 kB / 369 MB, free: 8.996 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.977e-06/0.1411, allocations: 0 / 369 MB, free: 8.996 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000281/0.1414, allocations: 179.3 kB / 369.2 MB, free: 8.809 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005867/0.142, allocations: 132.2 kB / 369.3 MB, free: 8.68 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001798/0.1438, allocations: 1.504 MB / 370.8 MB, free: 7.148 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004139/0.1442, allocations: 0.9452 MB / 371.7 MB, free: 6.176 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003296/0.1446, allocations: 106.7 kB / 371.8 MB, free: 6.066 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.007e-05/0.1446, allocations: 47.44 kB / 371.9 MB, free: 6.02 MB / 318.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1446, allocations: 4 kB / 371.9 MB, free: 6.016 MB / 318.1 MB Notification: Performance of Templates: time 0.1597/0.3044, allocations: 8.685 MB / 380.6 MB, free: 53.77 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)