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.00117/0.00117, allocations: 172.2 kB / 14.1 MB, free: 1.223 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.393/1.393, allocations: 205.2 MB / 219.8 MB, free: 14.26 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.0008092/0.0008093, allocations: 93.7 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.462e-05/2.465e-05, allocations: 0 / 322.5 MB, free: 17.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08426/0.0843, allocations: 47.56 MB / 370.1 MB, free: 1.625 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3164/0.4007, allocations: 89.69 MB / 459.8 MB, free: 3.699 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002343/0.401, allocations: 69.94 kB / 459.9 MB, free: 3.668 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0741/0.4751, allocations: 33.95 MB / 493.8 MB, free: 2.848 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.4752, allocations: 0 / 493.8 MB, free: 2.848 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.4752, allocations: 12 kB / 493.8 MB, free: 2.836 MB / 362.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.001481/0.4767, allocations: 1.047 MB / 494.9 MB, free: 1.742 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.245e-05/0.4767, allocations: 8.031 kB / 494.9 MB, free: 1.734 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.76e-05/0.4768, allocations: 62.53 kB / 494.9 MB, free: 1.664 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001179/0.4769, allocations: 114.6 kB / 495.1 MB, free: 1.551 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001041/0.478, allocations: 0.7468 MB / 495.8 MB, free: 0.75 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.478, allocations: 24.5 kB / 495.8 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.92e-05/0.4781, allocations: 24 kB / 495.9 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004652/0.4786, allocations: 299.7 kB / 496.1 MB, free: 408 kB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.035e-05/0.4786, allocations: 0 / 496.1 MB, free: 408 kB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.882e-05/0.4786, allocations: 12 kB / 496.2 MB, free: 396 kB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.639e-05/0.4786, allocations: 7.984 kB / 496.2 MB, free: 388 kB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003394/0.479, allocations: 218.2 kB / 496.4 MB, free: 168 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.4806, allocations: 1.203 MB / 497.6 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003158/0.481, allocations: 186.6 kB / 497.8 MB, free: 14.7 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002794/0.4813, allocations: 230.3 kB / 498 MB, free: 14.46 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01063/0.4919, allocations: 10.78 MB / 0.4968 GB, free: 1.844 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.106e-05/0.492, allocations: 34.56 kB / 0.4969 GB, free: 1.801 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 2.715e-06/0.492, allocations: 4 kB / 0.4969 GB, free: 1.797 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.0006759/0.4927, allocations: 353.2 kB / 0.4972 GB, free: 1.441 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/0.4928, allocations: 77.11 kB / 0.4973 GB, free: 1.348 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008896/0.4936, allocations: 0.6653 MB / 0.4979 GB, free: 0.6641 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.67e-05/0.4937, allocations: 33.7 kB / 0.498 GB, free: 0.625 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003326/0.494, allocations: 444.4 kB / 0.4984 GB, free: 192 kB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.36e-05/0.4941, allocations: 74.84 kB / 0.4985 GB, free: 116 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.266e-05/0.4941, allocations: 8 kB / 0.4985 GB, free: 108 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.00013/0.4942, allocations: 313.9 kB / 0.4988 GB, free: 15.79 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.4944, allocations: 68.48 kB / 0.4988 GB, free: 15.73 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.4945, allocations: 142.6 kB / 0.499 GB, free: 15.55 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001404/0.4947, allocations: 83.81 kB / 0.4991 GB, free: 15.47 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.4947, allocations: 3.938 kB / 0.4991 GB, free: 15.47 MB / 394.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005475/0.4952, allocations: 388.9 kB / 0.4994 GB, free: 15.08 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.075e-05/0.4953, allocations: 11.94 kB / 0.4994 GB, free: 15.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-05/0.4953, allocations: 12 kB / 0.4995 GB, free: 15.05 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003634/0.4957, allocations: 144.5 kB / 0.4996 GB, free: 14.91 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001706/0.4959, allocations: 35.91 kB / 0.4996 GB, free: 14.88 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006087/0.4965, allocations: 0.7131 MB / 0.5003 GB, free: 14.14 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003274/0.4968, allocations: 31.67 kB / 0.5004 GB, free: 14.11 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.764e-05/0.4969, allocations: 12 kB / 0.5004 GB, free: 14.1 MB / 394.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.000106/0.497, allocations: 113 kB / 0.5005 GB, free: 13.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001054/0.4971, allocations: 102.8 kB / 0.5006 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008405/0.4979, allocations: 415.3 kB / 0.501 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.498, allocations: 4 kB / 0.501 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.633e-06/0.498, allocations: 3.953 kB / 0.501 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.915e-06/0.498, allocations: 3.984 kB / 0.501 GB, free: 13.45 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005622/0.4985, allocations: 0.5112 MB / 0.5015 GB, free: 12.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.11e-05/0.4986, allocations: 15.98 kB / 0.5015 GB, free: 12.88 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001124/0.4987, allocations: 15.98 kB / 0.5015 GB, free: 12.86 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002569/0.499, allocations: 132.8 kB / 0.5016 GB, free: 12.73 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.499, allocations: 12 kB / 0.5016 GB, free: 12.71 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005177/0.4995, allocations: 0.7006 MB / 0.5023 GB, free: 11.99 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.4995, allocations: 4.031 kB / 0.5023 GB, free: 11.98 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004951/0.5, allocations: 456.7 kB / 0.5028 GB, free: 11.52 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001971/0.5002, allocations: 171.8 kB / 0.5029 GB, free: 11.33 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.107e-05/0.5003, allocations: 11.94 kB / 0.5029 GB, free: 11.32 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.5006, allocations: 11.94 kB / 0.503 GB, free: 11.31 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.529e-05/0.5006, allocations: 19.92 kB / 0.503 GB, free: 11.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.982e-05/0.5006, allocations: 12 kB / 0.503 GB, free: 11.28 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005599/0.5012, allocations: 0.5275 MB / 0.5035 GB, free: 10.74 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5012, allocations: 0 / 0.5035 GB, free: 10.74 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0006495/0.5019, allocations: 207.7 kB / 0.5037 GB, free: 10.54 MB / 394.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.001238/0.5031, allocations: 1.199 MB / 0.5049 GB, free: 9.309 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005058/0.5036, allocations: 271.4 kB / 0.5051 GB, free: 9.031 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.5037, allocations: 0 / 0.5051 GB, free: 9.031 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002521/0.5039, allocations: 163.9 kB / 0.5053 GB, free: 8.859 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004488/0.5044, allocations: 124.3 kB / 0.5054 GB, free: 8.734 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001745/0.5061, allocations: 0.9944 MB / 0.5064 GB, free: 7.699 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004377/0.5066, allocations: 0.9568 MB / 0.5073 GB, free: 6.715 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003184/0.5069, allocations: 97.95 kB / 0.5074 GB, free: 6.617 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000317/0.5072, allocations: 333.2 kB / 0.5077 GB, free: 6.293 MB / 394.7 MB Notification: Performance of SimCode: time 3.8e-07/0.5072, allocations: 3.938 kB / 0.5077 GB, free: 6.289 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03303/0.5403, allocations: 16.97 MB / 0.5243 GB, free: 5.289 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/0.5405, allocations: 195.3 kB / 0.5245 GB, free: 5.051 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.353/2.893, allocations: 0 / 0.5245 GB, free: 5.051 MB / 410.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