Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001012/0.001012, allocations: 103.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001039/0.001039, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.303/1.303, allocations: 227.4 MB / 246.3 MB, free: 9.051 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001207/0.001207, allocations: 56.59 kB / 306.3 MB, free: 0.7422 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08861/0.08984, allocations: 50.54 MB / 356.9 MB, free: 14.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005584/0.09546, allocations: 5.198 MB / 362.1 MB, free: 8.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007761/0.1032, allocations: 6.82 MB / 368.9 MB, free: 2.137 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007101/0.104, allocations: 43.69 kB / 368.9 MB, free: 2.094 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001313/0.1053, allocations: 449.6 kB / 369.4 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001823/0.1072, allocations: 0.6678 MB / 370 MB, free: 0.9805 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008358/0.108, allocations: 335 kB / 370.4 MB, free: 0.6523 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1498/0.2578, allocations: 1.991 MB / 372.4 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002808/0.2581, allocations: 155.7 kB / 372.5 MB, free: 9.723 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004724/0.2586, allocations: 340.8 kB / 372.9 MB, free: 9.695 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000299/0.2589, allocations: 329.6 kB / 373.2 MB, free: 9.562 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.143e-05/0.259, allocations: 24.03 kB / 373.2 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001122/0.2601, allocations: 495 kB / 373.7 MB, free: 9.559 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.679e-05/0.2602, allocations: 97.06 kB / 373.8 MB, free: 9.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003303/0.2606, allocations: 439.6 kB / 374.2 MB, free: 9.332 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001194/0.2618, allocations: 1.251 MB / 375.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.2618, allocations: 4.438 kB / 375.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.2618, allocations: 0 / 375.5 MB, free: 9.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.124e-05/0.2618, allocations: 0.6562 kB / 375.5 MB, free: 9.109 MB / 302.1 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.001621/0.2634, allocations: 1.442 MB / 376.9 MB, free: 8.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.684e-05/0.2635, allocations: 10.28 kB / 376.9 MB, free: 8.16 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.503e-05/0.2635, allocations: 61.73 kB / 377 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002745/0.2638, allocations: 136.7 kB / 377.1 MB, free: 8.055 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000928/0.2648, allocations: 0.861 MB / 378 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.742e-05/0.2648, allocations: 18.02 kB / 378 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.15e-05/0.2648, allocations: 21.69 kB / 378 MB, free: 7.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000503/0.2654, allocations: 307.3 kB / 378.3 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.2654, allocations: 0.6562 kB / 378.3 MB, free: 7.605 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.181e-05/0.2654, allocations: 13.28 kB / 378.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.546e-06/0.2654, allocations: 8.406 kB / 378.3 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003787/0.2658, allocations: 227.2 kB / 378.6 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001561/0.2674, allocations: 1.124 MB / 379.7 MB, free: 7.25 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003651/0.2678, allocations: 246.2 kB / 379.9 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004305/0.2682, allocations: 298.2 kB / 380.2 MB, free: 7.211 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007669/0.269, allocations: 0.8347 MB / 381 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.897e-05/0.269, allocations: 35.81 kB / 381.1 MB, free: 6.32 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.743e-06/0.269, allocations: 0 / 381.1 MB, free: 6.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002576/0.2716, allocations: 1.557 MB / 382.6 MB, free: 5.469 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.13e-05/0.2716, allocations: 113.3 kB / 382.7 MB, free: 5.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000956/0.2726, allocations: 0.9325 MB / 383.7 MB, free: 4.969 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.849e-05/0.2726, allocations: 30.73 kB / 383.7 MB, free: 4.934 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002291/0.2729, allocations: 365.4 kB / 384.1 MB, free: 4.645 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.257e-05/0.273, allocations: 132.2 kB / 384.2 MB, free: 4.547 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001637/0.2731, allocations: 118.3 kB / 384.3 MB, free: 4.48 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.525e-05/0.2732, allocations: 322.3 kB / 384.6 MB, free: 4.168 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002465/0.2735, allocations: 125.7 kB / 384.7 MB, free: 4.117 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002735/0.2737, allocations: 159.9 kB / 384.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001346/0.2751, allocations: 0.7258 MB / 385.6 MB, free: 3.672 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2751, allocations: 4.906 kB / 385.6 MB, free: 3.668 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008335/0.2759, allocations: 0.5562 MB / 386.2 MB, free: 3.391 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.284e-05/0.276, allocations: 42.38 kB / 386.2 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.873e-05/0.276, allocations: 13.2 kB / 386.2 MB, free: 3.355 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002131/0.2762, allocations: 75.22 kB / 386.3 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002164/0.2765, allocations: 45.11 kB / 386.4 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001642/0.2781, allocations: 2.988 MB / 389.3 MB, free: 424 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002754/0.2784, allocations: 12.22 kB / 389.4 MB, free: 420 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.71e-05/0.2785, allocations: 20.36 kB / 389.4 MB, free: 416 kB / 302.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003067/0.2788, allocations: 260.6 kB / 389.6 MB, free: 204 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001231/0.2789, allocations: 123.2 kB / 389.8 MB, free: 140 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001431/0.2803, allocations: 0.6775 MB / 390.4 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.2804, allocations: 4.25 kB / 390.4 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.2804, allocations: 6.828 kB / 390.4 MB, free: 15.88 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.578e-06/0.2804, allocations: 5.312 kB / 390.4 MB, free: 15.87 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007888/0.2812, allocations: 0.6145 MB / 391.1 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.486e-05/0.2812, allocations: 15.22 kB / 391.1 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001823/0.2814, allocations: 35.27 kB / 391.1 MB, free: 15.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001832/0.2816, allocations: 69.97 kB / 391.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.728e-05/0.2816, allocations: 15.23 kB / 391.2 MB, free: 15.48 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002279/0.2839, allocations: 2.999 MB / 394.2 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2839, allocations: 0 / 394.2 MB, free: 12.57 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001335/0.2853, allocations: 0.8559 MB / 395 MB, free: 12.1 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000341/0.2856, allocations: 278.2 kB / 395.3 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001059/0.2858, allocations: 14.84 kB / 395.3 MB, free: 11.9 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002732/0.286, allocations: 17.53 kB / 395.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.508e-05/0.2861, allocations: 30.81 kB / 395.4 MB, free: 11.89 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.471e-05/0.2862, allocations: 18.72 kB / 395.4 MB, free: 11.88 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007388/0.2869, allocations: 0.6282 MB / 396 MB, free: 11.62 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2869, allocations: 0 / 396 MB, free: 11.62 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008688/0.2878, allocations: 224.5 kB / 396.2 MB, free: 11.58 MB / 318.1 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 (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,4,100.0%), (1,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001964/0.2898, allocations: 1.593 MB / 397.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001085/0.2909, allocations: 0.783 MB / 398.6 MB, free: 9.984 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.2909, allocations: 4 kB / 398.6 MB, free: 9.98 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007292/0.2916, allocations: 0.621 MB / 399.3 MB, free: 9.469 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006217/0.2923, allocations: 104.8 kB / 399.4 MB, free: 9.414 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009007/0.3013, allocations: 6.282 MB / 405.6 MB, free: 5.762 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005768/0.3019, allocations: 1.001 MB / 406.6 MB, free: 5.031 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.00036/0.3023, allocations: 94.55 kB / 406.7 MB, free: 4.98 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003024/0.3026, allocations: 285.5 kB / 407 MB, free: 4.738 MB / 318.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3026, allocations: 0 / 407 MB, free: 4.738 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7316/1.034, allocations: 16.62 MB / 423.6 MB, free: 4.676 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002544/1.034, allocations: 232.8 kB / 423.9 MB, free: 4.406 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.319/3.353, allocations: 4.062 kB / 423.9 MB, free: 4.402 MB / 334.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)