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.001375/0.001375, allocations: 180.2 kB / 16.38 MB, free: 5.766 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.421/1.421, allocations: 223.2 MB / 240.3 MB, free: 11.88 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009444/0.0009442, allocations: 96.19 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002897/0.0002897, allocations: 7.938 kB / 351.2 MB, free: 15.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2582, allocations: 50.4 MB / 401.6 MB, free: 32.59 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1142/0.3724, allocations: 91.49 MB / 493.1 MB, free: 4.969 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002919/0.3727, allocations: 75.95 kB / 493.1 MB, free: 4.895 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2667/0.6394, allocations: 37.43 MB / 0.5181 GB, free: 90.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.6394, allocations: 0 / 0.5181 GB, free: 90.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.266e-05/0.6395, allocations: 15.59 kB / 0.5181 GB, free: 90.88 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.00206/0.6415, allocations: 1.216 MB / 0.5193 GB, free: 90 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.115e-05/0.6416, allocations: 10.28 kB / 0.5193 GB, free: 90 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.416e-05/0.6417, allocations: 60.39 kB / 0.5194 GB, free: 89.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001478/0.6418, allocations: 114.3 kB / 0.5195 GB, free: 89.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001257/0.6431, allocations: 0.7594 MB / 0.5202 GB, free: 89.43 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.523e-05/0.6431, allocations: 21.2 kB / 0.5203 GB, free: 89.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.379e-05/0.6432, allocations: 29.31 kB / 0.5203 GB, free: 89.41 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000467/0.6437, allocations: 304.7 kB / 0.5206 GB, free: 89.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.6437, allocations: 3.75 kB / 0.5206 GB, free: 89.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.822e-05/0.6437, allocations: 10.69 kB / 0.5206 GB, free: 89.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.6437, allocations: 15.34 kB / 0.5206 GB, free: 89.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003672/0.6441, allocations: 241.1 kB / 0.5208 GB, free: 89.17 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001588/0.6457, allocations: 1.199 MB / 0.522 GB, free: 88.42 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000306/0.646, allocations: 199.1 kB / 0.5222 GB, free: 88.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008921/0.655, allocations: 10.71 MB / 0.5327 GB, free: 78.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.68e-05/0.655, allocations: 42.45 kB / 0.5327 GB, free: 78.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 4.138e-06/0.6551, allocations: 0 / 0.5327 GB, free: 78.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.001501/0.6566, allocations: 0.6443 MB / 0.5333 GB, free: 77.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.553e-05/0.6566, allocations: 77.11 kB / 0.5334 GB, free: 77.43 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009696/0.6576, allocations: 0.6868 MB / 0.5341 GB, free: 76.82 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.427e-05/0.6577, allocations: 29.7 kB / 0.5341 GB, free: 76.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003038/0.658, allocations: 435.7 kB / 0.5345 GB, free: 76.39 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.509e-05/0.658, allocations: 78.75 kB / 0.5346 GB, free: 76.32 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.311e-05/0.6581, allocations: 4 kB / 0.5346 GB, free: 76.32 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.418e-05/0.6581, allocations: 317.8 kB / 0.5349 GB, free: 76.01 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.6582, allocations: 64.06 kB / 0.535 GB, free: 75.95 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000153/0.6584, allocations: 147 kB / 0.5351 GB, free: 75.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001543/0.6586, allocations: 87.86 kB / 0.5352 GB, free: 75.71 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.6586, allocations: 4 kB / 0.5352 GB, free: 75.7 MB / 378.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007013/0.6593, allocations: 415.2 kB / 0.5356 GB, free: 75.31 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.6593, allocations: 4 kB / 0.5356 GB, free: 75.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.966e-05/0.6594, allocations: 16 kB / 0.5356 GB, free: 75.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003295/0.6597, allocations: 138.8 kB / 0.5357 GB, free: 75.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001628/0.6599, allocations: 39.59 kB / 0.5358 GB, free: 75.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004909/0.6604, allocations: 0.7105 MB / 0.5365 GB, free: 74.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003203/0.6607, allocations: 31.64 kB / 0.5365 GB, free: 74.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.378e-05/0.6607, allocations: 23.98 kB / 0.5365 GB, free: 74.36 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.0002307/0.661, allocations: 201.8 kB / 0.5367 GB, free: 74.15 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.6611, allocations: 102.8 kB / 0.5368 GB, free: 74.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007555/0.6619, allocations: 437.5 kB / 0.5372 GB, free: 73.61 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.98e-06/0.6619, allocations: 0 / 0.5372 GB, free: 73.61 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.6619, allocations: 0 / 0.5372 GB, free: 73.61 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.6619, allocations: 3.469 kB / 0.5372 GB, free: 73.61 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004949/0.6624, allocations: 0.519 MB / 0.5377 GB, free: 73.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.71e-05/0.6624, allocations: 8 kB / 0.5377 GB, free: 73.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001093/0.6625, allocations: 19.98 kB / 0.5378 GB, free: 73.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002333/0.6628, allocations: 136.7 kB / 0.5379 GB, free: 72.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.015e-05/0.6628, allocations: 12 kB / 0.5379 GB, free: 72.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004389/0.6632, allocations: 0.7038 MB / 0.5386 GB, free: 72.14 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.6633, allocations: 0 / 0.5386 GB, free: 72.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004781/0.6638, allocations: 471 kB / 0.539 GB, free: 71.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.664, allocations: 175.8 kB / 0.5392 GB, free: 71.47 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.375e-05/0.6641, allocations: 0 / 0.5392 GB, free: 71.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.6643, allocations: 11.98 kB / 0.5392 GB, free: 71.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.673e-05/0.6643, allocations: 15.98 kB / 0.5392 GB, free: 71.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.6644, allocations: 12 kB / 0.5393 GB, free: 71.43 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005129/0.6649, allocations: 0.5383 MB / 0.5398 GB, free: 70.89 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.6649, allocations: 0 / 0.5398 GB, free: 70.89 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006228/0.6655, allocations: 215.7 kB / 0.54 GB, free: 70.68 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.001109/0.6666, allocations: 1.213 MB / 0.5412 GB, free: 69.44 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004776/0.6671, allocations: 279.8 kB / 0.5414 GB, free: 69.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.6671, allocations: 3.938 kB / 0.5414 GB, free: 69.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000233/0.6674, allocations: 183.3 kB / 0.5416 GB, free: 68.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005654/0.668, allocations: 142.3 kB / 0.5417 GB, free: 68.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005584/0.6736, allocations: 5.594 MB / 0.5472 GB, free: 62.98 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.6739, allocations: 0.9607 MB / 0.5481 GB, free: 62 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003584/0.6743, allocations: 95.19 kB / 0.5482 GB, free: 61.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002394/0.6745, allocations: 323.3 kB / 0.5485 GB, free: 61.59 MB / 378.7 MB Notification: Performance of SimCode: time 1.633e-06/0.6745, allocations: 4 kB / 0.5486 GB, free: 61.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03037/0.7049, allocations: 17.12 MB / 0.5653 GB, free: 44.72 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001478/0.7051, allocations: 220.2 kB / 0.5655 GB, free: 44.47 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.479/3.184, allocations: 0 / 0.5655 GB, free: 44.47 MB / 378.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