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.001157/0.001157, allocations: 94.94 kB / 16.3 MB, free: 5.531 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.001562/0.001562, allocations: 178 kB / 17.19 MB, free: 5.465 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.614/1.614, allocations: 205.4 MB / 223.4 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.199/0.199, allocations: 38.05 MB / 309.7 MB, free: 6.141 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.0005657/0.0005657, allocations: 20 kB / 376.6 MB, free: 3.113 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2614/0.262, allocations: 56.33 MB / 432.9 MB, free: 18.82 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Elementary.LoadAC): time 0.004093/0.2661, allocations: 4.115 MB / 437 MB, free: 14.69 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001747/0.2679, allocations: 1.132 MB / 438.2 MB, free: 13.55 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003673/0.2683, allocations: 23.81 kB / 438.2 MB, free: 13.53 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001967/0.2685, allocations: 47.66 kB / 438.2 MB, free: 13.48 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006074/0.2691, allocations: 211.3 kB / 438.4 MB, free: 13.27 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002979/0.2694, allocations: 115.8 kB / 438.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003769/0.2698, allocations: 271.4 kB / 438.8 MB, free: 12.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002025/0.27, allocations: 114.2 kB / 438.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002029/0.2702, allocations: 163.4 kB / 439.1 MB, free: 12.63 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002544/0.2705, allocations: 179.3 kB / 439.3 MB, free: 12.45 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.335e-05/0.2705, allocations: 19.98 kB / 439.3 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.103e-05/0.2706, allocations: 12 kB / 439.3 MB, free: 12.42 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.782e-05/0.2707, allocations: 99.7 kB / 439.4 MB, free: 12.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.54e-05/0.2707, allocations: 85.52 kB / 439.5 MB, free: 12.23 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001889/0.2709, allocations: 271.3 kB / 439.7 MB, free: 11.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.271, allocations: 4 kB / 439.7 MB, free: 11.96 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.271, allocations: 0 / 439.7 MB, free: 11.96 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.271, allocations: 0 / 439.7 MB, free: 11.96 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.001013/0.272, allocations: 0.6399 MB / 440.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.272, allocations: 8.031 kB / 440.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.035e-05/0.2721, allocations: 78.42 kB / 440.5 MB, free: 11.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.712e-05/0.2722, allocations: 35.53 kB / 440.5 MB, free: 11.14 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005167/0.2727, allocations: 362.7 kB / 440.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.801e-05/0.2727, allocations: 20.56 kB / 440.9 MB, free: 10.73 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.119e-05/0.2728, allocations: 24 kB / 440.9 MB, free: 10.71 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004098/0.2732, allocations: 364.7 kB / 441.3 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.2732, allocations: 3.938 kB / 441.3 MB, free: 10.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.537e-05/0.2733, allocations: 8 kB / 441.3 MB, free: 10.31 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.2733, allocations: 11.95 kB / 441.3 MB, free: 10.3 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003206/0.2736, allocations: 254 kB / 441.5 MB, free: 10.05 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.2749, allocations: 1.45 MB / 443 MB, free: 8.504 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001951/0.2752, allocations: 157 kB / 443.1 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.073e-05/0.2752, allocations: 0 / 443.1 MB, free: 8.332 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.088e-05/0.2752, allocations: 46.52 kB / 443.2 MB, free: 8.277 MB / 318.1 MB Notification: Performance of pre-optimization done (n=15): time 1.112e-06/0.2752, allocations: 0 / 443.2 MB, free: 8.277 MB / 318.1 MB Notification: Performance of matching and sorting (n=16): time 0.0009324/0.2762, allocations: 0.6711 MB / 443.8 MB, free: 7.555 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.2762, allocations: 81.09 kB / 443.9 MB, free: 7.457 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002262/0.2764, allocations: 292.6 kB / 444.2 MB, free: 7.156 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.441e-05/0.2765, allocations: 25.7 kB / 444.2 MB, free: 7.125 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.488e-05/0.2766, allocations: 223.7 kB / 444.5 MB, free: 6.902 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.421e-05/0.2766, allocations: 63.17 kB / 444.5 MB, free: 6.84 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.101e-05/0.2766, allocations: 4 kB / 444.5 MB, free: 6.836 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.602e-05/0.2767, allocations: 342.8 kB / 444.9 MB, free: 6.492 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.193e-05/0.2768, allocations: 63.95 kB / 444.9 MB, free: 6.43 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001207/0.2769, allocations: 164.8 kB / 445.1 MB, free: 6.223 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001186/0.277, allocations: 95.98 kB / 445.2 MB, free: 6.129 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.277, allocations: 0 / 445.2 MB, free: 6.129 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0003184/0.2774, allocations: 289.1 kB / 445.5 MB, free: 5.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.638e-05/0.2774, allocations: 7.953 kB / 445.5 MB, free: 5.832 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.2774, allocations: 15.92 kB / 445.5 MB, free: 5.816 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.399e-05/0.2774, allocations: 8 kB / 445.5 MB, free: 5.809 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002318/0.2776, allocations: 55.91 kB / 445.5 MB, free: 5.754 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.498e-06/0.2777, allocations: 8 kB / 445.5 MB, free: 5.746 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001528/0.2778, allocations: 11.98 kB / 445.6 MB, free: 5.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.2778, allocations: 12 kB / 445.6 MB, free: 5.723 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001203/0.278, allocations: 165.9 kB / 445.7 MB, free: 5.551 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.464e-05/0.278, allocations: 27.7 kB / 445.8 MB, free: 5.523 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003098/0.2783, allocations: 247.8 kB / 446 MB, free: 5.277 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.376e-06/0.2784, allocations: 4 kB / 446 MB, free: 5.273 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.249e-06/0.2784, allocations: 3.953 kB / 446 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.2784, allocations: 0 / 446 MB, free: 5.27 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005827/0.279, allocations: 0.6162 MB / 446.6 MB, free: 4.594 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.279, allocations: 8.031 kB / 446.6 MB, free: 4.586 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.2792, allocations: 31.98 kB / 446.7 MB, free: 4.555 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.2792, allocations: 3.953 kB / 446.7 MB, free: 4.551 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.599e-05/0.2792, allocations: 8 kB / 446.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.2792, allocations: 11.91 kB / 446.7 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2792, allocations: 0 / 446.7 MB, free: 4.531 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004054/0.2796, allocations: 448.4 kB / 447.1 MB, free: 4.059 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.644e-05/0.2797, allocations: 100.9 kB / 447.2 MB, free: 3.941 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.871e-05/0.2797, allocations: 4 kB / 447.2 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001513/0.2799, allocations: 11.98 kB / 447.2 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.381e-05/0.2799, allocations: 11.98 kB / 447.2 MB, free: 3.914 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.2799, allocations: 7.938 kB / 447.3 MB, free: 3.906 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001526/0.2801, allocations: 215 kB / 447.5 MB, free: 3.695 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2801, allocations: 4.062 kB / 447.5 MB, free: 3.691 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003402/0.2805, allocations: 60 kB / 447.5 MB, free: 3.633 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005531/0.281, allocations: 1.116 MB / 448.6 MB, free: 2.477 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0002456/0.2813, allocations: 179.8 kB / 448.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.617e-06/0.2813, allocations: 0 / 448.8 MB, free: 2.301 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001053/0.2814, allocations: 96.73 kB / 448.9 MB, free: 2.207 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003831/0.2818, allocations: 64.62 kB / 449 MB, free: 2.145 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002701/0.2845, allocations: 3.933 MB / 452.9 MB, free: 14.09 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003502/0.2849, allocations: 0.8184 MB / 453.7 MB, free: 13.25 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001799/0.2851, allocations: 50.94 kB / 453.8 MB, free: 13.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001579/0.2852, allocations: 111.4 kB / 453.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2852, allocations: 4 kB / 453.9 MB, free: 13.09 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01689/0.3021, allocations: 5.6 MB / 459.5 MB, free: 7.547 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001966/0.3024, allocations: 186.7 kB / 459.7 MB, free: 7.297 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.661/1.963, allocations: 0 / 459.7 MB, free: 7.297 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/linux/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) Environment - environmentSimulation: