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.001557/0.001557, allocations: 185.7 kB / 16.41 MB, free: 5.723 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.938/1.938, allocations: 205.4 MB / 222.5 MB, free: 9.121 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.00116/0.00116, allocations: 93.73 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004009/0.000401, allocations: 8 kB / 327.1 MB, free: 124 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3276/0.3281, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1631/0.4913, allocations: 86.38 MB / 461 MB, free: 10.25 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002795/0.4916, allocations: 79.95 kB / 461.1 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1545/0.6461, allocations: 36.61 MB / 497.7 MB, free: 5.484 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.505e-06/0.6461, allocations: 0 / 497.7 MB, free: 5.484 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.641e-05/0.6462, allocations: 12 kB / 497.7 MB, free: 5.473 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.003411/0.6496, allocations: 1.402 MB / 499.1 MB, free: 4.012 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.6497, allocations: 8.031 kB / 499.1 MB, free: 4.004 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001575/0.6498, allocations: 62.55 kB / 499.2 MB, free: 3.934 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002141/0.65, allocations: 122.5 kB / 499.3 MB, free: 3.812 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001609/0.6517, allocations: 0.7343 MB / 0.4883 GB, free: 3.027 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.6517, allocations: 16.44 kB / 0.4883 GB, free: 3.012 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.587e-05/0.6518, allocations: 24 kB / 0.4883 GB, free: 2.988 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008155/0.6526, allocations: 298.6 kB / 0.4886 GB, free: 2.684 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.5e-05/0.6527, allocations: 4 kB / 0.4886 GB, free: 2.68 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.543e-05/0.6527, allocations: 4 kB / 0.4886 GB, free: 2.676 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.6528, allocations: 15.92 kB / 0.4887 GB, free: 2.66 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006645/0.6534, allocations: 225.8 kB / 0.4889 GB, free: 2.441 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002826/0.6563, allocations: 1.181 MB / 0.49 GB, free: 1.207 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006113/0.6569, allocations: 242.5 kB / 0.4903 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2643/0.9212, allocations: 1.265 MB / 0.4915 GB, free: 92.8 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.363e-05/0.9213, allocations: 35.53 kB / 0.4915 GB, free: 92.76 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 3.056e-06/0.9213, allocations: 3.625 kB / 0.4915 GB, free: 92.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.005858/0.9272, allocations: 2.073 MB / 0.4936 GB, free: 91.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.489e-05/0.9273, allocations: 116.6 kB / 0.4937 GB, free: 91.44 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00138/0.9287, allocations: 0.7782 MB / 0.4944 GB, free: 91.3 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.547e-05/0.9288, allocations: 30.33 kB / 0.4945 GB, free: 91.27 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000279/0.9291, allocations: 351.5 kB / 0.4948 GB, free: 91.11 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001405/0.9292, allocations: 134.4 kB / 0.4949 GB, free: 91.04 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.943e-05/0.9293, allocations: 6.672 kB / 0.4949 GB, free: 91.04 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.789e-05/0.9294, allocations: 324.1 kB / 0.4952 GB, free: 90.73 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004129/0.9298, allocations: 121.4 kB / 0.4953 GB, free: 90.73 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004117/0.9302, allocations: 165.7 kB / 0.4955 GB, free: 90.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004529/0.9307, allocations: 164.6 kB / 0.4957 GB, free: 90.67 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.9307, allocations: 0 / 0.4957 GB, free: 90.67 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001351/0.9321, allocations: 465.5 kB / 0.4961 GB, free: 90.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.244e-05/0.9321, allocations: 40.45 kB / 0.4961 GB, free: 90.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.762e-05/0.9322, allocations: 15.09 kB / 0.4962 GB, free: 90.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003459/0.9325, allocations: 67.3 kB / 0.4962 GB, free: 90.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003766/0.9329, allocations: 40.05 kB / 0.4963 GB, free: 90.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002661/0.9356, allocations: 3.019 MB / 0.4992 GB, free: 87.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007353/0.9364, allocations: 11.72 kB / 0.4992 GB, free: 87.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.795e-05/0.9365, allocations: 19.16 kB / 0.4992 GB, free: 87.87 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 () * Number of clocked 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.000534/0.937, allocations: 256.1 kB / 0.4995 GB, free: 87.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001984/0.9372, allocations: 117.4 kB / 0.4996 GB, free: 87.66 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002216/0.9395, allocations: 0.6837 MB / 0.5003 GB, free: 87.54 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.041e-05/0.9395, allocations: 2.656 kB / 0.5003 GB, free: 87.54 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.024e-06/0.9395, allocations: 2.594 kB / 0.5003 GB, free: 87.54 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.374e-06/0.9396, allocations: 3.516 kB / 0.5003 GB, free: 87.54 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.9408, allocations: 0.6086 MB / 0.5009 GB, free: 87.35 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.189e-05/0.9409, allocations: 14.88 kB / 0.5009 GB, free: 87.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003588/0.9413, allocations: 34.91 kB / 0.5009 GB, free: 87.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003461/0.9416, allocations: 73.59 kB / 0.501 GB, free: 87.33 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.895e-05/0.9417, allocations: 18.47 kB / 0.501 GB, free: 87.33 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002805/0.9445, allocations: 3.01 MB / 0.5039 GB, free: 84.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.9446, allocations: 1.562 kB / 0.5039 GB, free: 84.67 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002268/0.9469, allocations: 0.8531 MB / 0.5048 GB, free: 84.41 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007166/0.9476, allocations: 290.6 kB / 0.5051 GB, free: 84.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001772/0.9478, allocations: 9.531 kB / 0.5051 GB, free: 84.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004865/0.9483, allocations: 13.5 kB / 0.5051 GB, free: 84.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001462/0.9485, allocations: 31.12 kB / 0.5051 GB, free: 84.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.411e-05/0.9485, allocations: 16.88 kB / 0.5051 GB, free: 84.26 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.001208/0.9498, allocations: 0.6239 MB / 0.5057 GB, free: 84.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.9498, allocations: 0 / 0.5057 GB, free: 84.14 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001568/0.9514, allocations: 250.5 kB / 0.506 GB, free: 84.14 MB / 378.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 () * Number of clocked 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.003329/0.9547, allocations: 1.69 MB / 0.5076 GB, free: 83.36 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001531/0.9563, allocations: 0.7609 MB / 0.5084 GB, free: 82.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.079e-06/0.9563, allocations: 0 / 0.5084 GB, free: 82.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008663/0.9572, allocations: 0.6192 MB / 0.509 GB, free: 82.54 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000735/0.958, allocations: 88.72 kB / 0.509 GB, free: 82.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009533/0.9675, allocations: 4.747 MB / 0.5137 GB, free: 80.64 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005207/0.9681, allocations: 1.019 MB / 0.5147 GB, free: 79.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004622/0.9686, allocations: 273.4 kB / 0.5149 GB, free: 79.93 MB / 378.7 MB Notification: Performance of SimCode: time 1.392e-06/0.9686, allocations: 0 / 0.5149 GB, free: 79.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.832/3.801, allocations: 19.59 MB / 0.5341 GB, free: 75.04 MB / 378.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)