Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001409/0.001409, allocations: 180.8 kB / 16.38 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.513/1.513, allocations: 223.2 MB / 240.3 MB, free: 11.89 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001092/0.001092, allocations: 93.56 kB / 291.5 MB, free: 10.93 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002773, allocations: 12 kB / 351.2 MB, free: 15.23 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2738, allocations: 50.4 MB / 401.6 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1135/0.3874, allocations: 88.38 MB / 490 MB, free: 8.078 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003317/0.3878, allocations: 75.97 kB / 490 MB, free: 8.004 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3192/0.7069, allocations: 38.3 MB / 0.5159 GB, free: 89.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.978e-06/0.707, allocations: 4 kB / 0.516 GB, free: 89.81 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.173e-05/0.707, allocations: 19.59 kB / 0.516 GB, free: 89.81 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.002201/0.7092, allocations: 1.402 MB / 0.5173 GB, free: 88.85 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.72e-05/0.7093, allocations: 7.375 kB / 0.5173 GB, free: 88.85 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.847e-05/0.7094, allocations: 62.53 kB / 0.5174 GB, free: 88.81 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001302/0.7095, allocations: 125.5 kB / 0.5175 GB, free: 88.75 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009539/0.7105, allocations: 0.7115 MB / 0.5182 GB, free: 88.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.244e-05/0.7105, allocations: 18.56 kB / 0.5182 GB, free: 88.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.831e-05/0.7106, allocations: 34.92 kB / 0.5183 GB, free: 88.4 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005242/0.7111, allocations: 310.2 kB / 0.5186 GB, free: 88.27 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.7112, allocations: 7.906 kB / 0.5186 GB, free: 88.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.231e-05/0.7112, allocations: 8 kB / 0.5186 GB, free: 88.26 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.7112, allocations: 7.25 kB / 0.5186 GB, free: 88.26 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003754/0.7116, allocations: 228.3 kB / 0.5188 GB, free: 88.19 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00171/0.7133, allocations: 1.182 MB / 0.52 GB, free: 87.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003664/0.7137, allocations: 239.5 kB / 0.5202 GB, free: 87.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001136/0.7148, allocations: 1.279 MB / 0.5214 GB, free: 86.07 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.7149, allocations: 34.16 kB / 0.5215 GB, free: 86.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 2.504e-06/0.7149, allocations: 3.938 kB / 0.5215 GB, free: 86.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=39): time 0.002956/0.7179, allocations: 2.064 MB / 0.5235 GB, free: 84.5 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.337e-05/0.7179, allocations: 112 kB / 0.5236 GB, free: 84.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007489/0.7187, allocations: 0.7819 MB / 0.5244 GB, free: 84.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.051e-05/0.7187, allocations: 29.7 kB / 0.5244 GB, free: 84.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002068/0.7189, allocations: 357 kB / 0.5247 GB, free: 83.73 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.629e-05/0.719, allocations: 133.5 kB / 0.5249 GB, free: 83.62 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.048e-05/0.719, allocations: 4 kB / 0.5249 GB, free: 83.62 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.873e-05/0.7191, allocations: 317 kB / 0.5252 GB, free: 83.31 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002013/0.7193, allocations: 124.7 kB / 0.5253 GB, free: 83.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002198/0.7195, allocations: 155.8 kB / 0.5254 GB, free: 83.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002418/0.7198, allocations: 179.6 kB / 0.5256 GB, free: 83.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.7198, allocations: 4.031 kB / 0.5256 GB, free: 83.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008068/0.7206, allocations: 0.5247 MB / 0.5261 GB, free: 82.83 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.265e-05/0.7207, allocations: 35.86 kB / 0.5262 GB, free: 82.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.351e-05/0.7207, allocations: 17.97 kB / 0.5262 GB, free: 82.79 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002511/0.721, allocations: 68.78 kB / 0.5262 GB, free: 82.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002227/0.7212, allocations: 45.31 kB / 0.5263 GB, free: 82.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002047/0.7233, allocations: 3.001 MB / 0.5292 GB, free: 79.83 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003327/0.7236, allocations: 22.05 kB / 0.5292 GB, free: 79.82 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.051e-05/0.7237, allocations: 18.41 kB / 0.5292 GB, free: 79.82 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.0004427/0.7241, allocations: 249.3 kB / 0.5295 GB, free: 79.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001364/0.7243, allocations: 121.8 kB / 0.5296 GB, free: 79.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001285/0.7256, allocations: 0.688 MB / 0.5303 GB, free: 79.21 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.7256, allocations: 7.375 kB / 0.5303 GB, free: 79.21 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.7256, allocations: 7.891 kB / 0.5303 GB, free: 79.21 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.659e-06/0.7256, allocations: 0 / 0.5303 GB, free: 79.21 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000703/0.7263, allocations: 0.6063 MB / 0.5309 GB, free: 78.86 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-05/0.7263, allocations: 14.09 kB / 0.5309 GB, free: 78.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001764/0.7265, allocations: 35.64 kB / 0.5309 GB, free: 78.86 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001772/0.7267, allocations: 77.34 kB / 0.531 GB, free: 78.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.167e-05/0.7267, allocations: 11.78 kB / 0.531 GB, free: 78.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001558/0.7283, allocations: 3.011 MB / 0.534 GB, free: 75.85 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.7283, allocations: 0 / 0.534 GB, free: 75.85 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001115/0.7295, allocations: 0.8549 MB / 0.5348 GB, free: 75.02 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000363/0.7298, allocations: 289.1 kB / 0.5351 GB, free: 74.77 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.549e-05/0.7299, allocations: 8 kB / 0.5351 GB, free: 74.76 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/0.7302, allocations: 12 kB / 0.5351 GB, free: 74.75 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.211e-05/0.7303, allocations: 35.12 kB / 0.5351 GB, free: 74.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.344e-05/0.7303, allocations: 15.61 kB / 0.5351 GB, free: 74.71 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005908/0.7309, allocations: 0.619 MB / 0.5357 GB, free: 74.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7309, allocations: 0 / 0.5357 GB, free: 74.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009264/0.7319, allocations: 255.1 kB / 0.536 GB, free: 73.95 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.001884/0.7337, allocations: 1.698 MB / 0.5376 GB, free: 72.35 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0009944/0.7348, allocations: 0.7577 MB / 0.5384 GB, free: 71.58 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.7348, allocations: 4 kB / 0.5384 GB, free: 71.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004977/0.7353, allocations: 0.6218 MB / 0.539 GB, free: 70.93 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004825/0.7358, allocations: 92.73 kB / 0.5391 GB, free: 70.84 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005552/0.7413, allocations: 4.707 MB / 0.5437 GB, free: 66.45 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004007/0.7418, allocations: 1.021 MB / 0.5447 GB, free: 65.54 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002776/0.742, allocations: 74.2 kB / 0.5447 GB, free: 65.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002533/0.7423, allocations: 273.8 kB / 0.545 GB, free: 65.24 MB / 378.7 MB Notification: Performance of SimCode: time 1.333e-06/0.7423, allocations: 0 / 0.545 GB, free: 65.24 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02913/0.7715, allocations: 16.9 MB / 0.5615 GB, free: 48.59 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001747/0.7717, allocations: 199.8 kB / 0.5617 GB, free: 48.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.499/3.27, allocations: 0 / 0.5617 GB, free: 48.34 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)