Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.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.Generation.PQsource,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PQsource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Generation.PQsource,fileNamePrefix="PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PQsource",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.0008792/0.0008792, allocations: 169.6 kB / 16.07 MB, free: 5.695 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.228/1.228, 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.0007792/0.0007793, allocations: 92.8 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.166/0.166, allocations: 38.07 MB / 356.9 MB, free: 1.727 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000361/0.0003614, allocations: 16 kB / 423.4 MB, free: 37.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2548, allocations: 56.32 MB / 479.7 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Generation.PQsource): time 0.004744/0.2596, allocations: 4.627 MB / 484.4 MB, free: 6.188 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.002076/0.2617, allocations: 1.452 MB / 485.8 MB, free: 5.156 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002315/0.262, allocations: 21.81 kB / 485.8 MB, free: 5.148 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003825/0.2624, allocations: 104.2 kB / 485.9 MB, free: 5.094 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0007193/0.2631, allocations: 271.6 kB / 486.2 MB, free: 4.949 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005494/0.2637, allocations: 174.5 kB / 486.4 MB, free: 4.871 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007784/0.2645, allocations: 0.6747 MB / 487 MB, free: 4.625 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009081/0.2654, allocations: 0.5235 MB / 487.6 MB, free: 4.293 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003574/0.2657, allocations: 214.1 kB / 487.8 MB, free: 4.203 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004553/0.2662, allocations: 273.1 kB / 488 MB, free: 4.117 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.896e-05/0.2663, allocations: 15.12 kB / 488.1 MB, free: 4.117 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002905/0.2666, allocations: 131 kB / 488.2 MB, free: 4.074 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001999/0.2668, allocations: 183.5 kB / 488.4 MB, free: 4.027 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001905/0.267, allocations: 211.9 kB / 488.6 MB, free: 3.898 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000471/0.2674, allocations: 389.4 kB / 489 MB, free: 3.812 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.2675, allocations: 0 / 489 MB, free: 3.812 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.2675, allocations: 0 / 489 MB, free: 3.812 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.023e-06/0.2675, allocations: 1.375 kB / 489 MB, free: 3.812 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: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.0009149/0.2684, allocations: 0.634 MB / 489.6 MB, free: 3.281 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.2684, allocations: 9.547 kB / 489.6 MB, free: 3.281 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.871e-05/0.2685, allocations: 73.05 kB / 489.7 MB, free: 3.223 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005393/0.2691, allocations: 91.3 kB / 489.8 MB, free: 3.191 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005358/0.2696, allocations: 393.3 kB / 490.1 MB, free: 2.898 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.485e-05/0.2697, allocations: 27.78 kB / 490.2 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001233/0.2698, allocations: 50.09 kB / 490.2 MB, free: 2.867 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007432/0.2705, allocations: 476.5 kB / 490.7 MB, free: 2.637 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/0.2706, allocations: 1.5 kB / 490.7 MB, free: 2.637 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.391e-05/0.2706, allocations: 14.66 kB / 490.7 MB, free: 2.625 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001088/0.2707, allocations: 25.03 kB / 490.7 MB, free: 2.625 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005374/0.2713, allocations: 350.7 kB / 491.1 MB, free: 2.512 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002049/0.2733, allocations: 1.739 MB / 492.8 MB, free: 1.27 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003049/0.2736, allocations: 154.4 kB / 493 MB, free: 1.176 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001734/0.2738, allocations: 117.3 kB / 493.1 MB, free: 1.117 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.064e-05/0.2739, allocations: 2.312 kB / 493.1 MB, free: 1.117 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.705e-05/0.2739, allocations: 36.92 kB / 493.1 MB, free: 1.074 MB / 314.7 MB Notification: Performance of pre-optimization done (n=16): time 4.579e-06/0.2739, allocations: 3.984 kB / 493.1 MB, free: 1.07 MB / 314.7 MB Notification: Performance of matching and sorting (n=17): time 0.001416/0.2753, allocations: 0.884 MB / 494 MB, free: 468 kB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.872e-05/0.2754, allocations: 79.39 kB / 494.1 MB, free: 372 kB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003148/0.2757, allocations: 309.2 kB / 494.4 MB, free: 208 kB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.72e-05/0.2757, allocations: 25.7 kB / 494.4 MB, free: 176 kB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001741/0.2759, allocations: 262.1 kB / 494.7 MB, free: 15.95 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.673e-05/0.276, allocations: 61.75 kB / 494.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.515e-05/0.276, allocations: 4.938 kB / 494.7 MB, free: 15.91 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001289/0.2761, allocations: 344 kB / 495.1 MB, free: 15.58 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001652/0.2763, allocations: 97.25 kB / 495.2 MB, free: 15.55 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002244/0.2765, allocations: 206.3 kB / 495.4 MB, free: 15.38 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004428/0.277, allocations: 329.4 kB / 495.7 MB, free: 15.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.277, allocations: 1.25 kB / 495.7 MB, free: 15.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=36) (initialization): time 0.000934/0.2779, allocations: 469.7 kB / 496.1 MB, free: 14.95 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.298e-05/0.278, allocations: 8.062 kB / 496.1 MB, free: 14.95 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0006709/0.2786, allocations: 311.6 kB / 496.5 MB, free: 14.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004915/0.2791, allocations: 132.9 kB / 496.6 MB, free: 14.81 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001923/0.2793, allocations: 56.89 kB / 496.6 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002769/0.2821, allocations: 2.193 MB / 498.8 MB, free: 13.12 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002338/0.2824, allocations: 20.8 kB / 498.8 MB, free: 13.11 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.671e-05/0.2824, allocations: 15.17 kB / 498.9 MB, free: 13.1 MB / 330.7 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): 28 * 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: 0 * Non-linear torn systems: 1 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003275/0.2827, allocations: 196.5 kB / 499.1 MB, free: 12.95 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.978e-05/0.2828, allocations: 25.38 kB / 499.1 MB, free: 12.93 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005091/0.2833, allocations: 270.8 kB / 499.3 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.585e-06/0.2833, allocations: 6.938 kB / 499.4 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.297e-06/0.2833, allocations: 1.312 kB / 499.4 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2834, allocations: 0.7969 kB / 499.4 MB, free: 12.8 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/0.2846, allocations: 0.7365 MB / 0.4884 GB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.2846, allocations: 0 / 0.4884 GB, free: 12.32 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000216/0.2848, allocations: 47.8 kB / 0.4884 GB, free: 12.31 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001066/0.2849, allocations: 34.38 kB / 0.4884 GB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.285, allocations: 7.797 kB / 0.4885 GB, free: 12.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.092e-06/0.285, allocations: 10.36 kB / 0.4885 GB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.285, allocations: 1.375 kB / 0.4885 GB, free: 12.29 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005669/0.2856, allocations: 441.8 kB / 0.4889 GB, free: 12.01 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.598e-05/0.2856, allocations: 108.8 kB / 0.489 GB, free: 11.9 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.677e-05/0.2857, allocations: 8.062 kB / 0.489 GB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001437/0.2858, allocations: 10.19 kB / 0.489 GB, free: 11.89 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.494e-05/0.2859, allocations: 17.78 kB / 0.489 GB, free: 11.88 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.667e-05/0.2859, allocations: 9.031 kB / 0.489 GB, free: 11.88 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002317/0.2862, allocations: 217.1 kB / 0.4892 GB, free: 11.77 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2862, allocations: 0 / 0.4892 GB, free: 11.77 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004827/0.2867, allocations: 86.25 kB / 0.4893 GB, free: 11.76 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (line.i[1],line.i[2],line.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 (16): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008428/0.2875, allocations: 0.971 MB / 0.4903 GB, free: 10.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0007201/0.2882, allocations: 415 kB / 0.4907 GB, free: 10.74 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.2883, allocations: 1.438 kB / 0.4907 GB, free: 10.74 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002217/0.2885, allocations: 183.7 kB / 0.4908 GB, free: 10.6 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005046/0.289, allocations: 66.73 kB / 0.4909 GB, free: 10.57 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003721/0.2927, allocations: 2.425 MB / 0.4933 GB, free: 8.898 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004476/0.2932, allocations: 0.8453 MB / 0.4941 GB, free: 8.121 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001732/0.2934, allocations: 124.3 kB / 0.4942 GB, free: 8.02 MB / 330.7 MB Notification: Performance of SimCode: time 3.5e-07/0.2934, allocations: 0 / 0.4942 GB, free: 8.02 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.24/3.534, allocations: 7.019 MB / 0.5011 GB, free: 4.027 MB / 330.7 MB (rm -f PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; mkfifo PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe ; head -c 1048576 < PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe >> ../files/PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PQsource_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_cpp_PowerSystems_Examples_AC3ph_Generation_PQsource.fmu > PowerSystems_cpp_PowerSystems.Examples.AC3ph.Generation.PQsource.pipe 2>&1)