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.001739/0.001739, allocations: 116.1 kB / 17.33 MB, free: 6 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001849/0.001849, allocations: 205.8 kB / 18.27 MB, free: 5.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 227.4 MB / 246.4 MB, free: 10.79 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001186/0.001186, allocations: 67.89 kB / 306.6 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08077/0.08197, allocations: 50.53 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.00567/0.08767, allocations: 5.206 MB / 362.3 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.008201/0.09589, allocations: 6.594 MB / 368.9 MB, free: 2.465 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007377/0.09666, allocations: 39.75 kB / 368.9 MB, free: 2.426 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001427/0.09815, allocations: 457.5 kB / 369.4 MB, free: 1.977 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002384/0.1006, allocations: 0.6913 MB / 370.1 MB, free: 1.281 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.1018, allocations: 383 kB / 370.4 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.1375/0.2392, allocations: 2.058 MB / 372.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002937/0.2396, allocations: 165.1 kB / 372.7 MB, free: 9.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004631/0.24, allocations: 357.2 kB / 373 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003103/0.2404, allocations: 345.2 kB / 373.3 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.058e-05/0.2404, allocations: 28.91 kB / 373.4 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001059/0.2415, allocations: 0.4924 MB / 373.9 MB, free: 9.73 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.041e-05/0.2416, allocations: 113.8 kB / 374 MB, free: 9.684 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002686/0.2419, allocations: 445.3 kB / 374.4 MB, free: 9.5 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.243, allocations: 1.277 MB / 375.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.243, allocations: 3.188 kB / 375.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.243, allocations: 0 / 375.7 MB, free: 9.273 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.111e-05/0.2431, allocations: 2 kB / 375.7 MB, free: 9.273 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.001479/0.2445, allocations: 1.443 MB / 377.1 MB, free: 8.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.422e-05/0.2446, allocations: 14.03 kB / 377.1 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.929e-05/0.2446, allocations: 60.88 kB / 377.2 MB, free: 8.277 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002575/0.2449, allocations: 136 kB / 377.3 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008853/0.2458, allocations: 0.8465 MB / 378.2 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.983e-05/0.2458, allocations: 17.28 kB / 378.2 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.314e-05/0.2459, allocations: 22.88 kB / 378.2 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000504/0.2464, allocations: 307.5 kB / 378.5 MB, free: 7.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.2464, allocations: 4.656 kB / 378.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.993e-05/0.2464, allocations: 13.94 kB / 378.5 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.2465, allocations: 6.062 kB / 378.6 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000372/0.2468, allocations: 223.8 kB / 378.8 MB, free: 7.762 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.2483, allocations: 1.132 MB / 379.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003407/0.2487, allocations: 246.8 kB / 380.1 MB, free: 7.383 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003904/0.2491, allocations: 303.2 kB / 380.4 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007195/0.2498, allocations: 0.8237 MB / 381.3 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.969e-05/0.2498, allocations: 40 kB / 381.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of pre-optimization done (n=38): time 1.884e-06/0.2499, allocations: 0 / 381.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of matching and sorting (n=39): time 0.002448/0.2523, allocations: 1.556 MB / 382.9 MB, free: 5.598 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.027e-05/0.2524, allocations: 113.4 kB / 383 MB, free: 5.469 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009076/0.2533, allocations: 0.9311 MB / 383.9 MB, free: 5.102 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.054e-05/0.2533, allocations: 31.92 kB / 383.9 MB, free: 5.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001919/0.2535, allocations: 360 kB / 384.3 MB, free: 4.781 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.45e-05/0.2536, allocations: 132.8 kB / 384.4 MB, free: 4.68 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.2537, allocations: 118.1 kB / 384.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 3.886e-05/0.2538, allocations: 327.2 kB / 384.8 MB, free: 4.297 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002133/0.254, allocations: 120.9 kB / 385 MB, free: 4.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.2542, allocations: 159.8 kB / 385.1 MB, free: 4.176 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001233/0.2555, allocations: 0.7357 MB / 385.9 MB, free: 3.801 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.2555, allocations: 0 / 385.9 MB, free: 3.801 MB / 302.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007835/0.2563, allocations: 0.5533 MB / 386.4 MB, free: 3.523 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.033e-05/0.2563, allocations: 43.53 kB / 386.5 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.795e-05/0.2564, allocations: 13.61 kB / 386.5 MB, free: 3.488 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001947/0.2566, allocations: 71.78 kB / 386.5 MB, free: 3.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002179/0.2568, allocations: 47.02 kB / 386.6 MB, free: 3.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001654/0.2584, allocations: 3.329 MB / 389.9 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002769/0.2587, allocations: 13.25 kB / 389.9 MB, free: 216 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.325e-05/0.2588, allocations: 19.97 kB / 389.9 MB, free: 212 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.0003176/0.2591, allocations: 267.4 kB / 390.2 MB, free: 15.99 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001361/0.2593, allocations: 129.1 kB / 390.3 MB, free: 15.92 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001288/0.2606, allocations: 0.6621 MB / 391 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.791e-06/0.2606, allocations: 8.328 kB / 391 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.2606, allocations: 1.219 kB / 391 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.2606, allocations: 2.453 kB / 391 MB, free: 15.6 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007376/0.2613, allocations: 0.6138 MB / 391.6 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.367e-05/0.2614, allocations: 15.03 kB / 391.6 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001751/0.2615, allocations: 32.28 kB / 391.7 MB, free: 15.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001793/0.2617, allocations: 71.11 kB / 391.7 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.572e-05/0.2618, allocations: 19.33 kB / 391.8 MB, free: 15.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002232/0.264, allocations: 3.338 MB / 395.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.264, allocations: 1.312 kB / 395.1 MB, free: 11.96 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001252/0.2653, allocations: 0.8513 MB / 395.9 MB, free: 11.5 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003299/0.2656, allocations: 272.5 kB / 396.2 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001124/0.2658, allocations: 7.438 kB / 396.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002746/0.266, allocations: 14.53 kB / 396.2 MB, free: 11.3 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.802e-05/0.2661, allocations: 37.78 kB / 396.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.788e-05/0.2662, allocations: 21.45 kB / 396.3 MB, free: 11.29 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006911/0.2669, allocations: 0.626 MB / 396.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2669, allocations: 0 / 396.9 MB, free: 11.02 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0008345/0.2677, allocations: 229.2 kB / 397.1 MB, free: 10.98 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.002069/0.2698, allocations: 1.601 MB / 398.7 MB, free: 9.945 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00104/0.2709, allocations: 0.7937 MB / 399.5 MB, free: 9.371 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.2709, allocations: 1.375 kB / 399.5 MB, free: 9.371 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006104/0.2715, allocations: 0.614 MB / 400.1 MB, free: 8.867 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000606/0.2721, allocations: 110.1 kB / 400.3 MB, free: 8.809 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008472/0.2806, allocations: 6.292 MB / 406.5 MB, free: 5.145 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004884/0.2811, allocations: 1.003 MB / 407.6 MB, free: 4.426 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003239/0.2814, allocations: 92.39 kB / 407.6 MB, free: 4.379 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002799/0.2817, allocations: 279.5 kB / 407.9 MB, free: 4.141 MB / 318.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2817, allocations: 4 kB / 407.9 MB, free: 4.137 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.581/0.8628, allocations: 16.95 MB / 424.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002647/0.8631, allocations: 217.3 kB / 425.1 MB, free: 3.355 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.717/3.58, allocations: 4 kB / 425.1 MB, free: 3.352 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)