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.001539/0.001539, allocations: 117.7 kB / 17.79 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001858/0.001858, allocations: 199.8 kB / 18.73 MB, free: 4.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.44/1.44, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001261/0.001261, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2624/0.2637, allocations: 50.55 MB / 408.7 MB, free: 1.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006169/0.2699, allocations: 5.204 MB / 414 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008373/0.2783, allocations: 6.66 MB / 420.6 MB, free: 5.652 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006611/0.279, allocations: 39.69 kB / 420.7 MB, free: 5.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001216/0.2802, allocations: 0.5046 MB / 421.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001991/0.2823, allocations: 0.8146 MB / 422 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001045/0.2833, allocations: 430.4 kB / 422.4 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002817/0.2861, allocations: 2.052 MB / 424.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002794/0.2864, allocations: 171 kB / 424.6 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004704/0.2869, allocations: 378.2 kB / 425 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003673/0.2873, allocations: 349.6 kB / 425.3 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.42e-05/0.2874, allocations: 28 kB / 425.3 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009135/0.2883, allocations: 0.4917 MB / 425.8 MB, free: 396 kB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.614e-05/0.2884, allocations: 107.3 kB / 425.9 MB, free: 288 kB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003452/0.2887, allocations: 445.1 kB / 426.4 MB, free: 15.84 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001273/0.29, allocations: 1.284 MB / 427.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.29, allocations: 0 / 427.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.29, allocations: 0 / 427.7 MB, free: 14.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.61e-05/0.2901, allocations: 0 / 427.7 MB, free: 14.55 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.001872/0.2919, allocations: 1.44 MB / 429.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.377e-05/0.292, allocations: 15.97 kB / 429.1 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.06e-05/0.2921, allocations: 70.52 kB / 429.2 MB, free: 12.96 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000287/0.2924, allocations: 142.3 kB / 429.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001075/0.2935, allocations: 0.8464 MB / 430.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.623e-05/0.2935, allocations: 20.38 kB / 430.2 MB, free: 11.9 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.046e-05/0.2936, allocations: 20 kB / 430.2 MB, free: 11.88 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005046/0.2941, allocations: 306.6 kB / 430.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.2941, allocations: 4 kB / 430.5 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.885e-05/0.2941, allocations: 19.94 kB / 430.5 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.2942, allocations: 7.938 kB / 430.5 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004028/0.2946, allocations: 221.8 kB / 430.8 MB, free: 11.33 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001682/0.2963, allocations: 1.11 MB / 431.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003939/0.2967, allocations: 249.8 kB / 432.1 MB, free: 9.914 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004766/0.2971, allocations: 296.9 kB / 432.4 MB, free: 9.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001002/0.2982, allocations: 0.8386 MB / 433.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.638e-05/0.2982, allocations: 34.55 kB / 433.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=38): time 2.084e-06/0.2982, allocations: 0 / 433.3 MB, free: 8.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=39): time 0.002816/0.301, allocations: 1.546 MB / 434.8 MB, free: 6.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.735e-05/0.3011, allocations: 110.8 kB / 434.9 MB, free: 6.793 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009355/0.3021, allocations: 0.9379 MB / 435.9 MB, free: 5.848 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.123e-05/0.3021, allocations: 29.7 kB / 435.9 MB, free: 5.812 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002574/0.3024, allocations: 357.5 kB / 436.2 MB, free: 5.457 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001024/0.3025, allocations: 130.1 kB / 436.4 MB, free: 5.328 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000161/0.3026, allocations: 121.5 kB / 436.5 MB, free: 5.199 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000119/0.3028, allocations: 325.8 kB / 436.8 MB, free: 4.875 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002387/0.303, allocations: 120.6 kB / 436.9 MB, free: 4.754 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002746/0.3033, allocations: 167.8 kB / 437.1 MB, free: 4.582 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001444/0.3047, allocations: 0.7218 MB / 437.8 MB, free: 3.832 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.3048, allocations: 0 / 437.8 MB, free: 3.832 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0009263/0.3057, allocations: 0.5618 MB / 438.4 MB, free: 3.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.205e-05/0.3057, allocations: 41.69 kB / 438.4 MB, free: 3.203 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.919e-05/0.3058, allocations: 12 kB / 438.4 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002098/0.306, allocations: 69.72 kB / 438.5 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002351/0.3063, allocations: 47.91 kB / 438.5 MB, free: 3.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002443/0.3087, allocations: 3.331 MB / 441.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002672/0.309, allocations: 11.98 kB / 441.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.132e-05/0.309, allocations: 20 kB / 441.9 MB, free: 15.43 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.0003672/0.3094, allocations: 267.9 kB / 442.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001484/0.3096, allocations: 126.4 kB / 442.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001239/0.3108, allocations: 0.6686 MB / 443 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.3108, allocations: 0 / 443 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.3109, allocations: 4 kB / 443 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.987e-06/0.3109, allocations: 0 / 443 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006904/0.3116, allocations: 0.6121 MB / 443.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.761e-05/0.3116, allocations: 19.92 kB / 443.6 MB, free: 13.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000181/0.3118, allocations: 31.92 kB / 443.6 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001873/0.312, allocations: 73.67 kB / 443.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.537e-05/0.312, allocations: 19.98 kB / 443.7 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002489/0.3145, allocations: 3.332 MB / 447 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3145, allocations: 0 / 447 MB, free: 9.922 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001314/0.3159, allocations: 0.8625 MB / 447.9 MB, free: 9.031 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000404/0.3163, allocations: 267.5 kB / 448.2 MB, free: 8.75 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.203e-05/0.3164, allocations: 8 kB / 448.2 MB, free: 8.742 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002667/0.3167, allocations: 15.92 kB / 448.2 MB, free: 8.727 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.98e-05/0.3168, allocations: 27.97 kB / 448.2 MB, free: 8.699 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.467e-05/0.3168, allocations: 23.98 kB / 448.2 MB, free: 8.676 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007266/0.3175, allocations: 0.6257 MB / 448.9 MB, free: 8.047 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3176, allocations: 0 / 448.9 MB, free: 8.047 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007876/0.3183, allocations: 219.9 kB / 449.1 MB, free: 7.832 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.002026/0.3204, allocations: 1.604 MB / 450.7 MB, free: 6.184 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001152/0.3215, allocations: 0.7768 MB / 451.5 MB, free: 5.344 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3216, allocations: 0 / 451.5 MB, free: 5.344 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006616/0.3222, allocations: 0.6243 MB / 452.1 MB, free: 4.656 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005921/0.3228, allocations: 123.6 kB / 452.2 MB, free: 4.535 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007041/0.3299, allocations: 5.733 MB / 457.9 MB, free: 14.65 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004979/0.3304, allocations: 0.9961 MB / 458.9 MB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002726/0.3307, allocations: 97.62 kB / 459 MB, free: 13.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002917/0.331, allocations: 283.3 kB / 459.3 MB, free: 13.25 MB / 382.1 MB Notification: Performance of SimCode: time 5.72e-07/0.331, allocations: 3.938 kB / 459.3 MB, free: 13.25 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04475/0.3758, allocations: 17.56 MB / 476.9 MB, free: 11.77 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.74, allocations: 3.75 kB / 476.9 MB, free: 11.77 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)