Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_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.0009563/0.0009563, allocations: 179.8 kB / 17.01 MB, free: 5.121 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.209/1.209, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0008052/0.0008053, allocations: 92.2 kB / 271.5 MB, free: 8.367 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000213/0.0002129, allocations: 7.984 kB / 328.3 MB, free: 15.45 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2052/0.2055, allocations: 47.57 MB / 375.9 MB, free: 45.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09556/0.3011, allocations: 86.38 MB / 462.3 MB, free: 10.26 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002561/0.3014, allocations: 79.94 kB / 462.4 MB, free: 10.18 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08987/0.3913, allocations: 36.6 MB / 499 MB, free: 5.5 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.343e-06/0.3913, allocations: 0 / 499 MB, free: 5.5 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.68e-05/0.3913, allocations: 16 kB / 499 MB, free: 5.484 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.00192/0.3933, allocations: 1.402 MB / 0.4886 GB, free: 4.023 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.937e-05/0.3933, allocations: 11.97 kB / 0.4887 GB, free: 4.012 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.936e-05/0.3934, allocations: 58.55 kB / 0.4887 GB, free: 3.945 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001273/0.3935, allocations: 126.5 kB / 0.4888 GB, free: 3.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009734/0.3945, allocations: 0.7227 MB / 0.4895 GB, free: 3.047 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.482e-05/0.3945, allocations: 20.38 kB / 0.4896 GB, free: 3.027 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.07e-05/0.3946, allocations: 20 kB / 0.4896 GB, free: 3.008 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004721/0.3951, allocations: 310.6 kB / 0.4899 GB, free: 2.691 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.248e-06/0.3951, allocations: 0 / 0.4899 GB, free: 2.691 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.226e-05/0.3951, allocations: 16 kB / 0.4899 GB, free: 2.676 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.3951, allocations: 4 kB / 0.4899 GB, free: 2.672 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003627/0.3955, allocations: 225.8 kB / 0.4901 GB, free: 2.453 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001618/0.3971, allocations: 1.189 MB / 0.4913 GB, free: 1.211 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003428/0.3975, allocations: 230.5 kB / 0.4915 GB, free: 0.9766 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1496/0.5471, allocations: 1.277 MB / 0.4927 GB, free: 92.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.142e-05/0.5471, allocations: 37.84 kB / 0.4928 GB, free: 92.87 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 2.565e-06/0.5471, allocations: 0.5625 kB / 0.4928 GB, free: 92.87 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.004319/0.5515, allocations: 2.069 MB / 0.4948 GB, free: 91.68 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/0.5516, allocations: 118.3 kB / 0.4949 GB, free: 91.55 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001145/0.5527, allocations: 0.7772 MB / 0.4957 GB, free: 91.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.553e-05/0.5528, allocations: 33.95 kB / 0.4957 GB, free: 91.38 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002584/0.5531, allocations: 356.5 kB / 0.496 GB, free: 91.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001037/0.5532, allocations: 137.3 kB / 0.4962 GB, free: 91.22 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.105e-05/0.5532, allocations: 5.156 kB / 0.4962 GB, free: 91.22 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.349e-05/0.5533, allocations: 321.7 kB / 0.4965 GB, free: 90.91 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002386/0.5535, allocations: 123.1 kB / 0.4966 GB, free: 90.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002457/0.5538, allocations: 156 kB / 0.4967 GB, free: 90.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000305/0.5541, allocations: 174.7 kB / 0.4969 GB, free: 90.85 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.5541, allocations: 0 / 0.4969 GB, free: 90.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008867/0.555, allocations: 0.5247 MB / 0.4974 GB, free: 90.72 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.135e-05/0.5551, allocations: 39.22 kB / 0.4975 GB, free: 90.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.2e-05/0.5551, allocations: 15.16 kB / 0.4975 GB, free: 90.69 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002243/0.5553, allocations: 68.92 kB / 0.4975 GB, free: 90.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002165/0.5556, allocations: 44.58 kB / 0.4976 GB, free: 90.67 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00179/0.5574, allocations: 3.004 MB / 0.5005 GB, free: 88.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003257/0.5577, allocations: 15.62 kB / 0.5005 GB, free: 88.01 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.64e-05/0.5577, allocations: 24.44 kB / 0.5006 GB, free: 88.01 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.0003015/0.5581, allocations: 255.2 kB / 0.5008 GB, free: 87.86 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.5582, allocations: 115.9 kB / 0.5009 GB, free: 87.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001282/0.5595, allocations: 0.6847 MB / 0.5016 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.5595, allocations: 3.531 kB / 0.5016 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.5595, allocations: 1.25 kB / 0.5016 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.037e-06/0.5595, allocations: 3.5 kB / 0.5016 GB, free: 87.68 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000683/0.5602, allocations: 0.6066 MB / 0.5022 GB, free: 87.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.288e-05/0.5602, allocations: 11.66 kB / 0.5022 GB, free: 87.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.5604, allocations: 40.39 kB / 0.5022 GB, free: 87.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001719/0.5606, allocations: 76.44 kB / 0.5023 GB, free: 87.47 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.729e-05/0.5606, allocations: 15.69 kB / 0.5023 GB, free: 87.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00169/0.5623, allocations: 3.009 MB / 0.5053 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.5624, allocations: 0 / 0.5053 GB, free: 84.82 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001332/0.5637, allocations: 0.8597 MB / 0.5061 GB, free: 84.56 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004101/0.5641, allocations: 291.6 kB / 0.5064 GB, free: 84.4 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.047e-05/0.5642, allocations: 7.562 kB / 0.5064 GB, free: 84.4 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002623/0.5645, allocations: 13.25 kB / 0.5064 GB, free: 84.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.574e-05/0.5646, allocations: 31.09 kB / 0.5064 GB, free: 84.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.97e-05/0.5646, allocations: 17.86 kB / 0.5064 GB, free: 84.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007703/0.5654, allocations: 0.6209 MB / 0.507 GB, free: 84.29 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.5654, allocations: 0 / 0.507 GB, free: 84.29 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001195/0.5666, allocations: 250.9 kB / 0.5073 GB, free: 84.29 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.001906/0.5685, allocations: 1.691 MB / 0.5089 GB, free: 83.51 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008613/0.5694, allocations: 0.7589 MB / 0.5097 GB, free: 83.09 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.5694, allocations: 0 / 0.5097 GB, free: 83.09 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000506/0.5699, allocations: 0.624 MB / 0.5103 GB, free: 82.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003834/0.5703, allocations: 89.62 kB / 0.5104 GB, free: 82.67 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005472/0.5758, allocations: 4.702 MB / 0.515 GB, free: 80.82 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003778/0.5762, allocations: 1.019 MB / 0.516 GB, free: 80.12 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002838/0.5765, allocations: 67.33 kB / 0.516 GB, free: 80.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.5768, allocations: 278.2 kB / 0.5163 GB, free: 80.11 MB / 378.7 MB Notification: Performance of SimCode: time 6.332e-06/0.5768, allocations: 0 / 0.5163 GB, free: 80.11 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02893/0.6058, allocations: 16.91 MB / 0.5328 GB, free: 77.28 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001515/0.606, allocations: 192.2 kB / 0.533 GB, free: 77.04 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.423/3.029, allocations: 0 / 0.533 GB, free: 77.04 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)