Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.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.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD",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.001426/0.001426, allocations: 102.4 kB / 16.5 MB, free: 6.648 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.001234/0.001234, allocations: 195.1 kB / 17.42 MB, free: 6.066 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.406/1.406, allocations: 205.1 MB / 223.3 MB, free: 12.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1713/0.1713, allocations: 38 MB / 308.6 MB, free: 6.23 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.002179/0.002179, allocations: 67.03 kB / 374.7 MB, free: 4 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3207/0.3229, allocations: 55.24 MB / 430 MB, free: 19.76 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD): time 0.005294/0.3282, allocations: 5.208 MB / 435.2 MB, free: 14.53 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00264/0.3309, allocations: 1.797 MB / 437 MB, free: 12.72 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002938/0.3312, allocations: 27.81 kB / 437 MB, free: 12.7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007169/0.332, allocations: 277 kB / 437.3 MB, free: 12.43 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004137/0.3324, allocations: 250.9 kB / 437.5 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004884/0.3329, allocations: 227.6 kB / 437.7 MB, free: 11.96 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005059/0.3334, allocations: 0.9238 MB / 438.7 MB, free: 11.03 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003247/0.3338, allocations: 232.3 kB / 438.9 MB, free: 10.8 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002359/0.334, allocations: 231 kB / 439.1 MB, free: 10.57 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004005/0.3344, allocations: 342.9 kB / 439.4 MB, free: 10.24 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.802e-05/0.3345, allocations: 24 kB / 439.5 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000233/0.3347, allocations: 147.7 kB / 439.6 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001434/0.3349, allocations: 207.4 kB / 439.8 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001735/0.335, allocations: 234.7 kB / 440 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003922/0.3354, allocations: 0.5801 MB / 440.6 MB, free: 9.055 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.3355, allocations: 0 / 440.6 MB, free: 9.055 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.203e-06/0.3355, allocations: 0 / 440.6 MB, free: 9.055 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.3355, allocations: 0 / 440.6 MB, free: 9.055 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: 114 * Number of variables: 114 Notification: Performance of Generate backend data structure: time 0.001163/0.3366, allocations: 0.7621 MB / 441.4 MB, free: 8.246 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.74e-05/0.3367, allocations: 11.97 kB / 441.4 MB, free: 8.234 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.771e-05/0.3368, allocations: 86.7 kB / 441.5 MB, free: 8.141 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000553/0.3373, allocations: 96.2 kB / 441.6 MB, free: 8.047 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.3378, allocations: 396 kB / 442 MB, free: 7.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.3378, allocations: 33.38 kB / 442 MB, free: 7.59 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.338, allocations: 55.91 kB / 442.1 MB, free: 7.535 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000728/0.3387, allocations: 0.6599 MB / 442.7 MB, free: 6.809 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.3387, allocations: 7.938 kB / 442.7 MB, free: 6.801 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.999e-05/0.3388, allocations: 16 kB / 442.7 MB, free: 6.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001334/0.3389, allocations: 48.95 kB / 442.8 MB, free: 6.738 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005986/0.3395, allocations: 0.4917 MB / 443.3 MB, free: 6.246 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002317/0.3418, allocations: 3.148 MB / 446.4 MB, free: 2.918 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003795/0.3422, allocations: 245.3 kB / 446.7 MB, free: 2.66 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001395/0.3424, allocations: 125.6 kB / 446.8 MB, free: 2.531 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.893e-05/0.3424, allocations: 4 kB / 446.8 MB, free: 2.527 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.143e-05/0.3425, allocations: 42.55 kB / 446.8 MB, free: 2.477 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.3425, allocations: 0 / 446.8 MB, free: 2.477 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001147/0.3436, allocations: 0.8902 MB / 447.7 MB, free: 1.531 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.64e-05/0.3437, allocations: 81.11 kB / 447.8 MB, free: 1.434 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002312/0.3439, allocations: 328.4 kB / 448.1 MB, free: 1.105 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.785e-05/0.3439, allocations: 33.83 kB / 448.2 MB, free: 1.066 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001092/0.344, allocations: 299 kB / 448.4 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.4e-05/0.3441, allocations: 82.84 kB / 448.5 MB, free: 0.6875 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.639e-05/0.3442, allocations: 89.94 kB / 448.6 MB, free: 0.5938 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.256e-05/0.3443, allocations: 350.7 kB / 449 MB, free: 248 kB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001535/0.3444, allocations: 128.8 kB / 449.1 MB, free: 120 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003023/0.3447, allocations: 325.1 kB / 449.4 MB, free: 15.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005774/0.3453, allocations: 0.4894 MB / 449.9 MB, free: 15.13 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.979e-06/0.3453, allocations: 4 kB / 449.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001036/0.3464, allocations: 0.5966 MB / 450.5 MB, free: 14.52 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.953e-05/0.3464, allocations: 8 kB / 450.5 MB, free: 14.51 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0005973/0.347, allocations: 329.3 kB / 450.8 MB, free: 14.18 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004388/0.3475, allocations: 126 kB / 450.9 MB, free: 14.05 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002802/0.3477, allocations: 79.89 kB / 451 MB, free: 13.97 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.3503, allocations: 3.045 MB / 454.1 MB, free: 10.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002434/0.3506, allocations: 24.03 kB / 454.1 MB, free: 10.63 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.918e-05/0.3507, allocations: 20 kB / 454.1 MB, free: 10.61 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (48): * Single equations (assignments): 46 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002737/0.3509, allocations: 225.5 kB / 454.3 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.247e-05/0.351, allocations: 27.62 kB / 454.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005693/0.3516, allocations: 316.8 kB / 454.7 MB, free: 10.04 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.755e-06/0.3516, allocations: 4 kB / 454.7 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.505e-06/0.3516, allocations: 7.938 kB / 454.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.3516, allocations: 0 / 454.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001118/0.3527, allocations: 0.8007 MB / 455.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.3528, allocations: 4 kB / 455.5 MB, free: 9.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003084/0.3531, allocations: 59.89 kB / 455.5 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.049e-06/0.3531, allocations: 4.062 kB / 455.5 MB, free: 9.094 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.469e-05/0.3531, allocations: 12 kB / 455.6 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.3531, allocations: 0 / 455.6 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.3531, allocations: 0 / 455.6 MB, free: 9.082 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006504/0.3538, allocations: 0.5066 MB / 456.1 MB, free: 8.551 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001301/0.3539, allocations: 128.8 kB / 456.2 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.256e-05/0.354, allocations: 8 kB / 456.2 MB, free: 8.398 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001817/0.3542, allocations: 11.98 kB / 456.2 MB, free: 8.387 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.821e-05/0.3542, allocations: 15.92 kB / 456.2 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.3543, allocations: 11.98 kB / 456.2 MB, free: 8.359 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002147/0.3545, allocations: 219.1 kB / 456.4 MB, free: 8.148 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3545, allocations: 0 / 456.4 MB, free: 8.148 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00049/0.355, allocations: 100 kB / 456.5 MB, free: 8.051 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (indYD.i[1],indYD.i[2],indYD.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 (27): * Single equations (assignments): 26 * 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.0009822/0.356, allocations: 1.062 MB / 457.6 MB, free: 6.953 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009225/0.3569, allocations: 0.5676 MB / 458.2 MB, free: 6.359 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 5.04e-06/0.3569, allocations: 5.438 kB / 458.2 MB, free: 6.355 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001828/0.3571, allocations: 131.7 kB / 458.3 MB, free: 6.227 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005152/0.3576, allocations: 73.98 kB / 458.4 MB, free: 6.156 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005146/0.3628, allocations: 4.254 MB / 462.6 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004828/0.3633, allocations: 0.8738 MB / 463.5 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003309/0.3636, allocations: 111.2 kB / 463.6 MB, free: 0.6211 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00021/0.3639, allocations: 151.4 kB / 463.8 MB, free: 484 kB / 334.1 MB Notification: Performance of SimCode: time 9.72e-07/0.3639, allocations: 0 / 463.8 MB, free: 484 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01895/0.3828, allocations: 7.232 MB / 471 MB, free: 9.254 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001755/0.383, allocations: 214.5 kB / 471.2 MB, free: 9.004 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.905/2.288, allocations: 0 / 471.2 MB, free: 9.004 MB / 350.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC3ph_Elementary_ImpedanceYD.fmu > PowerSystems_PowerSystems.Examples.AC3ph.Elementary.ImpedanceYD.pipe 2>&1)