Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.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.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.Source,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source",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.001502/0.001502, allocations: 172 kB / 16.07 MB, free: 5.723 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.276/1.276, allocations: 205.4 MB / 222.2 MB, free: 9.027 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.0008105/0.0008104, allocations: 90.06 kB / 270.6 MB, free: 8.262 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.1618/0.1618, allocations: 38.08 MB / 356.9 MB, free: 1.734 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003648/0.0003649, allocations: 12 kB / 423.4 MB, free: 37.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2202/0.2206, allocations: 56.33 MB / 479.7 MB, free: 9.238 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.Source): time 0.004175/0.2248, allocations: 4.467 MB / 484.2 MB, free: 6.305 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002306/0.2272, allocations: 1.646 MB / 485.9 MB, free: 5.145 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003747/0.2276, allocations: 25.5 kB / 485.9 MB, free: 5.133 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002462/0.2278, allocations: 85.17 kB / 486 MB, free: 5.086 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007963/0.2286, allocations: 303 kB / 486.3 MB, free: 4.926 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007434/0.2294, allocations: 250.8 kB / 486.5 MB, free: 4.82 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008459/0.2302, allocations: 0.7441 MB / 487.2 MB, free: 4.559 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006464/0.2309, allocations: 447 kB / 487.7 MB, free: 4.258 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004286/0.2313, allocations: 222.1 kB / 487.9 MB, free: 4.172 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005726/0.2319, allocations: 368.9 kB / 488.3 MB, free: 4.07 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.713e-05/0.232, allocations: 19.84 kB / 488.3 MB, free: 4.07 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000501/0.2325, allocations: 234.7 kB / 488.5 MB, free: 4.008 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002465/0.2328, allocations: 214.8 kB / 488.7 MB, free: 3.949 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003087/0.2331, allocations: 242.4 kB / 489 MB, free: 3.805 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00061/0.2337, allocations: 0.4894 MB / 489.4 MB, free: 3.699 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2337, allocations: 0 / 489.4 MB, free: 3.699 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.2337, allocations: 0 / 489.4 MB, free: 3.699 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.729e-05/0.2337, allocations: 1.812 kB / 489.4 MB, free: 3.699 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: 119 * Number of variables: 119 Notification: Performance of Generate backend data structure: time 0.001267/0.235, allocations: 0.6899 MB / 490.1 MB, free: 3.16 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.585e-05/0.2351, allocations: 9.562 kB / 490.1 MB, free: 3.16 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001259/0.2352, allocations: 83.08 kB / 490.2 MB, free: 3.098 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006184/0.2358, allocations: 98.47 kB / 490.3 MB, free: 3.062 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005599/0.2364, allocations: 401.4 kB / 490.7 MB, free: 2.77 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.336e-05/0.2364, allocations: 27.64 kB / 490.7 MB, free: 2.754 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001328/0.2366, allocations: 47.7 kB / 490.8 MB, free: 2.738 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009801/0.2376, allocations: 0.6975 MB / 491.5 MB, free: 2.418 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.832e-05/0.2376, allocations: 1.125 kB / 491.5 MB, free: 2.418 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.395e-05/0.2376, allocations: 19.64 kB / 491.5 MB, free: 2.402 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002122/0.2379, allocations: 70 kB / 491.6 MB, free: 2.391 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000987/0.2388, allocations: 0.6653 MB / 492.2 MB, free: 2.191 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003135/0.242, allocations: 2.654 MB / 494.9 MB, free: 416 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004765/0.2425, allocations: 314.6 kB / 495.2 MB, free: 272 kB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002484/0.2427, allocations: 204 kB / 495.4 MB, free: 188 kB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.131e-05/0.2428, allocations: 4.391 kB / 495.4 MB, free: 188 kB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.731e-05/0.2428, allocations: 40.31 kB / 495.4 MB, free: 140 kB / 314.7 MB Notification: Performance of pre-optimization done (n=39): time 2.325e-06/0.2428, allocations: 5.094 kB / 495.5 MB, free: 136 kB / 314.7 MB Notification: Performance of matching and sorting (n=40): time 0.001926/0.2447, allocations: 1.287 MB / 496.7 MB, free: 15.45 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.41e-05/0.2448, allocations: 85.69 kB / 496.8 MB, free: 15.35 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003258/0.2451, allocations: 287.9 kB / 497.1 MB, free: 15.19 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.82e-05/0.2452, allocations: 34.86 kB / 497.1 MB, free: 15.15 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001576/0.2453, allocations: 254 kB / 497.4 MB, free: 14.94 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001114/0.2455, allocations: 136.2 kB / 497.5 MB, free: 14.84 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.182e-05/0.2455, allocations: 6.781 kB / 497.5 MB, free: 14.83 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001177/0.2456, allocations: 350.3 kB / 497.9 MB, free: 14.5 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000267/0.2459, allocations: 186 kB / 498 MB, free: 14.44 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003419/0.2462, allocations: 326.2 kB / 498.4 MB, free: 14.21 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006768/0.2469, allocations: 0.5616 MB / 498.9 MB, free: 13.88 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.2469, allocations: 1.344 kB / 498.9 MB, free: 13.88 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001194/0.2481, allocations: 0.6743 MB / 499.6 MB, free: 13.6 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.566e-05/0.2482, allocations: 6.969 kB / 499.6 MB, free: 13.6 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0008038/0.249, allocations: 482.5 kB / 0.4884 GB, free: 13.44 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004258/0.2494, allocations: 113.6 kB / 0.4885 GB, free: 13.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002955/0.2497, allocations: 90.34 kB / 0.4886 GB, free: 13.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002453/0.2522, allocations: 3.015 MB / 0.4915 GB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002547/0.2524, allocations: 27.5 kB / 0.4915 GB, free: 10.48 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.059e-05/0.2525, allocations: 19.09 kB / 0.4915 GB, free: 10.47 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (45): * Single equations (assignments): 41 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002635/0.2528, allocations: 217.8 kB / 0.4918 GB, free: 10.29 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.358e-05/0.2529, allocations: 38.86 kB / 0.4918 GB, free: 10.27 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006996/0.2536, allocations: 465.7 kB / 0.4922 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.187e-05/0.2536, allocations: 9.25 kB / 0.4922 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.2536, allocations: 4.906 kB / 0.4922 GB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.2536, allocations: 5.109 kB / 0.4923 GB, free: 10.01 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001408/0.255, allocations: 1.022 MB / 0.4932 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.406e-06/0.255, allocations: 1.156 kB / 0.4933 GB, free: 9.309 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003401/0.2554, allocations: 65.95 kB / 0.4933 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.268e-06/0.2554, allocations: 3.062 kB / 0.4933 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.728e-05/0.2554, allocations: 7.219 kB / 0.4933 GB, free: 9.289 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.679e-06/0.2554, allocations: 10.42 kB / 0.4933 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.2555, allocations: 1.188 kB / 0.4933 GB, free: 9.281 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009185/0.2564, allocations: 0.7405 MB / 0.4941 GB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001543/0.2565, allocations: 141.7 kB / 0.4942 GB, free: 8.711 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.161e-05/0.2566, allocations: 11.78 kB / 0.4942 GB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002044/0.2568, allocations: 18.78 kB / 0.4942 GB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.248e-05/0.2569, allocations: 21.69 kB / 0.4942 GB, free: 8.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.533e-05/0.2569, allocations: 11.12 kB / 0.4943 GB, free: 8.676 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002057/0.2571, allocations: 201.5 kB / 0.4944 GB, free: 8.539 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2571, allocations: 0 / 0.4944 GB, free: 8.539 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005027/0.2576, allocations: 114.8 kB / 0.4946 GB, free: 8.523 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 (30): * Single equations (assignments): 27 * Array equations: 2 * 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.00127/0.2589, allocations: 1.329 MB / 0.4959 GB, free: 7.527 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0009976/0.2599, allocations: 0.7043 MB / 0.4965 GB, free: 7.082 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.2599, allocations: 0 / 0.4965 GB, free: 7.082 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002672/0.2602, allocations: 210.2 kB / 0.4967 GB, free: 6.992 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005082/0.2607, allocations: 66.25 kB / 0.4968 GB, free: 6.957 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004083/0.2648, allocations: 3.022 MB / 0.4998 GB, free: 4.949 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004521/0.2653, allocations: 0.8747 MB / 0.5006 GB, free: 4.164 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002115/0.2655, allocations: 143.7 kB / 0.5007 GB, free: 4.047 MB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.2655, allocations: 0 / 0.5007 GB, free: 4.047 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.567/3.833, allocations: 8.027 MB / 0.5086 GB, free: 12.17 MB / 346.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Elementary_Source.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Elementary.Source.pipe 2>&1)