Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.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.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC",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.0008837/0.0008838, allocations: 92.48 kB / 16.65 MB, free: 6.59 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.0008873/0.0008873, allocations: 182.9 kB / 17.56 MB, free: 6.203 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.269/1.269, allocations: 205.4 MB / 223.7 MB, free: 13.09 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1646/0.1646, allocations: 38.05 MB / 310.1 MB, free: 5.91 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.0005204/0.0005203, allocations: 16 kB / 377.3 MB, free: 2.605 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2349/0.2355, allocations: 56.33 MB / 433.6 MB, free: 18.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.003521/0.239, allocations: 4.464 MB / 438.1 MB, free: 14.29 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001178/0.2402, allocations: 1.151 MB / 439.2 MB, free: 13.13 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001714/0.2404, allocations: 23.81 kB / 439.2 MB, free: 13.11 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001379/0.2405, allocations: 39.69 kB / 439.3 MB, free: 13.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000352/0.2409, allocations: 187.1 kB / 439.5 MB, free: 12.88 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001484/0.2411, allocations: 87.89 kB / 439.5 MB, free: 12.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004119/0.2415, allocations: 0.6308 MB / 440.2 MB, free: 12.16 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001862/0.2417, allocations: 127.3 kB / 440.3 MB, free: 12.04 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001762/0.2419, allocations: 175.1 kB / 440.5 MB, free: 11.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002863/0.2422, allocations: 235.1 kB / 440.7 MB, free: 11.64 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.326e-05/0.2422, allocations: 16 kB / 440.7 MB, free: 11.62 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.893e-05/0.2422, allocations: 12 kB / 440.7 MB, free: 11.61 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.897e-05/0.2423, allocations: 107.6 kB / 440.8 MB, free: 11.51 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001204/0.2425, allocations: 192.8 kB / 441 MB, free: 11.31 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002123/0.2427, allocations: 346.7 kB / 441.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.2427, allocations: 0 / 441.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2427, allocations: 4 kB / 441.4 MB, free: 10.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.2427, allocations: 0 / 441.4 MB, free: 10.97 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: 64 * Number of variables: 64 Notification: Performance of Generate backend data structure: time 0.0009677/0.2437, allocations: 0.644 MB / 442 MB, free: 10.28 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.235e-05/0.2437, allocations: 8.031 kB / 442 MB, free: 10.27 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.256e-05/0.2438, allocations: 58.73 kB / 442.1 MB, free: 10.2 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.738e-05/0.2439, allocations: 44.45 kB / 442.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004295/0.2443, allocations: 382.9 kB / 442.5 MB, free: 9.746 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.674e-05/0.2443, allocations: 20.56 kB / 442.5 MB, free: 9.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.446e-05/0.2444, allocations: 24 kB / 442.5 MB, free: 9.703 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003978/0.2448, allocations: 368.7 kB / 442.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.2448, allocations: 0 / 442.9 MB, free: 9.312 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.503e-05/0.2448, allocations: 12 kB / 442.9 MB, free: 9.301 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.023e-06/0.2448, allocations: 8 kB / 442.9 MB, free: 9.293 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003072/0.2452, allocations: 254 kB / 443.2 MB, free: 9.047 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001221/0.2464, allocations: 1.462 MB / 444.6 MB, free: 7.488 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001981/0.2466, allocations: 149 kB / 444.8 MB, free: 7.324 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.443e-05/0.2467, allocations: 81.73 kB / 444.8 MB, free: 7.238 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.2467, allocations: 8 kB / 444.9 MB, free: 7.23 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.793e-05/0.2467, allocations: 38.48 kB / 444.9 MB, free: 7.184 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.293e-06/0.2468, allocations: 0 / 444.9 MB, free: 7.184 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0008609/0.2476, allocations: 0.6754 MB / 445.6 MB, free: 6.457 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.912e-05/0.2477, allocations: 85.23 kB / 445.6 MB, free: 6.355 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.2479, allocations: 304.5 kB / 445.9 MB, free: 6.047 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.332e-05/0.2479, allocations: 29.7 kB / 446 MB, free: 6.012 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.824e-05/0.248, allocations: 219.5 kB / 446.2 MB, free: 5.793 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.085e-05/0.248, allocations: 51.19 kB / 446.2 MB, free: 5.742 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.115e-05/0.2481, allocations: 29.7 kB / 446.3 MB, free: 5.707 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.644e-05/0.2481, allocations: 338.8 kB / 446.6 MB, free: 5.367 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.916e-05/0.2482, allocations: 67.95 kB / 446.7 MB, free: 5.301 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.2483, allocations: 160.8 kB / 446.8 MB, free: 5.098 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002223/0.2486, allocations: 260.6 kB / 447.1 MB, free: 4.797 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.353e-06/0.2486, allocations: 0 / 447.1 MB, free: 4.797 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003127/0.2489, allocations: 292.9 kB / 447.4 MB, free: 4.504 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.2489, allocations: 8 kB / 447.4 MB, free: 4.496 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.2489, allocations: 4 kB / 447.4 MB, free: 4.492 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.541e-05/0.2489, allocations: 7.984 kB / 447.4 MB, free: 4.484 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002163/0.2492, allocations: 55.91 kB / 447.4 MB, free: 4.43 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.2492, allocations: 11.92 kB / 447.4 MB, free: 4.418 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001491/0.2493, allocations: 15.98 kB / 447.5 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.2493, allocations: 12.34 kB / 447.5 MB, free: 4.391 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (29): * Single equations (assignments): 29 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001087/0.2495, allocations: 169.7 kB / 447.6 MB, free: 4.215 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.362e-05/0.2495, allocations: 35.56 kB / 447.7 MB, free: 4.18 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003066/0.2498, allocations: 236 kB / 447.9 MB, free: 3.945 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.825e-06/0.2498, allocations: 4 kB / 447.9 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.2498, allocations: 0 / 447.9 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.637e-06/0.2499, allocations: 0 / 447.9 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005416/0.2504, allocations: 0.6201 MB / 448.5 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.2504, allocations: 0 / 448.5 MB, free: 3.262 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001774/0.2506, allocations: 39.98 kB / 448.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.265e-06/0.2506, allocations: 0 / 448.6 MB, free: 3.223 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.427e-05/0.2506, allocations: 8 kB / 448.6 MB, free: 3.215 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.2506, allocations: 3.984 kB / 448.6 MB, free: 3.211 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/0.2506, allocations: 3.938 kB / 448.6 MB, free: 3.207 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003731/0.251, allocations: 436.7 kB / 449 MB, free: 2.758 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.443e-05/0.2511, allocations: 100.8 kB / 449.1 MB, free: 2.641 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.534e-05/0.2511, allocations: 8 kB / 449.1 MB, free: 2.633 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001494/0.2513, allocations: 11.98 kB / 449.1 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.501e-05/0.2513, allocations: 7.984 kB / 449.1 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.147e-05/0.2513, allocations: 7.938 kB / 449.1 MB, free: 2.605 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001398/0.2515, allocations: 215 kB / 449.4 MB, free: 2.395 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2515, allocations: 0 / 449.4 MB, free: 2.395 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003012/0.2518, allocations: 64.06 kB / 449.4 MB, free: 2.332 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (zLoadAC.psi) * 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 (20): * Single equations (assignments): 19 * 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.0004856/0.2523, allocations: 0.9472 MB / 450.4 MB, free: 1.352 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002462/0.2525, allocations: 191.7 kB / 450.6 MB, free: 1.164 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.2525, allocations: 4 kB / 450.6 MB, free: 1.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.2526, allocations: 87.83 kB / 450.6 MB, free: 1.074 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004989/0.2531, allocations: 69.48 kB / 450.7 MB, free: 1.008 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002869/0.256, allocations: 3.06 MB / 453.8 MB, free: 13.77 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003436/0.2564, allocations: 0.8028 MB / 454.6 MB, free: 12.94 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001753/0.2566, allocations: 50.94 kB / 454.6 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001504/0.2567, allocations: 111.3 kB / 454.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2567, allocations: 0 / 454.7 MB, free: 12.78 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0156/0.2723, allocations: 5.556 MB / 460.3 MB, free: 7.277 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002097/0.2726, allocations: 197.7 kB / 460.5 MB, free: 7.02 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.836/2.108, allocations: 0 / 460.5 MB, free: 7.02 MB / 334.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_LoadAC.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC.pipe 2>&1)