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.0008686/0.0008687, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001017/0.001017, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 227.7 MB / 246.8 MB, free: 11.27 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002099/0.0002099, allocations: 8 kB / 307.8 MB, free: 0.7148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09027/0.09049, allocations: 51.52 MB / 359.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.004652/0.0952, allocations: 4.797 MB / 364.2 MB, free: 8.371 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007958/0.1032, allocations: 6.696 MB / 370.8 MB, free: 1.652 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007567/0.104, allocations: 35.75 kB / 370.9 MB, free: 1.617 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00132/0.1053, allocations: 478.5 kB / 371.3 MB, free: 1.148 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002163/0.1075, allocations: 0.6678 MB / 372 MB, free: 488 kB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001021/0.1085, allocations: 335 kB / 372.3 MB, free: 152 kB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.168/0.2766, allocations: 1.988 MB / 374.3 MB, free: 9.141 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003202/0.2769, allocations: 155.5 kB / 374.5 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005462/0.2775, allocations: 332.9 kB / 374.8 MB, free: 9.062 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003769/0.2779, allocations: 326 kB / 375.1 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.467e-05/0.2779, allocations: 17.22 kB / 375.1 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001072/0.279, allocations: 493.6 kB / 375.6 MB, free: 8.922 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.047e-05/0.2791, allocations: 99.64 kB / 375.7 MB, free: 8.875 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002932/0.2794, allocations: 456.3 kB / 376.2 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001266/0.2807, allocations: 1.234 MB / 377.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.11e-06/0.2807, allocations: 1.375 kB / 377.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.2807, allocations: 0 / 377.4 MB, free: 8.434 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.106e-05/0.2807, allocations: 0 / 377.4 MB, free: 8.434 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.001599/0.2823, allocations: 1.289 MB / 378.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.992e-05/0.2824, allocations: 10.06 kB / 378.7 MB, free: 7.535 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.707e-05/0.2824, allocations: 63.98 kB / 378.8 MB, free: 7.496 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002625/0.2827, allocations: 138.3 kB / 378.9 MB, free: 7.434 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001037/0.2837, allocations: 0.8525 MB / 379.8 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.91e-05/0.2838, allocations: 15.94 kB / 379.8 MB, free: 7.047 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.077e-05/0.2838, allocations: 28.55 kB / 379.8 MB, free: 7.043 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005225/0.2844, allocations: 313.5 kB / 380.1 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.049e-05/0.2844, allocations: 3.938 kB / 380.1 MB, free: 6.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.105e-05/0.2844, allocations: 13.25 kB / 380.1 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.209e-05/0.2844, allocations: 6.031 kB / 380.1 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003918/0.2848, allocations: 228.3 kB / 380.3 MB, free: 6.977 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001532/0.2864, allocations: 1.133 MB / 381.5 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000385/0.2868, allocations: 238.4 kB / 381.7 MB, free: 6.602 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000444/0.2872, allocations: 308.9 kB / 382 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007445/0.288, allocations: 0.8336 MB / 382.8 MB, free: 5.738 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.159e-05/0.288, allocations: 40.2 kB / 382.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 2.204e-06/0.288, allocations: 0 / 382.9 MB, free: 5.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002739/0.2908, allocations: 1.587 MB / 384.5 MB, free: 5.012 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.907e-05/0.2908, allocations: 111.2 kB / 384.6 MB, free: 4.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00107/0.2919, allocations: 0.9332 MB / 385.5 MB, free: 4.738 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.243e-05/0.2919, allocations: 31.23 kB / 385.5 MB, free: 4.707 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002348/0.2922, allocations: 361.5 kB / 385.9 MB, free: 4.602 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.735e-05/0.2923, allocations: 126.2 kB / 386 MB, free: 4.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.408e-05/0.2923, allocations: 34.81 kB / 386.1 MB, free: 4.504 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.091e-05/0.2924, allocations: 325.4 kB / 386.4 MB, free: 4.195 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002485/0.2927, allocations: 124.9 kB / 386.5 MB, free: 4.188 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002571/0.2929, allocations: 168.5 kB / 386.7 MB, free: 4.152 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001347/0.2943, allocations: 0.7576 MB / 387.4 MB, free: 3.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.2943, allocations: 1.281 kB / 387.4 MB, free: 3.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008691/0.2952, allocations: 0.5579 MB / 388 MB, free: 3.496 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.626e-05/0.2952, allocations: 45.31 kB / 388 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.158e-05/0.2953, allocations: 13.52 kB / 388 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002031/0.2955, allocations: 71.11 kB / 388.1 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002202/0.2957, allocations: 49.95 kB / 388.2 MB, free: 3.418 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001767/0.2975, allocations: 2.995 MB / 391.1 MB, free: 0.5117 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004151/0.2979, allocations: 14.52 kB / 391.2 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.307e-05/0.298, allocations: 21.11 kB / 391.2 MB, free: 0.5039 MB / 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.0004141/0.2984, allocations: 262.5 kB / 391.4 MB, free: 296 kB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.2985, allocations: 117.4 kB / 391.6 MB, free: 236 kB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001473/0.3, allocations: 0.6856 MB / 392.2 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.3, allocations: 5.203 kB / 392.2 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.3, allocations: 5 kB / 392.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.538e-06/0.3001, allocations: 2.469 kB / 392.3 MB, free: 15.95 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009514/0.301, allocations: 0.6123 MB / 392.9 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.669e-05/0.301, allocations: 17 kB / 392.9 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001782/0.3012, allocations: 33.58 kB / 392.9 MB, free: 15.59 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001955/0.3014, allocations: 71.7 kB / 393 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.902e-05/0.3015, allocations: 15.66 kB / 393 MB, free: 15.55 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002388/0.3039, allocations: 3.008 MB / 396 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.204e-06/0.3039, allocations: 3.938 kB / 396 MB, free: 12.64 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001291/0.3052, allocations: 0.8664 MB / 396.9 MB, free: 12.16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003401/0.3055, allocations: 268.8 kB / 397.1 MB, free: 11.98 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.268e-05/0.3056, allocations: 11.09 kB / 397.2 MB, free: 11.97 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002811/0.3059, allocations: 17.75 kB / 397.2 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.516e-05/0.306, allocations: 38.06 kB / 397.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.185e-05/0.3061, allocations: 14 kB / 397.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0007467/0.3068, allocations: 0.6291 MB / 397.8 MB, free: 11.69 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3068, allocations: 0 / 397.8 MB, free: 11.69 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0009306/0.3078, allocations: 229 kB / 398.1 MB, free: 11.65 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.00194/0.3097, allocations: 1.603 MB / 399.7 MB, free: 10.61 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001077/0.3108, allocations: 0.7946 MB / 400.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3108, allocations: 0 / 400.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006233/0.3114, allocations: 0.6165 MB / 401.1 MB, free: 9.543 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006109/0.3121, allocations: 116.8 kB / 401.2 MB, free: 9.488 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008216/0.3203, allocations: 6.378 MB / 407.6 MB, free: 5.473 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004742/0.3208, allocations: 1.004 MB / 408.6 MB, free: 4.438 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000329/0.3211, allocations: 93.64 kB / 408.7 MB, free: 4.344 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002836/0.3214, allocations: 287.3 kB / 409 MB, free: 4.062 MB / 318.1 MB Notification: Performance of SimCode: time 1.193e-06/0.3214, allocations: 0 / 409 MB, free: 4.062 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02912/0.3505, allocations: 16.48 MB / 425.4 MB, free: 3.766 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002029/0.3508, allocations: 210.2 kB / 425.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/2.318, allocations: 0 / 425.6 MB, free: 3.512 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)