Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Graetz,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.000915/0.0009153, allocations: 171.1 kB / 16.72 MB, free: 4.961 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.195/1.195, allocations: 205.4 MB / 222.9 MB, free: 9.02 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007053/0.0007053, allocations: 85.36 kB / 271.2 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002865/0.0002866, allocations: 8 kB / 327.6 MB, free: 15.79 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1873/0.1876, allocations: 47.57 MB / 375.2 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.003285/0.191, allocations: 4.505 MB / 379.7 MB, free: 41.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00562/0.1966, allocations: 5.943 MB / 385.6 MB, free: 37.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004499/0.1971, allocations: 35.03 kB / 385.7 MB, free: 37.04 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009564/0.198, allocations: 399.5 kB / 386 MB, free: 36.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001516/0.1996, allocations: 0.6395 MB / 386.7 MB, free: 36.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007949/0.2004, allocations: 304.6 kB / 387 MB, free: 36.04 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002633/0.203, allocations: 1.869 MB / 388.9 MB, free: 34.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000338/0.2034, allocations: 151.5 kB / 389 MB, free: 34.83 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004784/0.2039, allocations: 310.4 kB / 389.3 MB, free: 34.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002399/0.2041, allocations: 306 kB / 389.6 MB, free: 34.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.858e-05/0.2042, allocations: 16 kB / 389.6 MB, free: 34.21 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009046/0.2051, allocations: 427.6 kB / 390 MB, free: 33.79 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.674e-05/0.2052, allocations: 95.33 kB / 390.1 MB, free: 33.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002492/0.2054, allocations: 423.2 kB / 390.5 MB, free: 33.27 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006541/0.2061, allocations: 0.9193 MB / 391.5 MB, free: 32.35 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.2061, allocations: 7.875 kB / 391.5 MB, free: 32.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2061, allocations: 0 / 391.5 MB, free: 32.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.417e-06/0.2061, allocations: 0 / 391.5 MB, free: 32.34 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.001309/0.2074, allocations: 1.285 MB / 392.8 MB, free: 31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.701e-05/0.2075, allocations: 12.03 kB / 392.8 MB, free: 30.99 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.991e-05/0.2075, allocations: 62.55 kB / 392.8 MB, free: 30.92 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.31e-05/0.2076, allocations: 126.4 kB / 393 MB, free: 30.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007718/0.2084, allocations: 0.8503 MB / 393.8 MB, free: 29.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.293e-05/0.2084, allocations: 16.42 kB / 393.8 MB, free: 29.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.793e-05/0.2085, allocations: 24 kB / 393.8 MB, free: 29.85 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004288/0.2089, allocations: 306.6 kB / 394.1 MB, free: 29.54 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.055e-05/0.2089, allocations: 7.938 kB / 394.2 MB, free: 29.54 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.738e-05/0.209, allocations: 8 kB / 394.2 MB, free: 29.53 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.209, allocations: 8 kB / 394.2 MB, free: 29.52 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003255/0.2093, allocations: 225.8 kB / 394.4 MB, free: 29.3 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001323/0.2106, allocations: 1.134 MB / 395.5 MB, free: 28.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003034/0.211, allocations: 247.1 kB / 395.8 MB, free: 27.87 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003733/0.2113, allocations: 301.4 kB / 396.1 MB, free: 27.57 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006644/0.212, allocations: 0.7632 MB / 396.8 MB, free: 26.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.749e-05/0.212, allocations: 34.56 kB / 396.9 MB, free: 26.62 MB / 298.7 MB Notification: Performance of pre-optimization done (n=38): time 1.984e-06/0.2121, allocations: 0 / 396.9 MB, free: 26.62 MB / 298.7 MB Notification: Performance of matching and sorting (n=39): time 0.002332/0.2144, allocations: 1.575 MB / 398.4 MB, free: 24.94 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.107e-05/0.2144, allocations: 122.7 kB / 398.5 MB, free: 24.8 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007007/0.2151, allocations: 0.9183 MB / 399.5 MB, free: 23.87 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.544e-05/0.2152, allocations: 33.7 kB / 399.5 MB, free: 23.83 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001725/0.2154, allocations: 353.6 kB / 399.8 MB, free: 23.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.444e-05/0.2154, allocations: 138.1 kB / 400 MB, free: 23.35 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.208e-05/0.2155, allocations: 7.938 kB / 400 MB, free: 23.34 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.13e-05/0.2155, allocations: 318 kB / 400.3 MB, free: 23.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002005/0.2157, allocations: 124.6 kB / 400.4 MB, free: 22.9 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002052/0.2159, allocations: 171.6 kB / 400.6 MB, free: 22.72 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001125/0.2171, allocations: 0.7472 MB / 401.3 MB, free: 21.95 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.2171, allocations: 0 / 401.3 MB, free: 21.95 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007074/0.2178, allocations: 0.5581 MB / 401.9 MB, free: 21.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.088e-05/0.2178, allocations: 41.69 kB / 401.9 MB, free: 21.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.383e-05/0.2178, allocations: 12 kB / 401.9 MB, free: 21.31 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001831/0.218, allocations: 69.69 kB / 402 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.2183, allocations: 47.91 kB / 402.1 MB, free: 21.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/0.2199, allocations: 2.997 MB / 405.1 MB, free: 17.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002579/0.2201, allocations: 16.06 kB / 405.1 MB, free: 17.91 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.778e-05/0.2202, allocations: 16 kB / 405.1 MB, free: 17.89 MB / 298.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.0003178/0.2205, allocations: 267.8 kB / 405.3 MB, free: 17.61 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.323e-05/0.2206, allocations: 130.4 kB / 405.5 MB, free: 17.48 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00107/0.2217, allocations: 0.6574 MB / 406.1 MB, free: 16.8 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.2217, allocations: 4 kB / 406.1 MB, free: 16.8 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.527e-06/0.2217, allocations: 8 kB / 406.1 MB, free: 16.79 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.2217, allocations: 0 / 406.1 MB, free: 16.79 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005138/0.2222, allocations: 0.6121 MB / 406.8 MB, free: 16.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.797e-05/0.2223, allocations: 16 kB / 406.8 MB, free: 16.12 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/0.2224, allocations: 35.92 kB / 406.8 MB, free: 16.08 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001543/0.2226, allocations: 65.67 kB / 406.9 MB, free: 16.01 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.046e-05/0.2226, allocations: 31.86 kB / 406.9 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001415/0.2241, allocations: 2.989 MB / 409.9 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.2241, allocations: 0 / 409.9 MB, free: 12.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009857/0.2251, allocations: 0.8667 MB / 410.8 MB, free: 11.83 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000244/0.2253, allocations: 279.4 kB / 411 MB, free: 11.54 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.033e-05/0.2254, allocations: 8 kB / 411 MB, free: 11.53 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002513/0.2257, allocations: 12 kB / 411.1 MB, free: 11.52 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001/0.2258, allocations: 31.95 kB / 411.1 MB, free: 11.49 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.41e-05/0.2258, allocations: 24.06 kB / 411.1 MB, free: 11.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005427/0.2264, allocations: 0.6139 MB / 411.7 MB, free: 10.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2264, allocations: 0 / 411.7 MB, free: 10.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0006824/0.2271, allocations: 227.8 kB / 411.9 MB, free: 10.62 MB / 298.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.001485/0.2286, allocations: 1.611 MB / 413.6 MB, free: 8.977 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0008334/0.2294, allocations: 0.7923 MB / 414.3 MB, free: 8.121 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.2294, allocations: 4 kB / 414.3 MB, free: 8.117 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004703/0.2299, allocations: 0.6207 MB / 415 MB, free: 7.434 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005001/0.2304, allocations: 96.81 kB / 415.1 MB, free: 7.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005583/0.236, allocations: 4.747 MB / 419.8 MB, free: 2.43 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002943/0.2363, allocations: 1.008 MB / 420.8 MB, free: 1.395 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.2366, allocations: 279.3 kB / 421.1 MB, free: 1.121 MB / 298.7 MB Notification: Performance of SimCode: time 7.21e-07/0.2366, allocations: 4 kB / 421.1 MB, free: 1.117 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.756/3.992, allocations: 19.29 MB / 440.4 MB, free: 13.79 MB / 330.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Graetz_fmu --startTime=0 --stopTime=0.025 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_Spice3_Examples_Graetz.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Graetz.pipe 2>&1)