Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json 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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001005/0.001005, allocations: 175.6 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.264/1.264, allocations: 221.3 MB / 235.5 MB, free: 2.977 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008855/0.0008855, allocations: 91.8 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.197e-05/3.209e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.09707, allocations: 50.41 MB / 394.3 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3311/0.4282, allocations: 91.42 MB / 485.8 MB, free: 12.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.4286, allocations: 71.97 kB / 485.8 MB, free: 11.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08429/0.5129, allocations: 37.4 MB / 0.511 GB, free: 6.285 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.5129, allocations: 0 / 0.511 GB, free: 6.285 MB / 394.7 MB Notification: Performance of Transformations before backend: time 3.078e-05/0.513, allocations: 12.19 kB / 0.511 GB, free: 6.273 MB / 394.7 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.001606/0.5146, allocations: 1.04 MB / 0.512 GB, free: 5.188 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.5146, allocations: 8.031 kB / 0.512 GB, free: 5.18 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.075e-05/0.5147, allocations: 62.53 kB / 0.5121 GB, free: 5.109 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001578/0.5149, allocations: 110.7 kB / 0.5122 GB, free: 5 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001092/0.516, allocations: 0.7506 MB / 0.5129 GB, free: 4.195 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.516, allocations: 28.45 kB / 0.5129 GB, free: 4.168 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.292e-05/0.5161, allocations: 24 kB / 0.513 GB, free: 4.145 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004821/0.5166, allocations: 299.7 kB / 0.5132 GB, free: 3.84 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.235e-05/0.5166, allocations: 3.938 kB / 0.5132 GB, free: 3.836 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.5166, allocations: 8 kB / 0.5133 GB, free: 3.828 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.5166, allocations: 11.98 kB / 0.5133 GB, free: 3.816 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003492/0.517, allocations: 222.2 kB / 0.5135 GB, free: 3.598 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001689/0.5187, allocations: 1.207 MB / 0.5147 GB, free: 2.316 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003347/0.5191, allocations: 194.5 kB / 0.5148 GB, free: 2.117 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002777/0.5193, allocations: 225.4 kB / 0.5151 GB, free: 1.891 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01039/0.5297, allocations: 10.78 MB / 0.5256 GB, free: 5.277 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.467e-05/0.5298, allocations: 34.5 kB / 0.5256 GB, free: 5.234 MB / 410.7 MB Notification: Performance of pre-optimization done (n=23): time 2.224e-06/0.5298, allocations: 4 kB / 0.5256 GB, free: 5.23 MB / 410.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006489/0.5305, allocations: 353.3 kB / 0.526 GB, free: 4.879 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.02e-05/0.5305, allocations: 81.11 kB / 0.526 GB, free: 4.781 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008041/0.5313, allocations: 0.6653 MB / 0.5267 GB, free: 4.098 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 2.271e-05/0.5314, allocations: 29.7 kB / 0.5267 GB, free: 4.062 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003028/0.5317, allocations: 444.4 kB / 0.5271 GB, free: 3.625 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.158e-05/0.5317, allocations: 70.92 kB / 0.5272 GB, free: 3.555 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.443e-05/0.5318, allocations: 4 kB / 0.5272 GB, free: 3.551 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 9.352e-05/0.5319, allocations: 318 kB / 0.5275 GB, free: 3.234 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.532, allocations: 56.23 kB / 0.5276 GB, free: 3.18 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001522/0.5321, allocations: 141.8 kB / 0.5277 GB, free: 3.008 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001416/0.5323, allocations: 79.98 kB / 0.5278 GB, free: 2.93 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.5323, allocations: 0 / 0.5278 GB, free: 2.93 MB / 410.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.00054/0.5328, allocations: 400.8 kB / 0.5282 GB, free: 2.527 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.5329, allocations: 7.938 kB / 0.5282 GB, free: 2.52 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.282e-05/0.5329, allocations: 16 kB / 0.5282 GB, free: 2.504 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003552/0.5333, allocations: 138.5 kB / 0.5283 GB, free: 2.367 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001678/0.5334, allocations: 43.91 kB / 0.5284 GB, free: 2.324 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000647/0.5341, allocations: 0.7045 MB / 0.529 GB, free: 1.594 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002909/0.5344, allocations: 27.81 kB / 0.5291 GB, free: 1.566 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.304e-05/0.5345, allocations: 15.98 kB / 0.5291 GB, free: 1.551 MB / 410.7 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 () * 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.0001047/0.5346, allocations: 116.9 kB / 0.5292 GB, free: 1.43 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.5347, allocations: 102.8 kB / 0.5293 GB, free: 1.328 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000833/0.5355, allocations: 426.4 kB / 0.5297 GB, free: 0.9023 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.914e-06/0.5356, allocations: 8 kB / 0.5297 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.89e-06/0.5356, allocations: 0 / 0.5297 GB, free: 0.8945 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.5356, allocations: 3.984 kB / 0.5297 GB, free: 0.8906 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006169/0.5362, allocations: 0.5034 MB / 0.5302 GB, free: 348 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.116e-05/0.5362, allocations: 15.98 kB / 0.5302 GB, free: 332 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.5363, allocations: 15.98 kB / 0.5302 GB, free: 316 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002657/0.5366, allocations: 138.3 kB / 0.5304 GB, free: 176 kB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.038e-05/0.5367, allocations: 8 kB / 0.5304 GB, free: 168 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005524/0.5372, allocations: 0.7063 MB / 0.5311 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.5372, allocations: 4 kB / 0.5311 GB, free: 15.43 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005471/0.5378, allocations: 452.3 kB / 0.5315 GB, free: 14.97 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002364/0.538, allocations: 175.8 kB / 0.5317 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.425e-05/0.5381, allocations: 0 / 0.5317 GB, free: 14.78 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002391/0.5384, allocations: 12 kB / 0.5317 GB, free: 14.77 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.422e-05/0.5385, allocations: 15.97 kB / 0.5317 GB, free: 14.75 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.252e-05/0.5385, allocations: 16 kB / 0.5317 GB, free: 14.73 MB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0007167/0.5392, allocations: 0.5158 MB / 0.5322 GB, free: 14.21 MB / 426.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.5392, allocations: 0 / 0.5322 GB, free: 14.21 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.0006804/0.5399, allocations: 223.7 kB / 0.5324 GB, free: 13.99 MB / 426.7 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 () * 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.001401/0.5413, allocations: 1.202 MB / 0.5336 GB, free: 12.76 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0005349/0.5419, allocations: 255.3 kB / 0.5338 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 4.007e-06/0.5419, allocations: 0 / 0.5338 GB, free: 12.5 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002582/0.5421, allocations: 176.3 kB / 0.534 GB, free: 12.31 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006495/0.5428, allocations: 154.8 kB / 0.5342 GB, free: 12.16 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001936/0.5448, allocations: 0.9912 MB / 0.5351 GB, free: 11.13 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004975/0.5453, allocations: 0.9568 MB / 0.5361 GB, free: 10.14 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0003445/0.5456, allocations: 94.02 kB / 0.5361 GB, free: 10.05 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003447/0.546, allocations: 323.3 kB / 0.5365 GB, free: 9.734 MB / 426.7 MB Notification: Performance of SimCode: time 6.91e-07/0.546, allocations: 0 / 0.5365 GB, free: 9.734 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2494/0.7954, allocations: 16.99 MB / 0.5531 GB, free: 116.1 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001476/0.7956, allocations: 176.7 kB / 0.5532 GB, free: 115.8 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.579/3.374, allocations: 1.406 kB / 0.5532 GB, free: 115.8 MB / 426.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat does not exist to compare? outputFormat=mat