Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo", uses=false) Using package PowerSysPro with version 2.3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSysPro.Examples.OneSourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesOneLoad",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSysPro.Examples.OneSourceTwoLinesOneLoad,fileNamePrefix="PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesOneLoad",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.00117/0.00117, allocations: 104.6 kB / 16.31 MB, free: 5.879 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.001243/0.001243, allocations: 191.2 kB / 17.24 MB, free: 5.539 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.387/1.387, allocations: 222.9 MB / 240.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSysPro 2.3.1-master/package.mo): time 0.05672/0.05672, allocations: 8.097 MB / 299.2 MB, free: 6.695 MB / 238.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 67.89 kB / 361.8 MB, free: 8.008 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2142/0.2154, allocations: 51.5 MB / 413.3 MB, free: 25.55 MB / 302.1 MB Notification: Performance of NFInst.instantiate(PowerSysPro.Examples.OneSourceTwoLinesOneLoad): time 0.002275/0.2178, allocations: 1.564 MB / 414.9 MB, free: 23.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001387/0.2192, allocations: 1.547 MB / 416.5 MB, free: 22.43 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.089e-05/0.2193, allocations: 0 / 416.5 MB, free: 22.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003008/0.2196, allocations: 123.3 kB / 416.6 MB, free: 22.31 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00023/0.2198, allocations: 111.3 kB / 416.7 MB, free: 22.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001215/0.221, allocations: 0.9136 MB / 417.6 MB, free: 21.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002184/0.2213, allocations: 234.9 kB / 417.8 MB, free: 21.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001415/0.2214, allocations: 88.14 kB / 417.9 MB, free: 20.96 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.952e-05/0.2215, allocations: 91.66 kB / 418 MB, free: 20.87 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00015/0.2216, allocations: 127.5 kB / 418.1 MB, free: 20.75 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.096e-05/0.2217, allocations: 16 kB / 418.1 MB, free: 20.73 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002965/0.222, allocations: 203.8 kB / 418.3 MB, free: 20.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.102e-05/0.222, allocations: 51.77 kB / 418.4 MB, free: 20.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.639e-05/0.2221, allocations: 111.5 kB / 418.5 MB, free: 20.37 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003488/0.2225, allocations: 385.1 kB / 418.9 MB, free: 20 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2225, allocations: 4 kB / 418.9 MB, free: 19.99 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.2225, allocations: 0 / 418.9 MB, free: 19.99 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.282e-06/0.2225, allocations: 0 / 418.9 MB, free: 19.99 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: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.00219/0.2247, allocations: 0.8072 MB / 419.7 MB, free: 19.13 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.653e-05/0.2248, allocations: 16.03 kB / 419.7 MB, free: 19.12 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.251e-05/0.2248, allocations: 50.73 kB / 419.8 MB, free: 19.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.5e-05/0.2249, allocations: 24.66 kB / 419.8 MB, free: 19.04 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002249/0.2251, allocations: 263.8 kB / 420 MB, free: 18.74 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.494e-05/0.2251, allocations: 12.7 kB / 420 MB, free: 18.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.31e-05/0.2252, allocations: 20.38 kB / 420.1 MB, free: 18.71 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003386/0.2255, allocations: 264 kB / 420.3 MB, free: 18.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.899e-06/0.2255, allocations: 3.938 kB / 420.3 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.342e-05/0.2255, allocations: 4 kB / 420.3 MB, free: 18.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.2256, allocations: 8 kB / 420.3 MB, free: 18.43 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002876/0.2259, allocations: 239.9 kB / 420.6 MB, free: 18.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001104/0.227, allocations: 1.125 MB / 421.7 MB, free: 16.95 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005699/0.2275, allocations: 306.5 kB / 422 MB, free: 16.64 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001791/0.2277, allocations: 156.8 kB / 422.2 MB, free: 16.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.277e-05/0.2278, allocations: 15.98 kB / 422.2 MB, free: 16.46 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.561e-05/0.2278, allocations: 34.55 kB / 422.2 MB, free: 16.42 MB / 302.1 MB Notification: Performance of pre-optimization done (n=25): time 1.493e-06/0.2278, allocations: 0 / 422.2 MB, free: 16.42 MB / 302.1 MB Notification: Performance of matching and sorting (n=25): time 0.002942/0.2308, allocations: 0.9729 MB / 423.2 MB, free: 15.42 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.864e-05/0.2308, allocations: 55.41 kB / 423.2 MB, free: 15.36 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001665/0.231, allocations: 198.4 kB / 423.4 MB, free: 15.15 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.231, allocations: 29.7 kB / 423.5 MB, free: 15.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.094e-05/0.2311, allocations: 124.4 kB / 423.6 MB, free: 14.99 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.822e-05/0.2311, allocations: 90.73 kB / 423.7 MB, free: 14.9 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.581e-05/0.2312, allocations: 65.59 kB / 423.7 MB, free: 14.83 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.869e-05/0.2313, allocations: 330.8 kB / 424.1 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001918/0.2315, allocations: 156 kB / 424.2 MB, free: 14.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001864/0.2317, allocations: 164.9 kB / 424.4 MB, free: 14.19 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004169/0.2321, allocations: 349.8 kB / 424.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.2321, allocations: 0 / 424.7 MB, free: 13.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.001341/0.2335, allocations: 0.6387 MB / 425.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.606e-05/0.2335, allocations: 6.5 kB / 425.4 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.2335, allocations: 3.938 kB / 425.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001315/0.2349, allocations: 328.5 kB / 425.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001594/0.235, allocations: 39.98 kB / 425.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003431/0.2385, allocations: 2.777 MB / 428.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.2387, allocations: 27.69 kB / 428.5 MB, free: 9.887 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.311e-05/0.2387, allocations: 12 kB / 428.5 MB, free: 9.875 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0001025/0.2388, allocations: 137.7 kB / 428.7 MB, free: 9.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.269e-05/0.2389, allocations: 15.81 kB / 428.7 MB, free: 9.715 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001414/0.2403, allocations: 0.6325 MB / 429.3 MB, free: 9.066 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.487e-06/0.2403, allocations: 4 kB / 429.3 MB, free: 9.062 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.873e-06/0.2403, allocations: 3.938 kB / 429.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.2403, allocations: 0 / 429.3 MB, free: 9.059 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000294/0.2406, allocations: 381.2 kB / 429.7 MB, free: 8.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.2406, allocations: 3.984 kB / 429.7 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.939e-05/0.2407, allocations: 28 kB / 429.7 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001245/0.242, allocations: 320.5 kB / 430 MB, free: 8.289 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.927e-05/0.242, allocations: 4 kB / 430 MB, free: 8.285 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003074/0.2451, allocations: 2.723 MB / 432.8 MB, free: 5.426 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2451, allocations: 3.938 kB / 432.8 MB, free: 5.422 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001297/0.2464, allocations: 0.6681 MB / 433.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.821e-05/0.2465, allocations: 100.8 kB / 433.5 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.554e-05/0.2465, allocations: 12 kB / 433.5 MB, free: 4.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002115/0.2467, allocations: 11.98 kB / 433.6 MB, free: 4.594 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.438e-05/0.2468, allocations: 23.97 kB / 433.6 MB, free: 4.57 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.2468, allocations: 4 kB / 433.6 MB, free: 4.566 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001126/0.2469, allocations: 147.1 kB / 433.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.7e-07/0.2469, allocations: 0 / 433.7 MB, free: 4.422 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004052/0.2473, allocations: 95.94 kB / 433.8 MB, free: 4.328 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (20): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(6,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001526/0.2489, allocations: 1.236 MB / 435.1 MB, free: 3.062 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001301/0.2502, allocations: 0.6402 MB / 435.7 MB, free: 2.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.2502, allocations: 0 / 435.7 MB, free: 2.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008983/0.2511, allocations: 434.4 kB / 436.1 MB, free: 1.973 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000347/0.2515, allocations: 27.97 kB / 436.2 MB, free: 1.945 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004728/0.2562, allocations: 3.237 MB / 439.4 MB, free: 14.62 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000318/0.2566, allocations: 0.7523 MB / 440.1 MB, free: 13.84 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001096/0.2567, allocations: 29.92 kB / 440.2 MB, free: 13.81 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001041/0.2568, allocations: 67.41 kB / 440.2 MB, free: 13.74 MB / 318.1 MB Notification: Performance of SimCode: time 3.81e-07/0.2568, allocations: 0 / 440.2 MB, free: 13.74 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02973/0.2865, allocations: 8.28 MB / 448.5 MB, free: 5.57 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.75/11.04, allocations: 12.05 kB / 448.5 MB, free: 5.559 MB / 318.1 MB (rm -f PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.pipe ; mkfifo PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.pipe ; head -c 1048576 < PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.pipe >> ../files/PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.sim & python3 -m fmpy simulate --output-file PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 PowerSysPro_PowerSysPro_Examples_OneSourceTwoLinesOneLoad.fmu > PowerSysPro_PowerSysPro.Examples.OneSourceTwoLinesOneLoad.pipe 2>&1)