Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009183/0.0009185, allocations: 94.78 kB / 16.95 MB, free: 6.047 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.00086/0.0008599, allocations: 176 kB / 17.83 MB, free: 5.688 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.515/1.515, allocations: 205.4 MB / 224 MB, free: 13.16 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.000463/0.000463, allocations: 12 kB / 280.9 MB, free: 3.625 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1249/0.1254, allocations: 47.57 MB / 328.4 MB, free: 3.98 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004946/0.1304, allocations: 4.455 MB / 332.9 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.009688/0.1401, allocations: 7.892 MB / 340.8 MB, free: 7.59 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006162/0.1408, allocations: 23.81 kB / 340.8 MB, free: 7.566 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009308/0.1418, allocations: 290.3 kB / 341.1 MB, free: 7.281 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002299/0.1441, allocations: 0.656 MB / 341.8 MB, free: 6.621 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001383/0.1455, allocations: 422.1 kB / 342.2 MB, free: 6.207 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002363/0.1478, allocations: 1.56 MB / 343.7 MB, free: 4.641 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002736/0.1481, allocations: 139 kB / 343.9 MB, free: 4.492 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003046/0.1484, allocations: 258.7 kB / 344.1 MB, free: 4.238 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003378/0.1488, allocations: 278.3 kB / 344.4 MB, free: 3.965 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.576e-05/0.1488, allocations: 16 kB / 344.4 MB, free: 3.949 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001183/0.15, allocations: 0.5151 MB / 344.9 MB, free: 3.434 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.457e-05/0.1501, allocations: 79.45 kB / 345 MB, free: 3.355 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000182/0.1503, allocations: 193.2 kB / 345.2 MB, free: 3.16 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009347/0.1512, allocations: 0.8608 MB / 346 MB, free: 2.297 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.697e-06/0.1513, allocations: 0 / 346 MB, free: 2.297 MB / 286.1 MB Notification: Performance of FrontEnd: time 3.065e-06/0.1513, allocations: 0 / 346 MB, free: 2.297 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.234e-05/0.1513, allocations: 0 / 346 MB, free: 2.297 MB / 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.001808/0.1531, allocations: 1.155 MB / 347.2 MB, free: 1.09 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.852e-05/0.1532, allocations: 8.031 kB / 347.2 MB, free: 1.082 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.099e-05/0.1533, allocations: 62.53 kB / 347.3 MB, free: 1.012 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001494/0.1534, allocations: 110.7 kB / 347.4 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.1546, allocations: 0.809 MB / 348.2 MB, free: 40 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.712e-05/0.1547, allocations: 20.56 kB / 348.2 MB, free: 20 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.207e-05/0.1548, allocations: 28.02 kB / 348.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005111/0.1553, allocations: 307.7 kB / 348.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.1553, allocations: 0 / 348.5 MB, free: 15.68 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.858e-05/0.1553, allocations: 12 kB / 348.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.179e-05/0.1553, allocations: 4 kB / 348.6 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004026/0.1558, allocations: 242.1 kB / 348.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001693/0.1575, allocations: 1.186 MB / 350 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003687/0.1578, allocations: 202.6 kB / 350.2 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003335/0.1582, allocations: 241.2 kB / 350.4 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00903/0.1672, allocations: 8.578 MB / 359 MB, free: 3.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.85e-05/0.1673, allocations: 34.56 kB / 359 MB, free: 3.707 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.225e-06/0.1673, allocations: 4 kB / 359 MB, free: 3.703 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001535/0.1688, allocations: 0.666 MB / 359.7 MB, free: 3.008 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.1689, allocations: 77.11 kB / 359.8 MB, free: 2.914 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001035/0.17, allocations: 0.7947 MB / 360.6 MB, free: 2.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.608e-05/0.17, allocations: 29.7 kB / 360.6 MB, free: 2.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003906/0.1704, allocations: 444.6 kB / 361 MB, free: 1.629 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.488e-05/0.1705, allocations: 78.84 kB / 361.1 MB, free: 1.551 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.394e-05/0.1705, allocations: 4 kB / 361.1 MB, free: 1.547 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.1706, allocations: 321.9 kB / 361.4 MB, free: 1.227 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001433/0.1708, allocations: 68.47 kB / 361.5 MB, free: 1.16 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002023/0.171, allocations: 149.9 kB / 361.6 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001823/0.1712, allocations: 96.42 kB / 361.7 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/0.1712, allocations: 0 / 361.7 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006304/0.1718, allocations: 400.9 kB / 362.1 MB, free: 496 kB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.381e-05/0.1719, allocations: 4.281 kB / 362.1 MB, free: 492 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.382e-05/0.1719, allocations: 23.98 kB / 362.1 MB, free: 468 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003772/0.1723, allocations: 144.7 kB / 362.3 MB, free: 320 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.1725, allocations: 35.97 kB / 362.3 MB, free: 284 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006969/0.1732, allocations: 0.7153 MB / 363 MB, free: 15.54 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002239/0.1734, allocations: 15.84 kB / 363.1 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.1735, allocations: 19.98 kB / 363.1 MB, free: 15.5 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002887/0.1738, allocations: 201.9 kB / 363.3 MB, free: 15.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001111/0.1739, allocations: 102.8 kB / 363.4 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008655/0.1748, allocations: 407.5 kB / 363.8 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.1748, allocations: 4 kB / 363.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.558e-06/0.1748, allocations: 3.938 kB / 363.8 MB, free: 14.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.1748, allocations: 7.984 kB / 363.8 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006382/0.1755, allocations: 0.5112 MB / 364.3 MB, free: 14.2 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.179e-05/0.1755, allocations: 12 kB / 364.3 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000109/0.1756, allocations: 23.97 kB / 364.3 MB, free: 14.17 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000269/0.1759, allocations: 132.7 kB / 364.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.1759, allocations: 8 kB / 364.5 MB, free: 14.03 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005957/0.1765, allocations: 0.7045 MB / 365.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.1765, allocations: 0 / 365.2 MB, free: 13.3 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005677/0.1771, allocations: 460.8 kB / 365.6 MB, free: 12.83 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000204/0.1773, allocations: 167.8 kB / 365.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.039e-05/0.1774, allocations: 4 kB / 365.8 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002047/0.1776, allocations: 11.98 kB / 365.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.36e-05/0.1777, allocations: 11.98 kB / 365.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.085e-05/0.1777, allocations: 8 kB / 365.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006603/0.1784, allocations: 0.5344 MB / 366.4 MB, free: 12.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1784, allocations: 4 kB / 366.4 MB, free: 12.06 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006001/0.179, allocations: 187.8 kB / 366.5 MB, free: 11.88 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.001231/0.1802, allocations: 1.177 MB / 367.7 MB, free: 10.67 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000549/0.1808, allocations: 279.6 kB / 368 MB, free: 10.39 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.1808, allocations: 3.938 kB / 368 MB, free: 10.38 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002832/0.1811, allocations: 187.8 kB / 368.2 MB, free: 10.19 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005787/0.1817, allocations: 136.5 kB / 368.3 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006869/0.1886, allocations: 4.283 MB / 372.6 MB, free: 5.535 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004778/0.1891, allocations: 0.9411 MB / 373.5 MB, free: 4.566 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000365/0.1894, allocations: 110.7 kB / 373.6 MB, free: 4.453 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003233/0.1898, allocations: 307.3 kB / 373.9 MB, free: 4.152 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1898, allocations: 4 kB / 373.9 MB, free: 4.148 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2119/0.4017, allocations: 16.93 MB / 390.9 MB, free: 50.25 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001332/0.4019, allocations: 216.8 kB / 391.1 MB, free: 50.01 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.416/2.818, allocations: 3.828 kB / 391.1 MB, free: 50.01 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat does not exist to compare? outputFormat=mat