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.001575/0.001575, allocations: 183.9 kB / 16.4 MB, free: 5.75 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.169/2.169, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001141/0.001141, allocations: 89.56 kB / 270.9 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005645/0.0005647, allocations: 8 kB / 327 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4528/0.4534, allocations: 47.57 MB / 374.6 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.007945/0.4614, allocations: 4.207 MB / 378.8 MB, free: 42.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01393/0.4754, allocations: 5.67 MB / 384.5 MB, free: 37.64 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00121/0.4766, allocations: 37.81 kB / 384.5 MB, free: 37.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002582/0.4793, allocations: 409.7 kB / 384.9 MB, free: 37.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004693/0.484, allocations: 0.7059 MB / 385.6 MB, free: 36.78 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002161/0.4862, allocations: 302.1 kB / 385.9 MB, free: 36.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.008201/0.4944, allocations: 1.826 MB / 387.8 MB, free: 35.5 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006212/0.4951, allocations: 146.3 kB / 387.9 MB, free: 35.43 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008247/0.496, allocations: 299 kB / 388.2 MB, free: 35.22 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005379/0.4965, allocations: 306 kB / 388.5 MB, free: 34.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000103/0.4967, allocations: 16 kB / 388.5 MB, free: 34.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001888/0.4986, allocations: 439.5 kB / 388.9 MB, free: 34.47 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001662/0.4987, allocations: 87.33 kB / 389 MB, free: 34.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003397/0.4991, allocations: 217.1 kB / 389.2 MB, free: 34.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001842/0.501, allocations: 0.9037 MB / 390.1 MB, free: 33.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.501, allocations: 0 / 390.1 MB, free: 33.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.501, allocations: 0 / 390.1 MB, free: 33.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.501, allocations: 0 / 390.1 MB, free: 33.26 MB / 298.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.002941/0.504, allocations: 1.297 MB / 391.4 MB, free: 31.9 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.24e-05/0.5041, allocations: 12.03 kB / 391.4 MB, free: 31.89 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001154/0.5042, allocations: 62.53 kB / 391.5 MB, free: 31.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002291/0.5044, allocations: 126.4 kB / 391.6 MB, free: 31.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002041/0.5065, allocations: 0.8046 MB / 392.4 MB, free: 30.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.798e-05/0.5065, allocations: 12.44 kB / 392.4 MB, free: 30.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001061/0.5067, allocations: 28 kB / 392.5 MB, free: 30.8 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009889/0.5077, allocations: 310.6 kB / 392.8 MB, free: 30.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.903e-05/0.5077, allocations: 0 / 392.8 MB, free: 30.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.971e-05/0.5078, allocations: 4 kB / 392.8 MB, free: 30.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.452e-05/0.5078, allocations: 8 kB / 392.8 MB, free: 30.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008165/0.5086, allocations: 229.7 kB / 393 MB, free: 30.25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003128/0.5118, allocations: 1.15 MB / 394.2 MB, free: 29.05 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007558/0.5126, allocations: 250.7 kB / 394.4 MB, free: 28.8 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001394/0.514, allocations: 0.7594 MB / 395.2 MB, free: 27.9 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.514, allocations: 34.56 kB / 395.2 MB, free: 27.86 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 3.887e-06/0.5141, allocations: 0 / 395.2 MB, free: 27.86 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.005728/0.5198, allocations: 1.98 MB / 397.2 MB, free: 25.68 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.785e-05/0.5199, allocations: 110.8 kB / 397.3 MB, free: 25.55 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001817/0.5217, allocations: 0.9222 MB / 398.2 MB, free: 24.62 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.785e-05/0.5218, allocations: 29.7 kB / 398.2 MB, free: 24.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000345/0.5222, allocations: 360.1 kB / 398.6 MB, free: 24.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001535/0.5223, allocations: 130 kB / 398.7 MB, free: 24.11 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.634e-05/0.5224, allocations: 8 kB / 398.7 MB, free: 24.1 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.334e-05/0.5225, allocations: 326.8 kB / 399 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005262/0.523, allocations: 120.6 kB / 399.2 MB, free: 23.65 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00054/0.5236, allocations: 167.8 kB / 399.3 MB, free: 23.48 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006063/0.5242, allocations: 181.6 kB / 399.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5242, allocations: 0 / 399.5 MB, free: 23.3 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001718/0.526, allocations: 490.1 kB / 400 MB, free: 22.8 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.946e-05/0.5261, allocations: 42.78 kB / 400 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.033e-05/0.5261, allocations: 15.98 kB / 400 MB, free: 22.74 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004223/0.5266, allocations: 73.66 kB / 400.1 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005109/0.5271, allocations: 47.97 kB / 400.2 MB, free: 22.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00337/0.5305, allocations: 2.996 MB / 403.2 MB, free: 19.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008195/0.5313, allocations: 24.16 kB / 403.2 MB, free: 19.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.979e-05/0.5315, allocations: 19.98 kB / 403.2 MB, free: 19.3 MB / 298.7 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real 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 (29): * Single equations (assignments): 22 * 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.0006901/0.5322, allocations: 264.3 kB / 403.5 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002671/0.5324, allocations: 118.5 kB / 403.6 MB, free: 18.91 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002768/0.5352, allocations: 0.6843 MB / 404.3 MB, free: 18.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.176e-05/0.5353, allocations: 7.938 kB / 404.3 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.5353, allocations: 0 / 404.3 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.5353, allocations: 0 / 404.3 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001345/0.5367, allocations: 0.616 MB / 404.9 MB, free: 17.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.981e-05/0.5367, allocations: 19.95 kB / 404.9 MB, free: 17.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004178/0.5372, allocations: 35.97 kB / 404.9 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003887/0.5376, allocations: 73.61 kB / 405 MB, free: 17.4 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.102e-05/0.5377, allocations: 12 kB / 405 MB, free: 17.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003359/0.541, allocations: 3.02 MB / 408 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.5411, allocations: 0 / 408 MB, free: 14.1 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002642/0.5437, allocations: 0.8589 MB / 408.9 MB, free: 13.21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007453/0.5445, allocations: 275.5 kB / 409.2 MB, free: 12.93 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002238/0.5448, allocations: 12 kB / 409.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006854/0.5455, allocations: 8 kB / 409.2 MB, free: 12.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001845/0.5457, allocations: 39.84 kB / 409.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.189e-05/0.5458, allocations: 23.98 kB / 409.3 MB, free: 12.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001426/0.5472, allocations: 0.6139 MB / 409.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 4.91e-07/0.5472, allocations: 4 kB / 409.9 MB, free: 12.22 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001678/0.5489, allocations: 219.9 kB / 410.1 MB, free: 12.01 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * 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.003612/0.5525, allocations: 1.616 MB / 411.7 MB, free: 10.35 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.5545, allocations: 0.7889 MB / 412.5 MB, free: 9.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.5545, allocations: 0 / 412.5 MB, free: 9.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001168/0.5557, allocations: 0.6178 MB / 413.1 MB, free: 8.82 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009229/0.5567, allocations: 92.75 kB / 413.2 MB, free: 8.73 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005339/0.562, allocations: 2.496 MB / 415.7 MB, free: 6.164 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006651/0.5627, allocations: 1.019 MB / 416.7 MB, free: 5.117 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007571/0.5635, allocations: 283.3 kB / 417 MB, free: 4.84 MB / 298.7 MB Notification: Performance of SimCode: time 1.363e-06/0.5635, allocations: 4 kB / 417 MB, free: 4.836 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.097/3.661, allocations: 19.33 MB / 436.3 MB, free: 1.492 MB / 314.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)