Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) 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(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Impedance,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance",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.001062/0.001062, allocations: 167.6 kB / 16.07 MB, free: 5.598 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.238/1.238, allocations: 205.4 MB / 222.2 MB, free: 9.016 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.0006974/0.0006974, allocations: 84.86 kB / 270.6 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1653/0.1653, allocations: 38.08 MB / 356.9 MB, free: 1.719 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003346/0.0003347, allocations: 12 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.25/0.2504, allocations: 56.32 MB / 479.7 MB, free: 9.223 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Impedance): time 0.005051/0.2554, allocations: 4.631 MB / 484.4 MB, free: 6.176 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002259/0.2577, allocations: 1.605 MB / 486 MB, free: 5.043 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002125/0.258, allocations: 26.97 kB / 486 MB, free: 5.031 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002145/0.2582, allocations: 85.45 kB / 486.1 MB, free: 4.984 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005563/0.2588, allocations: 255.9 kB / 486.3 MB, free: 4.848 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000599/0.2594, allocations: 252.1 kB / 486.6 MB, free: 4.746 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006561/0.26, allocations: 0.6653 MB / 487.2 MB, free: 4.504 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008005/0.2608, allocations: 0.5742 MB / 487.8 MB, free: 4.145 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002765/0.2611, allocations: 214.2 kB / 488 MB, free: 4.059 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004019/0.2615, allocations: 314.7 kB / 488.3 MB, free: 3.957 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 4.401e-05/0.2616, allocations: 16.5 kB / 488.3 MB, free: 3.957 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002621/0.2619, allocations: 131.3 kB / 488.5 MB, free: 3.926 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002254/0.2621, allocations: 216.5 kB / 488.7 MB, free: 3.867 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002004/0.2623, allocations: 237.9 kB / 488.9 MB, free: 3.723 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004869/0.2628, allocations: 447.5 kB / 489.4 MB, free: 3.625 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2628, allocations: 1.344 kB / 489.4 MB, free: 3.625 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2628, allocations: 0 / 489.4 MB, free: 3.625 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.564e-06/0.2628, allocations: 0 / 489.4 MB, free: 3.625 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 113 * Number of variables: 113 Notification: Performance of Generate backend data structure: time 0.001029/0.2639, allocations: 0.6791 MB / 490 MB, free: 3.09 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.2639, allocations: 8.719 kB / 490 MB, free: 3.09 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.398e-05/0.264, allocations: 99.53 kB / 490.1 MB, free: 3.012 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005316/0.2646, allocations: 95.16 kB / 490.2 MB, free: 2.98 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004854/0.265, allocations: 394.1 kB / 490.6 MB, free: 2.688 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.891e-05/0.2651, allocations: 34.09 kB / 490.7 MB, free: 2.672 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000134/0.2652, allocations: 54.75 kB / 490.7 MB, free: 2.652 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009181/0.2662, allocations: 0.6395 MB / 491.3 MB, free: 2.289 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.41e-05/0.2662, allocations: 9.969 kB / 491.4 MB, free: 2.281 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.557e-05/0.2662, allocations: 17.28 kB / 491.4 MB, free: 2.27 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001197/0.2664, allocations: 29.25 kB / 491.4 MB, free: 2.266 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000747/0.2671, allocations: 481.5 kB / 491.9 MB, free: 2.117 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003174/0.2703, allocations: 3.013 MB / 494.9 MB, free: 15.76 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003157/0.2706, allocations: 180.3 kB / 495.1 MB, free: 15.66 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001648/0.2708, allocations: 101.7 kB / 495.2 MB, free: 15.61 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.251e-05/0.2709, allocations: 11.94 kB / 495.2 MB, free: 15.6 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.877e-05/0.2709, allocations: 36.41 kB / 495.2 MB, free: 15.56 MB / 330.7 MB Notification: Performance of pre-optimization done (n=20): time 1.914e-06/0.2709, allocations: 1.062 kB / 495.2 MB, free: 15.56 MB / 330.7 MB Notification: Performance of matching and sorting (n=21): time 0.001469/0.2724, allocations: 0.8448 MB / 496.1 MB, free: 15 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.923e-05/0.2725, allocations: 87.91 kB / 496.1 MB, free: 14.9 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004716/0.2729, allocations: 346.4 kB / 496.5 MB, free: 14.72 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.372e-05/0.273, allocations: 26.89 kB / 496.5 MB, free: 14.69 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002165/0.2732, allocations: 304.9 kB / 496.8 MB, free: 14.45 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.371e-05/0.2733, allocations: 77.22 kB / 496.9 MB, free: 14.39 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.242e-05/0.2733, allocations: 13.38 kB / 496.9 MB, free: 14.38 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001584/0.2735, allocations: 343.1 kB / 497.2 MB, free: 14.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002236/0.2737, allocations: 123.6 kB / 497.3 MB, free: 14.02 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003558/0.2741, allocations: 328 kB / 497.7 MB, free: 13.71 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006231/0.2747, allocations: 0.4892 MB / 498.2 MB, free: 13.32 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.37e-06/0.2747, allocations: 5.406 kB / 498.2 MB, free: 13.31 MB / 330.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001031/0.2757, allocations: 0.5531 MB / 498.7 MB, free: 13.08 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.315e-05/0.2758, allocations: 10.98 kB / 498.7 MB, free: 13.08 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005504/0.2763, allocations: 275.3 kB / 499 MB, free: 12.98 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003415/0.2767, allocations: 80.14 kB / 499.1 MB, free: 12.96 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003153/0.277, allocations: 101.8 kB / 499.2 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001608/0.2786, allocations: 1.596 MB / 0.489 GB, free: 11.53 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002483/0.2789, allocations: 24.39 kB / 0.4891 GB, free: 11.52 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.447e-05/0.2789, allocations: 22.58 kB / 0.4891 GB, free: 11.51 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (50): * Single equations (assignments): 49 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000262/0.2792, allocations: 223.2 kB / 0.4893 GB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.626e-05/0.2793, allocations: 30.53 kB / 0.4893 GB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005131/0.2798, allocations: 291.9 kB / 0.4896 GB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.2798, allocations: 7.406 kB / 0.4896 GB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.883e-06/0.2798, allocations: 1.156 kB / 0.4896 GB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.2798, allocations: 1.359 kB / 0.4896 GB, free: 11.19 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001234/0.2811, allocations: 0.7956 MB / 0.4904 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.962e-06/0.2811, allocations: 5.938 kB / 0.4904 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002954/0.2814, allocations: 57.97 kB / 0.4904 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.2814, allocations: 5.281 kB / 0.4904 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.271e-05/0.2814, allocations: 5.688 kB / 0.4905 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.2814, allocations: 2 kB / 0.4905 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.2814, allocations: 1.484 kB / 0.4905 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005989/0.2821, allocations: 482.5 kB / 0.4909 GB, free: 10.4 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.595e-05/0.2821, allocations: 111.6 kB / 0.491 GB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.505e-05/0.2822, allocations: 8.531 kB / 0.491 GB, free: 10.28 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001662/0.2824, allocations: 14.16 kB / 0.491 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.484e-05/0.2824, allocations: 16.45 kB / 0.4911 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.152e-05/0.2825, allocations: 11.95 kB / 0.4911 GB, free: 10.26 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002875/0.2827, allocations: 229 kB / 0.4913 GB, free: 10.14 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2828, allocations: 0 / 0.4913 GB, free: 10.14 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000476/0.2832, allocations: 97.73 kB / 0.4914 GB, free: 10.13 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (ind.i[1],ind.i[2],ind.i[3]) * 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 (24): * Single equations (assignments): 23 * 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.0008434/0.2841, allocations: 1.001 MB / 0.4924 GB, free: 9.285 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006782/0.2848, allocations: 446 kB / 0.4928 GB, free: 9.023 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2848, allocations: 0 / 0.4928 GB, free: 9.023 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001589/0.285, allocations: 110.4 kB / 0.4929 GB, free: 8.977 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004823/0.2854, allocations: 61 kB / 0.4929 GB, free: 8.945 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003877/0.2893, allocations: 2.721 MB / 0.4956 GB, free: 7.012 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005199/0.2899, allocations: 0.869 MB / 0.4965 GB, free: 6.227 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002104/0.2901, allocations: 155 kB / 0.4966 GB, free: 6.098 MB / 330.7 MB Notification: Performance of SimCode: time 3.81e-07/0.2901, allocations: 0 / 0.4966 GB, free: 6.098 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.211/3.501, allocations: 6.987 MB / 0.5034 GB, free: 1.438 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Impedance.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Impedance.pipe 2>&1)