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.006054/0.006055, allocations: 100.1 kB / 15.73 MB, free: 6.043 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.001182/0.001182, allocations: 189.3 kB / 16.67 MB, free: 5.973 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.468/1.468, allocations: 205.1 MB / 222.6 MB, free: 4.531 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.001191/0.001191, allocations: 50.05 kB / 326.5 MB, free: 14.36 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08055/0.08175, allocations: 46.62 MB / 373.2 MB, free: 1.332 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005357/0.08715, allocations: 5.133 MB / 378.3 MB, free: 12.17 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009053/0.09623, allocations: 8.672 MB / 387 MB, free: 3.461 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005092/0.09677, allocations: 39.69 kB / 387 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008535/0.09767, allocations: 381.5 kB / 387.4 MB, free: 3.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001839/0.09952, allocations: 0.834 MB / 388.2 MB, free: 2.207 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00129/0.1008, allocations: 0.5752 MB / 388.8 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002105/0.1029, allocations: 1.654 MB / 390.4 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002682/0.1032, allocations: 171 kB / 390.6 MB, free: 15.79 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003086/0.1035, allocations: 286.6 kB / 390.9 MB, free: 15.51 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003337/0.1039, allocations: 314 kB / 391.2 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.13e-05/0.1039, allocations: 28 kB / 391.2 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001195/0.1051, allocations: 0.5621 MB / 391.8 MB, free: 14.61 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.286e-05/0.1053, allocations: 103.3 kB / 391.9 MB, free: 14.51 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003616/0.1056, allocations: 405.5 kB / 392.3 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001361/0.107, allocations: 1.199 MB / 393.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.107, allocations: 0 / 393.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.107, allocations: 0 / 393.5 MB, free: 12.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.578e-05/0.107, allocations: 4 kB / 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.001762/0.1088, allocations: 1.267 MB / 394.8 MB, free: 11.58 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.1089, allocations: 12.03 kB / 394.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001333/0.109, allocations: 111.6 kB / 394.9 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001067/0.1101, allocations: 0.8592 MB / 395.7 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.1101, allocations: 12.56 kB / 395.7 MB, free: 10.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.166e-05/0.1102, allocations: 28 kB / 395.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004867/0.1107, allocations: 311.6 kB / 396.1 MB, free: 10.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.1107, allocations: 3.984 kB / 396.1 MB, free: 10.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.42e-05/0.1107, allocations: 12 kB / 396.1 MB, free: 10.17 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.488e-05/0.1107, allocations: 8 kB / 396.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004037/0.1111, allocations: 238.1 kB / 396.3 MB, free: 9.934 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001622/0.1128, allocations: 1.183 MB / 397.5 MB, free: 8.68 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003504/0.1131, allocations: 210.4 kB / 397.7 MB, free: 8.465 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003081/0.1135, allocations: 225.3 kB / 397.9 MB, free: 8.238 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007807/0.1213, allocations: 8.557 MB / 406.5 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.461e-05/0.1213, allocations: 38.5 kB / 406.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.904e-06/0.1213, allocations: 0 / 406.5 MB, free: 14.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001549/0.1229, allocations: 0.6581 MB / 407.2 MB, free: 13.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.832e-05/0.123, allocations: 89.09 kB / 407.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009705/0.1239, allocations: 0.7987 MB / 408.1 MB, free: 12.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.124, allocations: 25.7 kB / 408.1 MB, free: 12.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003374/0.1243, allocations: 444.6 kB / 408.5 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.845e-05/0.1244, allocations: 78.92 kB / 408.6 MB, free: 12.09 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.56e-05/0.1245, allocations: 57.84 kB / 408.7 MB, free: 12.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001088/0.1246, allocations: 321.9 kB / 409 MB, free: 11.7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000152/0.1248, allocations: 68.2 kB / 409.1 MB, free: 11.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001965/0.125, allocations: 145.9 kB / 409.2 MB, free: 11.46 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003333/0.1253, allocations: 224.5 kB / 409.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.1253, allocations: 4 kB / 409.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005927/0.1259, allocations: 405.7 kB / 409.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.67e-05/0.1259, allocations: 9.094 kB / 409.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.798e-05/0.126, allocations: 12 kB / 409.8 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000359/0.1263, allocations: 144.6 kB / 410 MB, free: 10.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00017/0.1265, allocations: 36.16 kB / 410 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006175/0.1272, allocations: 0.7045 MB / 410.7 MB, free: 9.871 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002435/0.1274, allocations: 27.69 kB / 410.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.363e-05/0.1275, allocations: 16 kB / 410.8 MB, free: 9.828 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.0002418/0.1277, allocations: 197.8 kB / 411 MB, free: 9.625 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001171/0.1278, allocations: 102.8 kB / 411.1 MB, free: 9.523 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007985/0.1286, allocations: 415.2 kB / 411.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.296e-06/0.1287, allocations: 4 kB / 411.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.1287, allocations: 0 / 411.5 MB, free: 9.105 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.1287, allocations: 4 kB / 411.5 MB, free: 9.102 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005844/0.1293, allocations: 0.5111 MB / 412 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.311e-05/0.1293, allocations: 16 kB / 412 MB, free: 8.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.1294, allocations: 19.92 kB / 412 MB, free: 8.508 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002632/0.1297, allocations: 144.7 kB / 412.2 MB, free: 8.363 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.784e-05/0.1297, allocations: 8 kB / 412.2 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005708/0.1303, allocations: 0.6968 MB / 412.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.733e-06/0.1303, allocations: 0 / 412.9 MB, free: 7.633 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005769/0.1309, allocations: 463.7 kB / 413.3 MB, free: 7.16 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001647/0.1311, allocations: 167.9 kB / 413.5 MB, free: 6.977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.587e-05/0.1312, allocations: 11.94 kB / 413.5 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002173/0.1314, allocations: 8 kB / 413.5 MB, free: 6.957 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.669e-05/0.1315, allocations: 15.92 kB / 413.5 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.821e-05/0.1315, allocations: 8 kB / 413.5 MB, free: 6.934 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005889/0.1321, allocations: 0.5461 MB / 414.1 MB, free: 6.379 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1321, allocations: 0 / 414.1 MB, free: 6.379 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005634/0.1327, allocations: 191.8 kB / 414.3 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.0005215/0.1332, allocations: 303.2 kB / 414.5 MB, free: 5.883 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006001/0.1338, allocations: 283.9 kB / 414.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.534e-06/0.1338, allocations: 0 / 414.8 MB, free: 5.594 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002942/0.1341, allocations: 184.1 kB / 415 MB, free: 5.402 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006183/0.1348, allocations: 136.3 kB / 415.1 MB, free: 5.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001674/0.1364, allocations: 1.213 MB / 416.3 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004348/0.1369, allocations: 0.9335 MB / 417.3 MB, free: 3.059 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002547/0.1371, allocations: 114.7 kB / 417.4 MB, free: 2.941 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.88e-05/0.1372, allocations: 55.38 kB / 417.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1372, allocations: 0 / 417.4 MB, free: 2.887 MB / 350.1 MB Notification: Performance of Templates: time 0.01587/0.1531, allocations: 9.093 MB / 426.5 MB, free: 9.77 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)