Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009708/0.0009708, allocations: 190.6 kB / 17.37 MB, free: 4.406 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.217/1.217, allocations: 226.5 MB / 244.7 MB, free: 6.375 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008011/0.0008012, allocations: 95.52 kB / 296.7 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002013/0.0002013, allocations: 4 kB / 356.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1789, allocations: 51.3 MB / 408.1 MB, free: 27.68 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.002927/0.1819, allocations: 4.509 MB / 412.6 MB, free: 23.16 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.004656/0.1866, allocations: 6.03 MB / 418.7 MB, free: 17.13 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000295/0.1869, allocations: 43.69 kB / 418.7 MB, free: 17.09 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007405/0.1876, allocations: 402.8 kB / 419.1 MB, free: 16.7 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001047/0.1887, allocations: 0.6406 MB / 419.7 MB, free: 16.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005471/0.1892, allocations: 311 kB / 420 MB, free: 15.75 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001878/0.1911, allocations: 1.928 MB / 422 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002038/0.1913, allocations: 162.6 kB / 422.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002572/0.1916, allocations: 322.3 kB / 422.4 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002091/0.1918, allocations: 309.9 kB / 422.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.812e-05/0.1919, allocations: 16 kB / 422.8 MB, free: 13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006524/0.1925, allocations: 463.5 kB / 423.2 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.15e-05/0.1926, allocations: 87.33 kB / 423.3 MB, free: 12.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002268/0.1928, allocations: 435.1 kB / 423.7 MB, free: 12.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005885/0.1934, allocations: 0.9193 MB / 424.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1935, allocations: 0 / 424.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1935, allocations: 0 / 424.6 MB, free: 11.11 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.325e-06/0.1935, allocations: 0 / 424.6 MB, free: 11.11 MB / 298.7 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.001191/0.1947, allocations: 1.293 MB / 425.9 MB, free: 9.758 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.252e-05/0.1947, allocations: 12.03 kB / 426 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.728e-05/0.1948, allocations: 62.47 kB / 426 MB, free: 9.676 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002234/0.195, allocations: 146.4 kB / 426.2 MB, free: 9.531 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007391/0.1957, allocations: 0.8464 MB / 427 MB, free: 8.633 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.1958, allocations: 20.44 kB / 427 MB, free: 8.613 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.225e-05/0.1958, allocations: 20 kB / 427 MB, free: 8.594 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004169/0.1962, allocations: 306.7 kB / 427.3 MB, free: 8.285 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.378e-06/0.1963, allocations: 0 / 427.3 MB, free: 8.285 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.936e-05/0.1963, allocations: 15.94 kB / 427.4 MB, free: 8.27 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.1963, allocations: 8 kB / 427.4 MB, free: 8.262 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003243/0.1966, allocations: 225.7 kB / 427.6 MB, free: 8.043 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001278/0.1979, allocations: 1.138 MB / 428.7 MB, free: 6.848 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002953/0.1982, allocations: 246.4 kB / 429 MB, free: 6.598 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003603/0.1986, allocations: 292.8 kB / 429.3 MB, free: 6.309 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006507/0.1993, allocations: 0.8386 MB / 430.1 MB, free: 5.305 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.722e-05/0.1993, allocations: 34.56 kB / 430.1 MB, free: 5.262 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 1.743e-06/0.1993, allocations: 3.938 kB / 430.1 MB, free: 5.258 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.002248/0.2015, allocations: 1.573 MB / 431.7 MB, free: 3.586 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.579e-05/0.2016, allocations: 106.8 kB / 431.8 MB, free: 3.457 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006803/0.2023, allocations: 0.9338 MB / 432.7 MB, free: 2.516 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.2023, allocations: 29.7 kB / 432.8 MB, free: 2.48 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001687/0.2025, allocations: 353.6 kB / 433.1 MB, free: 2.133 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.199e-05/0.2025, allocations: 138 kB / 433.2 MB, free: 1.996 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.015e-05/0.2026, allocations: 4 kB / 433.3 MB, free: 1.992 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.564e-05/0.2026, allocations: 322 kB / 433.6 MB, free: 1.672 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001993/0.2028, allocations: 124.6 kB / 433.7 MB, free: 1.543 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002026/0.203, allocations: 167.8 kB / 433.9 MB, free: 1.371 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001113/0.2041, allocations: 0.745 MB / 434.6 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.162e-06/0.2042, allocations: 0 / 434.6 MB, free: 0.5977 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0006896/0.2049, allocations: 0.5618 MB / 435.2 MB, free: 16 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.994e-05/0.2049, allocations: 37.7 kB / 435.2 MB, free: 15.97 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.783e-05/0.205, allocations: 15.98 kB / 435.2 MB, free: 15.96 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001934/0.2052, allocations: 69.62 kB / 435.3 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002267/0.2054, allocations: 51.91 kB / 435.3 MB, free: 15.83 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002035/0.2074, allocations: 2.993 MB / 438.3 MB, free: 12.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002544/0.2077, allocations: 20.08 kB / 438.3 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.826e-05/0.2078, allocations: 20 kB / 438.4 MB, free: 12.53 MB / 314.7 MB Warning: Assuming fixed start value for the following 4 variables: D1.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 D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D2.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003308/0.2081, allocations: 255.8 kB / 438.6 MB, free: 12.26 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001166/0.2082, allocations: 126.5 kB / 438.7 MB, free: 12.14 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001221/0.2094, allocations: 0.673 MB / 439.4 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.2095, allocations: 7.922 kB / 439.4 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.2095, allocations: 8 kB / 439.4 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.2095, allocations: 0 / 439.4 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006126/0.2101, allocations: 0.6082 MB / 440 MB, free: 10.77 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.922e-05/0.2101, allocations: 12 kB / 440 MB, free: 10.76 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001794/0.2103, allocations: 39.91 kB / 440.1 MB, free: 10.72 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001725/0.2105, allocations: 65.67 kB / 440.1 MB, free: 10.65 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.682e-05/0.2105, allocations: 23.98 kB / 440.2 MB, free: 10.63 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001929/0.2125, allocations: 2.993 MB / 443.2 MB, free: 7.375 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2125, allocations: 4.031 kB / 443.2 MB, free: 7.371 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001161/0.2137, allocations: 0.8589 MB / 444 MB, free: 6.484 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002958/0.214, allocations: 275.5 kB / 444.3 MB, free: 6.195 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.779e-05/0.2141, allocations: 11.88 kB / 444.3 MB, free: 6.184 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002589/0.2143, allocations: 16.11 kB / 444.3 MB, free: 6.168 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001015/0.2144, allocations: 31.97 kB / 444.4 MB, free: 6.137 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.739e-05/0.2145, allocations: 23.98 kB / 444.4 MB, free: 6.113 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000629/0.2151, allocations: 0.6179 MB / 445 MB, free: 5.492 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2151, allocations: 0 / 445 MB, free: 5.492 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0007003/0.2158, allocations: 223.9 kB / 445.2 MB, free: 5.273 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001773/0.2176, allocations: 1.609 MB / 446.8 MB, free: 3.621 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0009559/0.2186, allocations: 0.7857 MB / 447.6 MB, free: 2.773 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2186, allocations: 0 / 447.6 MB, free: 2.773 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005821/0.2192, allocations: 0.6165 MB / 448.2 MB, free: 2.094 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005584/0.2198, allocations: 114.1 kB / 448.3 MB, free: 1.984 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006428/0.2262, allocations: 4.732 MB / 453.1 MB, free: 13.09 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004308/0.2266, allocations: 1.004 MB / 454.1 MB, free: 12.05 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002847/0.2269, allocations: 291.3 kB / 454.4 MB, free: 11.77 MB / 330.7 MB Notification: Performance of SimCode: time 3.41e-07/0.2269, allocations: 0 / 454.4 MB, free: 11.77 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.773/4, allocations: 19.34 MB / 473.7 MB, free: 8.395 MB / 346.7 MB (rm -f Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_trunk_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)