Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_cpp_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.002884/0.002889, allocations: 181.9 kB / 13.66 MB, free: 1.664 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.073/2.073, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.001092/0.001092, allocations: 86.66 kB / 267.5 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.186e-05/3.203e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0982/0.09825, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4213/0.5196, allocations: 89.69 MB / 458.9 MB, free: 3.605 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000282/0.5199, allocations: 72.41 kB / 458.9 MB, free: 3.57 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1282/0.6481, allocations: 33.94 MB / 492.9 MB, free: 3.172 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.384e-06/0.6482, allocations: 0 / 492.9 MB, free: 3.172 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.188e-05/0.6482, allocations: 16 kB / 492.9 MB, free: 3.156 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.002501/0.6508, allocations: 1.044 MB / 493.9 MB, free: 2.066 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.38e-05/0.6508, allocations: 8.031 kB / 494 MB, free: 2.059 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001176/0.651, allocations: 62.53 kB / 494 MB, free: 1.988 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002494/0.6512, allocations: 122.6 kB / 494.1 MB, free: 1.867 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001883/0.6531, allocations: 0.7506 MB / 494.9 MB, free: 1.062 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.6532, allocations: 12.56 kB / 494.9 MB, free: 1.051 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.45e-05/0.6533, allocations: 24 kB / 494.9 MB, free: 1.027 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008201/0.6541, allocations: 299.7 kB / 495.2 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.536e-05/0.6541, allocations: 0 / 495.2 MB, free: 0.7227 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.934e-05/0.6542, allocations: 12 kB / 495.2 MB, free: 0.7109 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.945e-05/0.6542, allocations: 7.984 kB / 495.2 MB, free: 0.7031 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006112/0.6548, allocations: 222.2 kB / 495.5 MB, free: 496 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00307/0.6579, allocations: 1.199 MB / 496.7 MB, free: 15.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005569/0.6585, allocations: 190.6 kB / 496.8 MB, free: 15.02 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005011/0.6591, allocations: 226.3 kB / 497.1 MB, free: 14.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01817/0.6773, allocations: 10.78 MB / 0.4959 GB, free: 2.168 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.293e-05/0.6774, allocations: 42.5 kB / 0.496 GB, free: 2.117 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 3.857e-06/0.6774, allocations: 3.938 kB / 0.496 GB, free: 2.113 MB / 378.7 MB Notification: Performance of matching and sorting (n=23): time 0.001171/0.6786, allocations: 349.2 kB / 0.4963 GB, free: 1.762 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.167e-05/0.6787, allocations: 85.09 kB / 0.4964 GB, free: 1.66 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00144/0.6801, allocations: 0.6614 MB / 0.497 GB, free: 0.9805 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.893e-05/0.6802, allocations: 29.7 kB / 0.4971 GB, free: 0.9453 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004638/0.6807, allocations: 418.4 kB / 0.4975 GB, free: 0.5352 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001266/0.6809, allocations: 74.84 kB / 0.4975 GB, free: 472 kB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.279e-05/0.6809, allocations: 4 kB / 0.4975 GB, free: 468 kB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.6811, allocations: 326.8 kB / 0.4979 GB, free: 132 kB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002056/0.6813, allocations: 64.5 kB / 0.4979 GB, free: 68 kB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000291/0.6816, allocations: 141.9 kB / 0.4981 GB, free: 15.89 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000307/0.6819, allocations: 87.78 kB / 0.4981 GB, free: 15.81 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.88e-06/0.6819, allocations: 0 / 0.4981 GB, free: 15.81 MB / 394.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008198/0.6828, allocations: 294.1 kB / 0.4984 GB, free: 15.51 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.729e-05/0.6828, allocations: 11.94 kB / 0.4984 GB, free: 15.5 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.121e-05/0.6829, allocations: 12 kB / 0.4984 GB, free: 15.49 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005988/0.6835, allocations: 145 kB / 0.4986 GB, free: 15.34 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003121/0.6838, allocations: 31.98 kB / 0.4986 GB, free: 15.31 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001052/0.6849, allocations: 0.7126 MB / 0.4993 GB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006597/0.6856, allocations: 31.67 kB / 0.4993 GB, free: 14.55 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.6857, allocations: 12 kB / 0.4993 GB, free: 14.54 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.0001609/0.6859, allocations: 121 kB / 0.4995 GB, free: 14.41 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002128/0.6861, allocations: 106.7 kB / 0.4996 GB, free: 14.3 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001521/0.6877, allocations: 415.3 kB / 0.5 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.6877, allocations: 0 / 0.5 GB, free: 13.89 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.426e-06/0.6877, allocations: 3.953 kB / 0.5 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.503e-06/0.6877, allocations: 0 / 0.5 GB, free: 13.88 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001141/0.6889, allocations: 0.5112 MB / 0.5005 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.201e-05/0.689, allocations: 8 kB / 0.5005 GB, free: 13.32 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002487/0.6892, allocations: 23.98 kB / 0.5005 GB, free: 13.29 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005638/0.6898, allocations: 140.7 kB / 0.5006 GB, free: 13.15 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.59e-05/0.6899, allocations: 8 kB / 0.5006 GB, free: 13.14 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00095/0.6908, allocations: 0.7045 MB / 0.5013 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.101e-06/0.6909, allocations: 4.031 kB / 0.5013 GB, free: 12.41 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/0.6919, allocations: 440.7 kB / 0.5017 GB, free: 11.96 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003866/0.6924, allocations: 179.9 kB / 0.5019 GB, free: 11.77 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001434/0.6925, allocations: 11.94 kB / 0.5019 GB, free: 11.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004737/0.693, allocations: 11.94 kB / 0.5019 GB, free: 11.74 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.536e-05/0.6931, allocations: 15.98 kB / 0.502 GB, free: 11.73 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.644e-05/0.6931, allocations: 8 kB / 0.502 GB, free: 11.72 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001179/0.6943, allocations: 0.5275 MB / 0.5025 GB, free: 11.18 MB / 394.7 MB Notification: Performance of sort global known variables: time 7.22e-07/0.6944, allocations: 0 / 0.5025 GB, free: 11.18 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.00109/0.6955, allocations: 211.6 kB / 0.5027 GB, free: 10.97 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.002174/0.6977, allocations: 1.208 MB / 0.5039 GB, free: 9.738 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009312/0.6987, allocations: 271.6 kB / 0.5041 GB, free: 9.461 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.739e-06/0.6987, allocations: 0 / 0.5041 GB, free: 9.461 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000464/0.6992, allocations: 175.3 kB / 0.5043 GB, free: 9.277 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009497/0.7002, allocations: 120.7 kB / 0.5044 GB, free: 9.156 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003468/0.7037, allocations: 1.031 MB / 0.5054 GB, free: 8.078 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008125/0.7045, allocations: 0.9607 MB / 0.5063 GB, free: 7.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006245/0.7052, allocations: 323.3 kB / 0.5067 GB, free: 6.773 MB / 394.7 MB Notification: Performance of SimCode: time 3.897e-06/0.7052, allocations: 0 / 0.5067 GB, free: 6.773 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.106/3.811, allocations: 17.15 MB / 0.5234 GB, free: 5.602 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat does not exist to compare? outputFormat=mat