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.001074/0.001074, allocations: 117.7 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001089/0.001089, allocations: 204.6 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.331/1.331, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 55.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2885/0.2897, allocations: 50.55 MB / 408.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.005757/0.2955, allocations: 5.201 MB / 414 MB, free: 12.3 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008295/0.3038, allocations: 6.656 MB / 420.6 MB, free: 5.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001012/0.3049, allocations: 47.69 kB / 420.7 MB, free: 5.578 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001494/0.3064, allocations: 0.5007 MB / 421.2 MB, free: 5.074 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002881/0.3093, allocations: 0.8146 MB / 422 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001442/0.3108, allocations: 442.4 kB / 422.4 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003154/0.314, allocations: 2.044 MB / 424.4 MB, free: 1.77 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003209/0.3143, allocations: 163 kB / 424.6 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005754/0.3149, allocations: 386.2 kB / 425 MB, free: 1.215 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003446/0.3152, allocations: 341.6 kB / 425.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.436e-05/0.3153, allocations: 28 kB / 425.3 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.3163, allocations: 0.4917 MB / 425.8 MB, free: 368 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.478e-05/0.3164, allocations: 111.2 kB / 425.9 MB, free: 256 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003481/0.3168, allocations: 449 kB / 426.4 MB, free: 15.8 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001293/0.3181, allocations: 1.273 MB / 427.7 MB, free: 14.53 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.3181, allocations: 7.922 kB / 427.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.3181, allocations: 4 kB / 427.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.202e-05/0.3181, allocations: 0 / 427.7 MB, free: 14.52 MB / 350.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.001673/0.3198, allocations: 1.448 MB / 429.1 MB, free: 13.01 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.635e-05/0.3198, allocations: 8.031 kB / 429.1 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.94e-05/0.3199, allocations: 58.53 kB / 429.2 MB, free: 12.94 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000283/0.3202, allocations: 146.3 kB / 429.3 MB, free: 12.79 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000964/0.3212, allocations: 0.8464 MB / 430.2 MB, free: 11.89 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.752e-05/0.3212, allocations: 16.44 kB / 430.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.568e-05/0.3213, allocations: 27.94 kB / 430.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004959/0.3218, allocations: 310.6 kB / 430.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3218, allocations: 0 / 430.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.531e-05/0.3218, allocations: 19.98 kB / 430.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.236e-05/0.3218, allocations: 11.92 kB / 430.5 MB, free: 11.51 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003685/0.3222, allocations: 217.8 kB / 430.8 MB, free: 11.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.3238, allocations: 1.118 MB / 431.9 MB, free: 10.12 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003567/0.3242, allocations: 242.4 kB / 432.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004444/0.3246, allocations: 296.9 kB / 432.4 MB, free: 9.586 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000983/0.3256, allocations: 0.8308 MB / 433.2 MB, free: 8.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.359e-05/0.3257, allocations: 42.56 kB / 433.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 1.693e-06/0.3257, allocations: 0 / 433.3 MB, free: 8.535 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.002783/0.3285, allocations: 1.546 MB / 434.8 MB, free: 6.891 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.895e-05/0.3285, allocations: 110.8 kB / 434.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000921/0.3295, allocations: 0.934 MB / 435.9 MB, free: 5.816 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.682e-05/0.3295, allocations: 29.7 kB / 435.9 MB, free: 5.781 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002482/0.3298, allocations: 369.5 kB / 436.3 MB, free: 5.414 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.686e-05/0.3298, allocations: 122.1 kB / 436.4 MB, free: 5.293 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001416/0.33, allocations: 117.5 kB / 436.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.763e-05/0.3301, allocations: 329.9 kB / 436.8 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002202/0.3303, allocations: 124.6 kB / 436.9 MB, free: 4.715 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000236/0.3306, allocations: 151.8 kB / 437.1 MB, free: 4.559 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001283/0.3319, allocations: 0.7336 MB / 437.8 MB, free: 3.797 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.3319, allocations: 0 / 437.8 MB, free: 3.797 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008724/0.3328, allocations: 0.554 MB / 438.4 MB, free: 3.223 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.032e-05/0.3328, allocations: 37.7 kB / 438.4 MB, free: 3.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.429e-05/0.3328, allocations: 19.98 kB / 438.4 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002095/0.3331, allocations: 73.66 kB / 438.5 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002258/0.3333, allocations: 43.91 kB / 438.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002335/0.3356, allocations: 3.331 MB / 441.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002705/0.3359, allocations: 16.02 kB / 441.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.969e-05/0.336, allocations: 20 kB / 441.9 MB, free: 15.39 MB / 366.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.0003804/0.3364, allocations: 259.8 kB / 442.2 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.3365, allocations: 126.4 kB / 442.3 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00116/0.3377, allocations: 0.6687 MB / 442.9 MB, free: 14.31 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.3377, allocations: 7.984 kB / 443 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.3377, allocations: 0 / 443 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/0.3377, allocations: 7.922 kB / 443 MB, free: 14.3 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000637/0.3384, allocations: 0.6121 MB / 443.6 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.874e-05/0.3384, allocations: 19.94 kB / 443.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.3386, allocations: 35.97 kB / 443.6 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001749/0.3388, allocations: 69.67 kB / 443.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.347e-05/0.3388, allocations: 15.98 kB / 443.7 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00221/0.341, allocations: 3.324 MB / 447 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.341, allocations: 0 / 447 MB, free: 9.895 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.3422, allocations: 0.8624 MB / 447.9 MB, free: 9.004 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000313/0.3426, allocations: 263.7 kB / 448.2 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.865e-05/0.3427, allocations: 11.98 kB / 448.2 MB, free: 8.715 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002639/0.3429, allocations: 19.92 kB / 448.2 MB, free: 8.695 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001027/0.3431, allocations: 36.03 kB / 448.2 MB, free: 8.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.463e-05/0.3431, allocations: 12 kB / 448.2 MB, free: 8.648 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006686/0.3438, allocations: 0.6334 MB / 448.9 MB, free: 8.012 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3438, allocations: 0 / 448.9 MB, free: 8.012 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007556/0.3445, allocations: 219.9 kB / 449.1 MB, free: 7.797 MB / 366.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.001804/0.3464, allocations: 1.608 MB / 450.7 MB, free: 6.145 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001034/0.3474, allocations: 0.7807 MB / 451.5 MB, free: 5.301 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.3474, allocations: 0 / 451.5 MB, free: 5.301 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005989/0.348, allocations: 0.6166 MB / 452.1 MB, free: 4.621 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005881/0.3486, allocations: 120.8 kB / 452.2 MB, free: 4.5 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006608/0.3552, allocations: 5.723 MB / 457.9 MB, free: 14.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000463/0.3557, allocations: 1.004 MB / 458.9 MB, free: 13.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002542/0.356, allocations: 93.64 kB / 459 MB, free: 13.5 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002825/0.3563, allocations: 287.3 kB / 459.3 MB, free: 13.22 MB / 382.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3563, allocations: 0 / 459.3 MB, free: 13.22 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04239/0.3987, allocations: 17.57 MB / 476.9 MB, free: 11.75 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.55, allocations: 3.938 kB / 476.9 MB, free: 11.74 MB / 398.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)