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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/Complex 3.2.3+maint.om/package.mo): time 0.001084/0.001084, allocations: 179.9 kB / 17.02 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.299/1.299, allocations: 205.4 MB / 223.1 MB, free: 9.129 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008152/0.0008151, allocations: 85.31 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002714/0.0002716, allocations: 4 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2469, allocations: 47.58 MB / 375.9 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1053/0.3523, allocations: 89.77 MB / 465.7 MB, free: 6.863 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002656/0.3526, allocations: 79.95 kB / 465.8 MB, free: 6.785 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07491/0.4275, allocations: 33.97 MB / 499.7 MB, free: 4.543 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.4276, allocations: 0 / 499.7 MB, free: 4.543 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.183e-05/0.4276, allocations: 16 kB / 499.8 MB, free: 4.527 MB / 378.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.002763/0.4304, allocations: 1.221 MB / 0.4892 GB, free: 3.254 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.395e-05/0.4305, allocations: 8.031 kB / 0.4892 GB, free: 3.246 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001395/0.4306, allocations: 62.53 kB / 0.4893 GB, free: 3.176 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002409/0.4309, allocations: 110.7 kB / 0.4894 GB, free: 3.066 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001542/0.4324, allocations: 0.77 MB / 0.4902 GB, free: 2.242 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.355e-05/0.4325, allocations: 24.56 kB / 0.4902 GB, free: 2.219 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.641e-05/0.4325, allocations: 24 kB / 0.4902 GB, free: 2.195 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006288/0.4332, allocations: 307.7 kB / 0.4905 GB, free: 1.883 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.337e-05/0.4332, allocations: 0 / 0.4905 GB, free: 1.883 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.521e-05/0.4333, allocations: 12 kB / 0.4905 GB, free: 1.871 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.457e-05/0.4333, allocations: 4 kB / 0.4905 GB, free: 1.867 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004883/0.4338, allocations: 246.1 kB / 0.4907 GB, free: 1.625 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002207/0.436, allocations: 1.199 MB / 0.4919 GB, free: 360 kB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003897/0.4364, allocations: 205 kB / 0.4921 GB, free: 148 kB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.196/0.6324, allocations: 10.7 MB / 0.5026 GB, free: 85.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.795e-05/0.6325, allocations: 38.16 kB / 0.5026 GB, free: 85.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 3.457e-06/0.6325, allocations: 0 / 0.5026 GB, free: 85.27 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.001376/0.6338, allocations: 0.6354 MB / 0.5032 GB, free: 85.09 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.169e-05/0.6339, allocations: 83.16 kB / 0.5033 GB, free: 84.99 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008012/0.6347, allocations: 0.683 MB / 0.504 GB, free: 84.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.6347, allocations: 29.67 kB / 0.504 GB, free: 84.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002664/0.635, allocations: 439.4 kB / 0.5044 GB, free: 84.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.666e-05/0.6351, allocations: 78.47 kB / 0.5045 GB, free: 84.67 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.309e-05/0.6351, allocations: 5.125 kB / 0.5045 GB, free: 84.67 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.172e-05/0.6351, allocations: 316.2 kB / 0.5048 GB, free: 84.37 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001334/0.6353, allocations: 73.23 kB / 0.5049 GB, free: 84.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001676/0.6354, allocations: 142.3 kB / 0.505 GB, free: 84.28 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.6356, allocations: 99.55 kB / 0.5051 GB, free: 84.28 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.516e-06/0.6356, allocations: 0.9688 kB / 0.5051 GB, free: 84.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005518/0.6362, allocations: 404.5 kB / 0.5055 GB, free: 84.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.85e-05/0.6362, allocations: 12.95 kB / 0.5055 GB, free: 84.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-05/0.6362, allocations: 13.88 kB / 0.5055 GB, free: 84.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003123/0.6366, allocations: 140.9 kB / 0.5056 GB, free: 84.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.6367, allocations: 33.88 kB / 0.5057 GB, free: 84.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004981/0.6372, allocations: 0.7147 MB / 0.5064 GB, free: 83.65 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000287/0.6375, allocations: 31.2 kB / 0.5064 GB, free: 83.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.125e-05/0.6376, allocations: 15.34 kB / 0.5064 GB, free: 83.64 MB / 378.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 () * 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.0002123/0.6378, allocations: 202.1 kB / 0.5066 GB, free: 83.52 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.6379, allocations: 98.12 kB / 0.5067 GB, free: 83.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008253/0.6387, allocations: 429.9 kB / 0.5071 GB, free: 83.41 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.6388, allocations: 5.984 kB / 0.5071 GB, free: 83.41 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.458e-06/0.6388, allocations: 0 / 0.5071 GB, free: 83.41 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.6388, allocations: 2.312 kB / 0.5071 GB, free: 83.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005718/0.6394, allocations: 0.5048 MB / 0.5076 GB, free: 83.22 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.058e-05/0.6394, allocations: 16.22 kB / 0.5076 GB, free: 83.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.6395, allocations: 17.27 kB / 0.5076 GB, free: 83.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002554/0.6398, allocations: 142.5 kB / 0.5078 GB, free: 83.21 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.149e-05/0.6398, allocations: 14.95 kB / 0.5078 GB, free: 83.21 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004261/0.6402, allocations: 0.7015 MB / 0.5085 GB, free: 82.69 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.614e-06/0.6403, allocations: 3.656 kB / 0.5085 GB, free: 82.69 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000523/0.6408, allocations: 463.5 kB / 0.5089 GB, free: 82.5 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001968/0.641, allocations: 180.9 kB / 0.5091 GB, free: 82.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.427e-05/0.6411, allocations: 4.562 kB / 0.5091 GB, free: 82.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002285/0.6413, allocations: 7.531 kB / 0.5091 GB, free: 82.35 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.404e-05/0.6414, allocations: 19.28 kB / 0.5091 GB, free: 82.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.085e-05/0.6414, allocations: 14.33 kB / 0.5091 GB, free: 82.35 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005323/0.6419, allocations: 0.5362 MB / 0.5097 GB, free: 82.24 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.6419, allocations: 3.938 kB / 0.5097 GB, free: 82.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005828/0.6425, allocations: 212.4 kB / 0.5099 GB, free: 82.23 MB / 378.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 () * 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.0009705/0.6435, allocations: 1.229 MB / 0.5111 GB, free: 81.5 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004624/0.644, allocations: 280 kB / 0.5113 GB, free: 81.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.644, allocations: 2.188 kB / 0.5113 GB, free: 81.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002285/0.6442, allocations: 180.8 kB / 0.5115 GB, free: 81.37 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003993/0.6446, allocations: 128.2 kB / 0.5116 GB, free: 81.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005595/0.6502, allocations: 5.594 MB / 0.5171 GB, free: 78.32 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002732/0.6505, allocations: 0.9573 MB / 0.518 GB, free: 77.62 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003132/0.6509, allocations: 97.23 kB / 0.5181 GB, free: 77.62 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002327/0.6511, allocations: 330.9 kB / 0.5184 GB, free: 77.61 MB / 378.7 MB Notification: Performance of SimCode: time 1.062e-06/0.6511, allocations: 0 / 0.5184 GB, free: 77.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03203/0.6832, allocations: 17.1 MB / 0.5351 GB, free: 73.63 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001661/0.6834, allocations: 209.9 kB / 0.5353 GB, free: 73.39 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.432/3.116, allocations: 4 kB / 0.5353 GB, free: 73.39 MB / 378.7 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) 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