Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.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.Graetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Graetz",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.00154/0.001539, allocations: 182.1 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.135/2.135, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.00106/0.00106, allocations: 86.66 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.823e-05/2.833e-05, allocations: 4 kB / 321.6 MB, free: 17.75 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1012, allocations: 47.57 MB / 369.2 MB, free: 2.113 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4695/0.5708, allocations: 86.28 MB / 455.5 MB, free: 7.031 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/0.5711, allocations: 72.34 kB / 455.5 MB, free: 6.996 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1523/0.7235, allocations: 36.5 MB / 492 MB, free: 4.207 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.7235, allocations: 0 / 492 MB, free: 4.207 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.72e-05/0.7235, allocations: 12 kB / 492.1 MB, free: 4.195 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002571/0.7261, allocations: 1.182 MB / 493.2 MB, free: 2.961 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.25e-05/0.7262, allocations: 8.031 kB / 493.2 MB, free: 2.953 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.822e-05/0.7263, allocations: 58.55 kB / 493.3 MB, free: 2.887 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002466/0.7266, allocations: 130.4 kB / 493.4 MB, free: 2.758 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001587/0.7282, allocations: 0.7266 MB / 494.2 MB, free: 1.98 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.799e-05/0.7282, allocations: 20.44 kB / 494.2 MB, free: 1.961 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.808e-05/0.7283, allocations: 31.84 kB / 494.2 MB, free: 1.93 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007865/0.7291, allocations: 290.7 kB / 494.5 MB, free: 1.629 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.425e-05/0.7291, allocations: 3.938 kB / 494.5 MB, free: 1.625 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.837e-05/0.7292, allocations: 8 kB / 494.5 MB, free: 1.617 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.278e-05/0.7292, allocations: 4 kB / 494.5 MB, free: 1.613 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005803/0.7298, allocations: 209.8 kB / 494.7 MB, free: 1.41 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002996/0.7328, allocations: 1.181 MB / 495.9 MB, free: 180 kB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005987/0.7335, allocations: 230.6 kB / 496.1 MB, free: 15.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00075/0.7342, allocations: 288.8 kB / 496.4 MB, free: 15.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002144/0.7364, allocations: 1.277 MB / 497.7 MB, free: 14.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.87e-05/0.7364, allocations: 34.81 kB / 497.7 MB, free: 14.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 3.717e-06/0.7365, allocations: 0 / 497.7 MB, free: 14.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.003467/0.7399, allocations: 1.258 MB / 499 MB, free: 12.74 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.3e-05/0.74, allocations: 114.8 kB / 499.1 MB, free: 12.6 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001469/0.7415, allocations: 0.7653 MB / 499.8 MB, free: 11.83 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.875e-05/0.7416, allocations: 33.7 kB / 499.9 MB, free: 11.79 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003689/0.742, allocations: 352.1 kB / 0.4885 GB, free: 11.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/0.7422, allocations: 130 kB / 0.4886 GB, free: 11.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.809e-05/0.7422, allocations: 4 kB / 0.4886 GB, free: 11.31 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.7424, allocations: 330.8 kB / 0.4889 GB, free: 10.98 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003237/0.7427, allocations: 104.3 kB / 0.489 GB, free: 10.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003664/0.7431, allocations: 146.9 kB / 0.4892 GB, free: 10.72 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004228/0.7435, allocations: 153.7 kB / 0.4893 GB, free: 10.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.7436, allocations: 0 / 0.4893 GB, free: 10.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001299/0.7449, allocations: 436.6 kB / 0.4897 GB, free: 10.12 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.435e-05/0.7449, allocations: 37.7 kB / 0.4898 GB, free: 10.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.117e-05/0.745, allocations: 15.98 kB / 0.4898 GB, free: 10.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003608/0.7454, allocations: 69.72 kB / 0.4899 GB, free: 9.984 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003841/0.7458, allocations: 43.91 kB / 0.4899 GB, free: 9.941 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003402/0.7492, allocations: 2.994 MB / 0.4928 GB, free: 6.676 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000662/0.7499, allocations: 19.97 kB / 0.4928 GB, free: 6.656 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.269e-05/0.75, allocations: 23.98 kB / 0.4929 GB, free: 6.633 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (25): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002184/0.7502, allocations: 154.6 kB / 0.493 GB, free: 6.469 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002044/0.7504, allocations: 118.6 kB / 0.4931 GB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002246/0.7527, allocations: 0.6495 MB / 0.4938 GB, free: 5.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.969e-06/0.7527, allocations: 4 kB / 0.4938 GB, free: 5.676 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.7527, allocations: 0 / 0.4938 GB, free: 5.676 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.468e-06/0.7527, allocations: 3.984 kB / 0.4938 GB, free: 5.672 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001228/0.754, allocations: 0.6082 MB / 0.4944 GB, free: 5.02 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.92e-05/0.754, allocations: 12 kB / 0.4944 GB, free: 5.008 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003457/0.7544, allocations: 43.97 kB / 0.4944 GB, free: 4.965 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003207/0.7547, allocations: 69.64 kB / 0.4945 GB, free: 4.891 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.523e-05/0.7548, allocations: 19.92 kB / 0.4945 GB, free: 4.871 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003302/0.7581, allocations: 2.994 MB / 0.4974 GB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.7582, allocations: 0 / 0.4974 GB, free: 1.609 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/0.7602, allocations: 0.8119 MB / 0.4982 GB, free: 0.7695 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006675/0.7609, allocations: 283.5 kB / 0.4985 GB, free: 484 kB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001534/0.761, allocations: 8 kB / 0.4985 GB, free: 476 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004915/0.7616, allocations: 12 kB / 0.4985 GB, free: 464 kB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001378/0.7617, allocations: 31.95 kB / 0.4985 GB, free: 432 kB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.011e-05/0.7618, allocations: 19.98 kB / 0.4986 GB, free: 412 kB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001223/0.763, allocations: 0.6118 MB / 0.4992 GB, free: 15.79 MB / 394.7 MB Notification: Performance of sort global known variables: time 4.51e-07/0.763, allocations: 0 / 0.4992 GB, free: 15.79 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001328/0.7644, allocations: 255.8 kB / 0.4994 GB, free: 15.54 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D3.n.v,D2.pin) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.003229/0.7676, allocations: 1.647 MB / 0.501 GB, free: 13.85 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.7692, allocations: 0.7219 MB / 0.5017 GB, free: 13.07 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.7692, allocations: 0 / 0.5017 GB, free: 13.07 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009657/0.7702, allocations: 0.605 MB / 0.5023 GB, free: 12.4 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007068/0.7709, allocations: 80.75 kB / 0.5024 GB, free: 12.32 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003534/0.7744, allocations: 1.315 MB / 0.5037 GB, free: 10.95 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007678/0.7752, allocations: 1.019 MB / 0.5047 GB, free: 9.902 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005014/0.7758, allocations: 271.3 kB / 0.5049 GB, free: 9.637 MB / 394.7 MB Notification: Performance of SimCode: time 1.282e-06/0.7758, allocations: 4 kB / 0.5049 GB, free: 9.633 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.976/3.752, allocations: 19.44 MB / 0.5239 GB, free: 6.172 MB / 410.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)