Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001393/0.001393, allocations: 110.7 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001353/0.001353, allocations: 186.5 kB / 17.42 MB, free: 6.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.331/1.331, allocations: 205.1 MB / 223.3 MB, free: 12.4 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1666/0.1666, allocations: 38 MB / 308.6 MB, free: 6.219 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 75.17 kB / 374.7 MB, free: 3.992 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2177/0.219, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC): time 0.004992/0.224, allocations: 4.534 MB / 434.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.2252, allocations: 1.006 MB / 435.5 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001649/0.2254, allocations: 19.88 kB / 435.5 MB, free: 14.17 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001746/0.2255, allocations: 39.69 kB / 435.6 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003566/0.2259, allocations: 155.3 kB / 435.7 MB, free: 13.98 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001547/0.2261, allocations: 71.92 kB / 435.8 MB, free: 13.91 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003463/0.2264, allocations: 0.518 MB / 436.3 MB, free: 13.39 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001824/0.2266, allocations: 93.69 kB / 436.4 MB, free: 13.3 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001863/0.2268, allocations: 155.2 kB / 436.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002732/0.2271, allocations: 183.3 kB / 436.7 MB, free: 12.97 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.83e-05/0.2271, allocations: 16 kB / 436.7 MB, free: 12.95 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.377e-05/0.2272, allocations: 12 kB / 436.8 MB, free: 12.94 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.025e-05/0.2273, allocations: 87.72 kB / 436.8 MB, free: 12.86 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001129/0.2274, allocations: 135.2 kB / 437 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001957/0.2276, allocations: 275 kB / 437.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.2276, allocations: 0 / 437.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.2276, allocations: 0 / 437.2 MB, free: 12.45 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.841e-06/0.2276, allocations: 0 / 437.2 MB, free: 12.45 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.0008221/0.2285, allocations: 0.5932 MB / 437.8 MB, free: 11.81 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.213e-05/0.2285, allocations: 8.031 kB / 437.8 MB, free: 11.8 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.144e-05/0.2286, allocations: 66.66 kB / 437.9 MB, free: 11.73 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.242e-05/0.2286, allocations: 32.56 kB / 437.9 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000374/0.229, allocations: 319 kB / 438.2 MB, free: 11.35 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.444e-05/0.229, allocations: 16.81 kB / 438.3 MB, free: 11.33 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001106/0.2291, allocations: 35.94 kB / 438.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003387/0.2295, allocations: 290 kB / 438.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.089e-05/0.2295, allocations: 0 / 438.6 MB, free: 10.98 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.194e-05/0.2295, allocations: 12 kB / 438.6 MB, free: 10.97 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.2295, allocations: 7.984 kB / 438.6 MB, free: 10.96 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002524/0.2298, allocations: 195.5 kB / 438.8 MB, free: 10.77 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001166/0.231, allocations: 1.28 MB / 440.1 MB, free: 9.395 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002363/0.2312, allocations: 119.8 kB / 440.2 MB, free: 9.25 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.855e-05/0.2313, allocations: 46.62 kB / 440.2 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.902e-05/0.2313, allocations: 0 / 440.2 MB, free: 9.195 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.2313, allocations: 38.5 kB / 440.3 MB, free: 9.148 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.152e-06/0.2313, allocations: 4 kB / 440.3 MB, free: 9.145 MB / 318.1 MB Notification: Performance of matching and sorting (n=11): time 0.0007316/0.2321, allocations: 0.5273 MB / 440.8 MB, free: 8.562 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.035e-05/0.2321, allocations: 102.8 kB / 440.9 MB, free: 8.438 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.2323, allocations: 250.5 kB / 441.2 MB, free: 8.18 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.2323, allocations: 29.7 kB / 441.2 MB, free: 8.145 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.796e-05/0.2324, allocations: 187.7 kB / 441.4 MB, free: 7.957 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.281e-05/0.2324, allocations: 35.45 kB / 441.4 MB, free: 7.922 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.02e-05/0.2325, allocations: 49.61 kB / 441.4 MB, free: 7.867 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.653e-05/0.2325, allocations: 334.9 kB / 441.8 MB, free: 7.531 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.316e-05/0.2326, allocations: 39.98 kB / 441.8 MB, free: 7.492 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.762e-05/0.2327, allocations: 137.2 kB / 441.9 MB, free: 7.316 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001687/0.2329, allocations: 191.8 kB / 442.1 MB, free: 7.086 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.2329, allocations: 4 kB / 442.1 MB, free: 7.082 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003215/0.2332, allocations: 229.8 kB / 442.4 MB, free: 6.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.62e-05/0.2332, allocations: 4 kB / 442.4 MB, free: 6.844 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2332, allocations: 4 kB / 442.4 MB, free: 6.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001119/0.2334, allocations: 32.78 kB / 442.4 MB, free: 6.805 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002938/0.2337, allocations: 68.28 kB / 442.5 MB, free: 6.738 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.757e-06/0.2337, allocations: 8.547 kB / 442.5 MB, free: 6.73 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001138/0.2338, allocations: 7.938 kB / 442.5 MB, free: 6.723 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.443e-05/0.2338, allocations: 12.09 kB / 442.5 MB, free: 6.711 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001122/0.234, allocations: 149.7 kB / 442.6 MB, free: 6.555 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.416e-05/0.234, allocations: 23.72 kB / 442.7 MB, free: 6.531 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002238/0.2342, allocations: 147.2 kB / 442.8 MB, free: 6.383 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.017e-06/0.2343, allocations: 11.94 kB / 442.8 MB, free: 6.371 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.2343, allocations: 4 kB / 442.8 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.2343, allocations: 0 / 442.8 MB, free: 6.367 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002788/0.2346, allocations: 285.5 kB / 443.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2346, allocations: 0 / 443.1 MB, free: 6.039 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001539/0.2347, allocations: 23.98 kB / 443.1 MB, free: 6.016 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.2347, allocations: 4 kB / 443.1 MB, free: 6.012 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.2348, allocations: 3.984 kB / 443.1 MB, free: 6.008 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.424e-06/0.2348, allocations: 3.938 kB / 443.1 MB, free: 6.004 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2348, allocations: 4 kB / 443.1 MB, free: 6 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003315/0.2351, allocations: 371.2 kB / 443.5 MB, free: 5.621 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.149e-05/0.2352, allocations: 96.77 kB / 443.6 MB, free: 5.508 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.224e-05/0.2352, allocations: 8 kB / 443.6 MB, free: 5.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001427/0.2353, allocations: 7.922 kB / 443.6 MB, free: 5.492 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.48e-05/0.2354, allocations: 4 kB / 443.6 MB, free: 5.488 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.12e-05/0.2354, allocations: 11.98 kB / 443.6 MB, free: 5.477 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001139/0.2355, allocations: 174 kB / 443.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2355, allocations: 0 / 443.8 MB, free: 5.309 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003173/0.2358, allocations: 44 kB / 443.8 MB, free: 5.266 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (pLoadDC.i,pLoadDC.L) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000432/0.2363, allocations: 0.9019 MB / 444.7 MB, free: 4.336 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002721/0.2366, allocations: 213.7 kB / 445 MB, free: 4.105 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.2366, allocations: 0 / 445 MB, free: 4.105 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 6.961e-05/0.2366, allocations: 47.92 kB / 445 MB, free: 4.059 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005013/0.2371, allocations: 57.98 kB / 445.1 MB, free: 4 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002258/0.2394, allocations: 2.72 MB / 447.8 MB, free: 1.105 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001939/0.2396, allocations: 0.7677 MB / 448.5 MB, free: 320 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001036/0.2397, allocations: 34.27 kB / 448.6 MB, free: 284 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000101/0.2398, allocations: 87.41 kB / 448.7 MB, free: 196 kB / 318.1 MB Notification: Performance of SimCode: time 3.3e-07/0.2398, allocations: 0 / 448.7 MB, free: 196 kB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01696/0.2568, allocations: 4.552 MB / 453.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001858/0.257, allocations: 220.2 kB / 453.4 MB, free: 11.4 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.847/2.104, allocations: 0 / 453.4 MB, free: 11.4 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadDC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadDC.pipe 2>&1)